-
-
Notifications
You must be signed in to change notification settings - Fork 170
Constructor checking for AST validator #622
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
rossbar
merged 25 commits into
numpy:main
from
mattgebert:ConstructorChecking_ASTValidator
Nov 24, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d8f05e6
fix(validate.py): Considers subclass nesting when checking GL08 const…
mattgebert c7da072
test(validate.py): Added a test to check nested class docstring when …
mattgebert 2703b22
Merge branch 'numpy:main' into ConstructorChecking_ASTValidator
mattgebert 92d8305
fix(validate.py): Allows the validator to check AST constructor docst…
mattgebert 4b09325
Merge branch 'ConstructorChecking_ASTValidator' of https://github.com…
mattgebert 9f38b98
test(test_validate_hook.py,-example_module.py): Wrote new example_mod…
mattgebert af861c3
ci(test.yml): Added --pre option to prerelease job to ensure pre-rele…
mattgebert c9d2384
refactor(tests): Remove `__init__.py` module status of `tests\hooks\`…
mattgebert b62c21f
ci(test.yml): Added explicit call to hook tests to see if included in…
mattgebert af84d77
merge: Merge branch 'main' into ConstructorChecking_ASTValidator, ens…
mattgebert becbaeb
test(tests\hooks\test_validate_hook.py): Changed constructor validati…
mattgebert 39544d2
ci(test.yml): Added file existance check for hook tests
mattgebert c14b2e8
ci(test.yml): Correct the workflow task name/version
mattgebert 48f8974
ci(test.yml): Added explicit pytest call to the hooks directory
mattgebert c2d16fa
ci(test.yml): Removed file existance test, after explicit call to hoo…
mattgebert 405ef2d
Merge branch 'numpy:main' into ConstructorChecking_ASTValidator
mattgebert 9114b37
Merge branch 'numpy:main' into ConstructorChecking_ASTValidator
mattgebert 752ab57
fix(validate.py): switched conditional GL08 check order to avoid prop…
mattgebert 0095ca0
Merge branch 'ConstructorChecking_ASTValidator' of https://github.com…
mattgebert bc88622
test(test_validate.py): add coverage for existing / expected function…
mattgebert 9f70d0f
Merge branch 'main' into ConstructorChecking_ASTValidator
mattgebert b35056d
Merge branch 'numpy:main' into ConstructorChecking_ASTValidator
mattgebert c40b210
Merge remote-tracking branch 'upstream' into ConstructorChecking_ASTV…
mattgebert acb3f89
Merge branch 'ConstructorChecking_ASTValidator' of https://github.com…
mattgebert d7cdec6
test(test_validate_hook.py): modify test strings and remove unused os…
mattgebert 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 was deleted.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
This is odd, there's two calls to pytest in the workflow, and one uses the module folder
numpydocwhile the other uses the basefile. Either way, both pickup all the relevant tests I believe (including new hook tests). I've edited this to make the two calls consistentThere 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.
With the
--pyargsflag, it's not actually the folder but the name of the installed library. It doesn't make sense to use directory locations (in general) with the--pyargsflag.In general this should always be
--pyargs numpydoc, but it's not a blocker here.