Skip to content

Conversation

@santisoler
Copy link
Member

@santisoler santisoler commented May 21, 2024

Add new target to the Makefile to validate docstrings using numpydoc. Add rules for validating docstrings using numpydoc to pyproject.toml. Run make numpydoc in GitHub Actions. Fix some of the errors that numpydoc raised: add description to functions listed in "See also" sections; sort "See also", "Notes" and "References" sections in the right order; add missing docstring to modules; add missing description of parameters and returns to private functions.

Add rules for validating docstrings using `numpydoc` to
`pyproject.toml`.
Add new target to the Makefile to validate docstrings using numpydoc.
This allows to use the `numpydoc lint` command instead of launching
a Python module from the terminal.
@leouieda
Copy link
Member

leouieda commented Dec 2, 2024

This is great!

Add missing comments to the objects listed in See Also in the magnetic
functions for prisms, and fix the order of the sections (See Also,
Notes, References).
Copy link
Member

@leouieda leouieda left a comment

Choose a reason for hiding this comment

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

Hey Santi, this is great! A few suggestions:

  1. Need to bump the min numpydoc version in env/requirements-docs.txt as well.
  2. I'd add this as a check-docstrings rule to the Makefile and then add it to check or check-style so it's more complete.
  3. I'd avoid creating a new job in the CI just for this. It could go into the check-style job.

Copy link
Member

@leouieda leouieda left a comment

Choose a reason for hiding this comment

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

Now it's just a matter of rebasing after #130. I'll add these to the other projects as well!

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.

3 participants