Contributing¶
Contributions are welcome through pull requests on GitHub.
Set up¶
Code¶
- The core library has no runtime dependencies: use the standard library.
- Keep lines to 100 characters, and run
uv run ruff checkanduv run ruff formaton the files you change. - Put the unit in every quantity's name (see units and naming).
- Add tests for every change, and a line in the changelog under Unreleased.
Data¶
Cite every row, as described in reference data and citations.
Documentation¶
The documentation is built with Zensical from docs/ and the
docstrings:
- Write docstrings with NumPy sections (
Parameters,Returns,Raises,Examples). - After adding or removing a module, run
uv run python scripts/docs_reference.pyto update the API reference pages and navigation. CI checks that they're up to date. - Examples in
pyconcode blocks are run as tests, so keep their output exact.
Releases¶
See RELEASING.md.