Docstrfmt

Latest version: v1.10.0

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

Scan your dependencies

Page 1 of 5

1.10.0

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

**Added**

- Added support for meta directive.

**Changed**

- Better line number reporting for syntax errors in Python code blocks.

**Fixed**

- When processing Python files, the file is now fully processed and all errors are
reported at once.
- Fixed compatibility issue with Sphinx.

1.9.0

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

**Added**

- Added support to run using ``python -m``.

**Changed**

- Relaxed sphinx dependency.

**Fixed**

- Line length is now correctly resolved. Previously, it was always set to 88.
- Fix handling of ``.. code::`` blocks. They should now be correctly formatted to ``..
code-block::``.

1.8.0

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

**Added**

- Added support for nested tables.
- Added support for arbitrary directives.
- Added support for arbitrary roles.

**Fixed**

- Incorrect import of ``dataclass``.

1.7.0

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

**Added**

- Added support for ``code-block`` directive.
- Added support for ``highlight`` directive.
- Added support for Sphinx metadata fields.
- Added support for Sphinx Python directives.

1.6.1

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

**Fixed**

- Fix incorrect blank line padding around ``:returns:`` and ``:raises:`` fields.

1.6.0

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

**Added**

- Added more missing roles.
- Added support for Python 3.11.
- Added support for Python 3.12.

**Changed**

- Improved field sorting and formatting.
- Improved handling of ``:param:`` and ``:type:`` fields.
- Bumped ``black``, ``docutils``, ``libcst``, ``platformdirs``, and ``sphinx`` to latest
versions.

**Fixed**

- Fix ``:raises:`` field not supporting types.

**Removed**

- Removed support for Python 3.6.
- Removed support for Python 3.7.

Page 1 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.