Blacken-docs

Latest version: v1.19.1

Safety actively analyzes 688568 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.19.1

-------------------

* Add support for Black's ``--pyi`` flag.

Thanks to Alex Waygood in `PR 375 <https://github.com/adamchainz/blacken-docs/pull/375>`__.

1.19.0

-------------------

* reStructuredText: Gracefully ignore empty code blocks.

Thanks to Stephen Rosen in `PR 368 <https://github.com/adamchainz/blacken-docs/issues/368>`__.

* Drop Python 3.8 support.

* Support Python 3.13.

1.18.0

-------------------

* Add support for on/off comments.

Thanks to Timothée Mazzucotelli in `PR 287 <https://github.com/adamchainz/blacken-docs/pull/287>`__.

* Fix Markdown ``pycon`` formatting to allow formatting the rest of the file.

1.17.0

-------------------

* 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 <https://github.com/adamchainz/blacken-docs/pull/278>`__.

* Allow options in LaTeX minted blocks.

Thanks to Peter Cock in `PR 313 <https://github.com/adamchainz/blacken-docs/pull/313>`__.

* Ignore language specifiers after newlines in Markdown code blocks.

Thanks to Harutaka Kawamura in `PR 283 <https://github.com/adamchainz/blacken-docs/pull/283>`__.

1.16.0

-------------------

* Allow Markdown fence options.

Thanks to initial work from Matthew Anderson in `PR 246 <https://github.com/adamchainz/blacken-docs/pull/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 <https://github.com/adamchainz/blacken-docs/issues/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 <https://github.com/adamchainz/blacken-docs/issues/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 <https://github.com/adamchainz/blacken-docs/pull/258>`__.

1.15.0

-------------------

* Drop Python 3.7 support.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.