Skip to content
Edit this page

Contributing

Contributions are welcome through pull requests on GitHub.

Set up

git clone https://github.com/eronlloyd/ictdesigntools
cd ictdesigntools
uv sync
uv run pytest -q

Code

  • The core library has no runtime dependencies: use the standard library.
  • Keep lines to 100 characters, and run uv run ruff check and uv run ruff format on 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:

uv sync --group docs
uv run zensical serve
  • Write docstrings with NumPy sections (Parameters, Returns, Raises, Examples).
  • After adding or removing a module, run uv run python scripts/docs_reference.py to update the API reference pages and navigation. CI checks that they're up to date.
  • Examples in pycon code blocks are run as tests, so keep their output exact.

Releases

See RELEASING.md.