Contributing
Setup¶
Install pre-commit hooks to auto-run linting and formatting:
Linting and Formatting¶
Run linting and formatting manually with Hatch:
Tests¶
Add tests to the tests dir. Run pytest via the Hatch test environment scripts:
Docs¶
Write new documentation in the docs/pages directory. Add them to the nav in docs/mkdocs.yml. Build and serve mkdocs documentation via the Hatch docs environment scripts:
Releasing¶
First, use hatch to update the version number in a new release branch and merge into main.
Checkout main and confirm that it is up-to-date with the remote, including the bumped version. Finally, create and push the release tag.
Pushing the updated tag will trigger a workflow that publishes the release to PyPI.