Contributing¶
Development setup¶
Code style¶
- Ruff for linting and formatting, line length 99
- Type hints throughout
- NumPy-style docstrings
Tests¶
Documentation¶
Releasing¶
The version comes from git tags (hatch-vcs): untagged commits get development versions such as
0.0.2.dev3+g1234abc.
- Move the
[Unreleased]entries indocs/changelog.mdunder a new## [X.Y.Z] - dateheading and merge tomain. - Tag the merge commit and push the tag:
The release workflow then builds the sdist and wheel, checks that the version matches the tag,
and creates a GitHub Release with the changelog section as its notes and the built files
attached; the docs workflow deploys the documentation. The tests run on every pull request and
on main (the tests workflow), not in the release. Nothing is uploaded to PyPI yet.