Keewis Blackdoc Versions Save

run black on documentation code snippets

v0.3.9

6 months ago

New Features

  • version hook: allow synchronizing the version with the pre-commit mirror (#180)

Maintenance

  • drop support for running on the EOL'ed python 3.7 (#186)
  • officially support running on python 3.12 (#185)

v0.3.8

1 year ago

New features

  • use rich instead of custom color printing code (#146, #157, #159, #160)

Bug fixes

  • support doctest lines in rST code blocks (#150, #151)
  • split chained statements into multiple doctest lines (#143, #155, #158)

Maintenance

  • drop support for python 3.6 (#153)
  • officially support python 3.11 (#163, #164)

v0.3.7

1 year ago

Bug fixes:

  • rewrite the triple-quote reconstruction algorithm to finally fix the regression from v0.3.5 (#144)

New features:

  • switch to the furo theme (#149)
  • add a hook to synchronize the version of black from the black hook with the one from additional_dependencies (#124)

v0.3.6

1 year ago

Bug fixes:

  • fix a regression in the doctest format where we would either truncate the reformatted code or crash (#137)

v0.3.5

1 year ago

New features:

  • colorize removed trailing whitespace in diffs (#120)
  • officially support python 3.10 (#115)

Bug fixes:

  • write only if the content of a file changed (#127, #128)
  • don't crash on strings with trailing empty strings, like "a""" (#131, #132)

v0.3.4

2 years ago

Bug fixes:

  • declare the direct dependency on toml (#100, #101)

v0.3.3

3 years ago

Bug fixes:

  • don't crash on rst code blocks missing a newline between the options and the code

v0.3.2

3 years ago

Bug fixes:

  • keep newlines immediately before the end of the file in reStructuredText files

v0.3.1

3 years ago

Bug fixes:

  • doctest: don't detect comments ending with a colon as blocks
  • don't use ANSI codes if we're not printing to a TTY

v0.3

3 years ago

New features:

  • color the output
  • support the --diff and --color / --no-color options
  • support skipping string normalization
  • make sure blocks end with a empty continuation line

Bug fixes:

  • make the ordering of the formatted files more predictable