Skip to content
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

Add numpydoc pre-commit checks #25

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

gmgunter
Copy link
Member

Previously, numpydoc validation checks were run while building the docs via Sphinx.

It seems more intuitive to run them alongside the other linters now that numpydoc supports pre-commit, and results in faster feedback with better error messages. In addition, this allows us to easily pin the numpydoc version and automatically update it via pre-commit.ci.

It looks like the latest release of https://github.com/numpy/numpydoc doesn't yet have a pre-commit-hooks.yaml file, so for now we are pinned to the most recent commit.

Previously, numpydoc validation checks were running while building the
docs. It seems more intuitive to run them alongside the other linters
now that numpydoc support pre-commit, and results in better/faster
feedback. In addition, this allows us to easily pin the numpydoc version
and automatically update it via pre-commit.ci.

It looks like the latest release of https://github.com/numpy/numpydoc
doesn't yet have a `pre-commit-hooks.yaml` file, so for now we are
pinned to the most recent commit.
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Merging #25 (c82c693) into main (69a91ec) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #25   +/-   ##
=======================================
  Coverage   97.55%   97.55%           
=======================================
  Files           8        8           
  Lines         696      696           
=======================================
  Hits          679      679           
  Misses         17       17           
Files Changed Coverage Δ
src/tophu/io.py 96.93% <ø> (ø)

@gmgunter gmgunter merged commit 02ffb6e into isce-framework:main Aug 22, 2023
6 checks passed
@gmgunter gmgunter deleted the numpydoc-pre-commit branch August 22, 2023 20:16
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.

1 participant