Thanks for considering a contribution!
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/pip install pre-commit
.venv/bin/pre-commit install.venv/bin/python -m unittest discover -vs testsTests also run in CI on Python 3.10–3.14. New hooks should ship with tests
in tests/.
pre-commit runs black, isort, flake8, and pyupgrade. Either let
the installed hook handle it on commit, or run it manually:
.venv/bin/pre-commit run --all-filespre-commit.ci also runs these hooks on every PR.
A new hook needs:
- An entry in
.pre-commit-hooks.yaml - An entry point in
setup.py - A usage example in
README.md - Tests in
tests/