Skip to content

Use numpydoc pre-commit validation #610

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 2 commits into from
Jun 11, 2025
Merged

Use numpydoc pre-commit validation #610

merged 2 commits into from
Jun 11, 2025

Conversation

maxrjones
Copy link
Member

Somewhere in #601 @TomNicholas and @chuckwondo were lamenting that the CI doesn't catch numpy docstring errors. This PR adds numpydoc validation to the pre-commit configuration.

  • Closes #xxxx
  • Tests added
  • Tests passing
  • Full type hint coverage
  • Changes are documented in docs/releases.rst
  • New functions/methods are listed in api.rst
  • New functionality has documentation

Copy link
Collaborator

@chuckwondo chuckwondo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maxrjones! Looks great!

@chuckwondo
Copy link
Collaborator

@maxrjones, if you apply my change suggested for #611 and merge into this PR, the mypy check should pass.

@maxrjones
Copy link
Member Author

The failure is due to #596 and unrelated to this PR, so I will merge this despite the failure

@maxrjones maxrjones merged commit 76ff25b into develop Jun 11, 2025
7 of 10 checks passed
@maxrjones maxrjones deleted the numpydoc branch June 11, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants