Skip to content

Latest commit

 

History

History
109 lines (63 loc) · 3.33 KB

CHANGELOG.rst

File metadata and controls

109 lines (63 loc) · 3.33 KB

Changelog

1.19.1 (2024-10-23)

  • Add support for Black's --pyi flag.

    Thanks to Alex Waygood in PR #375.

1.19.0 (2024-10-07)

  • reStructuredText: Gracefully ignore empty code blocks.

    Thanks to Stephen Rosen in PR #368.

  • Drop Python 3.8 support.

  • Support Python 3.13.

1.18.0 (2024-06-30)

  • Add support for on/off comments.

    Thanks to Timothée Mazzucotelli in PR #287.

  • Fix Markdown pycon formatting to allow formatting the rest of the file.

1.17.0 (2024-06-29)

  • Add a --check option. When used, blacken-docs will not modify files but indicate when changes are necessary with a message and non-zero exit code.

    Thanks to Joaquim Esteves in PR #278.

  • Allow options in LaTeX minted blocks.

    Thanks to Peter Cock in PR #313.

  • Ignore language specifiers after newlines in Markdown code blocks.

    Thanks to Harutaka Kawamura in PR #283.

1.16.0 (2023-08-16)

  • Allow Markdown fence options.

    Thanks to initial work from Matthew Anderson in PR #246.

  • Expand Markdown detection to all Python language names from Pygments: py, sage, python3, py3, and numpy.

  • Preserve leading whitespace lines in reStructuredText code blocks.

    Thanks to Julianus Pfeuffer for the report in Issue #217.

  • Use exit code 2 to indicate errors from Black, whilst exit code 1 remains for “files have been formatted”.

    Thanks to Julianus Pfeuffer for the report in Issue #218.

  • Support passing the --preview option through to Black, to select the future style.

  • Remove language_version from .pre-commit-hooks.yaml. This change allows default_language_version in ``.pre-commit-config.yaml` to take precedence.

    Thanks to Aneesh Agrawal in PR #258.

1.15.0 (2023-07-09)

  • Drop Python 3.7 support.

1.14.0 (2023-06-13)

  • Support Python 3.12.

1.13.0 (2023-01-16)

  • Note Adam Johnson is new maintainer.
  • Require Black 22.1.0+.
  • Add --rst-literal-blocks option, to also format text in reStructuredText literal blocks, starting with ::. Sphinx highlights these with the project’s default language, which defaults to Python.

1.12.1 (2022-01-30)

  • Fix compatibility with Black 22.1.0.

    Thanks to Jelle Zijlstra for the fix in PR #142.

  • Drop Python 3.6 support.

    Thanks to Anthony Sottile in PR #140.

1.12.0 (2021-11-19)

  • Fix nested reStructuredText code blocks.

No changelog kept for earlier versions. See log on GitHub for details.