-
-
Notifications
You must be signed in to change notification settings - Fork 168
ENH: Enable validation during sphinx-build process #302
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
fbdf433
WIP: Move get_doc_obj to docscrape
rossbar fd25d8f
WIP: mv _obj property to NumpyDocString
rossbar b99e782
Proof-of-concept: Docstring attrs covered by refactor.
rossbar 94f4121
NOTE TO SELF: get_doc_object in docscrape_sphinx
rossbar eac0a72
Docstring -> Validator.
rossbar 27c013f
Activate validation during sphinx-build.
rossbar d105037
Replace logger.warn with warning.
rossbar 22c56f3
DOC: Add numpydoc_validate to conf docs.
rossbar 1472c6f
Add mechanism for validation check selection.
rossbar a1a7074
TST: modify how MockApp sets builder app.
rossbar 39f2f22
TST: Add test of validation warnings.
rossbar 1b6b424
Specify some sensible validation defaults.
rossbar 0cc6277
Add docstring name to validation warnings.
rossbar fd2122a
Add all keyword to validation_check configuration.
rossbar fd9b078
Fix failing test.
rossbar df6c15c
Make validation error mapping easier to read.
rossbar 1d359d8
Add check for invalid error codes in configuration.
rossbar 87dd52f
Add feature to exclude patterns from docstring validation.
rossbar a13705c
Be explicit about regex syntax for exclude config val
rossbar 55de340
Rm redundant numpydoc_validate config param.
rossbar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last API idea -- do we even need
numpydoc_validate
anymore? Isn'tFalse
redundant withnumpydoc_validation_checks = set()
which could be the default?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right... I'll take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
numpydoc_validate
was redundant and it was relatively straightforward to remove it. Just make sure that the changes in 55de340 (especially the docs) make sense.