Hooks for pre-commit that validate Markdown / RST files
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.1
hooks:
- id: rst-linter
To enable the .. raw::
directive, you can add:
- id: rst-linter
args: [--allow-raw]
Note that this is a potential security hole, and will prevent rendering of the
README.rst
file on PyPI.
See docutils documentation and Python Packaging User Guide
for more information.