Skip to content

Conversation

@jtniehof
Copy link
Contributor

@jtniehof jtniehof commented Oct 19, 2025

This PHEP updates the documentation (8) standard. Closes #34.

The changes from the original are documented within the PHEP, and some best practices are added as suggestions.

I would love a lot more examples of things that are done well in our projects. See other open issues.

This PR also updates the standards.md in conjunction with the PHEP text.


1. All functions, classes, and modules in the public application programming interface (API) **must** have documentation strings (docstrings).
2. Docstrings **must** follow a convention established by the project. [PEP 257](https://www.python.org/dev/peps/pep-0257/) is a minimum requirement but more extensive conventions such as [numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html) are recommended.
3. Docstrings **must** describe the code’s purpose, describe all inputs and outputs, and provide examples.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the smartquote failure in CI, will be fixed next push.


1. All functions, classes, and modules in the public application programming interface (API) **must** have documentation strings (docstrings).
2. Docstrings **must** follow a convention established by the project. [PEP 257](https://www.python.org/dev/peps/pep-0257/) is a minimum requirement but more extensive conventions such as [numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html) are recommended.
3. Docstrings **must** describe the code’s purpose, describe all inputs and outputs, and provide examples.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also smartquote fail, to be fixed.

@sapols
Copy link
Contributor

sapols commented Oct 20, 2025

@jtniehof Assigned PHEP number 7

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.

Revise "documentation" standard

2 participants