-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align behavior of pre-commit hook and Sphinx extension (#476)
* Extract check selection logic from sphinx side into utility function. * Add test cases for get_validation_checks(). * Change pre-commit hook behavior from check exclusion to check selection like sphinx side. * Update example configs for pre-commit hook in docs. * Add global exclusion option to pre-commit hook. * Add test cases for global exclusion pre-commit option. * Update docs for global exclusion option. * Deprecate override_GL08 since global exclusion covers this. * Expand override logic for pre-commit hook to any check. * Update override examples in docs. * Check for exclusion before running checks. * Port inline comments for ignoring checks to sphinx side. * Move note in docs on inline comments to its own section now that both sides support it. * Remove ignore comment logic from hook now that it is in validate(). * Add note on inline comment usage for --validate. * Add numpydoc_validation_overrides option to Sphinx extension side. * Add numpydoc_validation_overrides option to the docs. * Refine additions to docs. * Clarify comment. * Switch to typing for Python 3.8 * Fix check on type.
- Loading branch information
Showing
10 changed files
with
478 additions
and
116 deletions.
There are no files selected for viewing
This file contains 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 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.