New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validating docstrings in Python files as RST #34
Comments
I would like to keep this module as 1 thing well and defer to using a for file in *.py; do
extract-docstrings "$file" | rst-lint -
done |
OK, if we discover such a extract-docstrings tool, then it would be good to add an example like this to the documentation for your tool. |
Yea, I would be open to adding that in the "Examples" section 👍 |
In pull request PyCQA/pydocstyle#254 I wrote a proof-of-principle extending However, the |
Both make sense (i.e. |
I've started working on this as a flake8 plugin under the name |
I've made the first release of the new plugin https://pypi.python.org/pypi/flake8-rst-docstrings (I'll stop commenting on this issue now - thanks) |
As I understand it,
rst-lint *.rst
works great on plain text files using reStructuredText.I would like to be able to do
rst-lint *.py
and have it pull out the Python docstrings, and check if they are valid reStructuredText.Ideally any errors would retain the original line number from the Python file. That can probably be done via an offset if processing each docstring alone.
The text was updated successfully, but these errors were encountered: