Antsibull docutils helpers
Actively maintained. Last release 3 weeks ago, commits in 12 of the last 26 weeks. A safe choice.
pip install antsibull-docutilsantsibull-docutils -- Antsibull docutils helpers
A Python library with some docutils helpers used by Antsibull tools.
antsibull-docutils is covered by the Ansible Code of Conduct.
Docutils support
In CI, compatibility with docutils 0.18+ is tested. Older versions of docutils might work as well, depending on your use-case. The tests do not pass for 0.16 and 0.17, as these versions emit different IDs and HTML (for tables). 0.16 also handles code blocks differently, and they will not be emitted with the MarkDown renderer.
Development
Install and run nox to run all tests. That's it for simple contributions!
nox will create virtual environments in .nox inside the checked out project
and install the requirements needed to run the tests there.
To run specific tests:
nox -e testto only run unit tests;nox -e coverageto display combined coverage results after runningnox -e test integration;nox -e lintto run all linters and formatters at once;nox -e formattersto runisortandblack;nox -e codeqato runflake8,pylint,reuse lint, andantsibull-changelog lint;