Conversation
Idea here is rstcheck will also validate python blocks etc, as well as the reStructuredText via docutils. That would need new error codes: $ flake8 --select RST some_python.py some_python.py:8:1: RST999 Unexpected prefix: '(python) unexpected EOF while parsing' See GitHub issue #22, using the example there: def some(): """ ==== Test ==== .. code:: python print( End. """ pass
A bit of a hack as change from rst-lint to rstcheck was not quite transparent.
Owner
Author
|
Looks like can call |
Owner
Author
|
Currently no easy way to stop |
Owner
Author
|
Cross reference rstcheck/rstcheck#65 (comment) - with |
|
For the future: When this PR is merged we could add a link to rstcheck pointing to this repo in a |
Owner
Author
|
See rstcheck/rstcheck#95 - may be best waiting for the API to settle before refreshing this. |
|
I just released v6.0.0a1 of rstcheck. If you would like to take a look. The roadmap until the full release is here: rstcheck/rstcheck#104 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work in progress exploring using
rstcheckwhich adds support for RST blocks in other languages like Python, Bash or JSON. Would address #22