First off, thank you for considering contributing to this project!
-
Clone the repository:
git clone <repository-url> cd python_template
-
Install dependencies using
uv:uv venv source .venv/bin/activate uv pip install -e ".[dev]"
-
Install pre-commit hooks:
pre-commit install
We use a Makefile to simplify common tasks:
make format: Formats code usingruff.make check: Runs linters (ruff check) and type checkers (basedpyright,ty).make tests: Runs the test suite usingpytest.make all: Runs formatting and checking consecutively.
Before submitting a Pull Request, please ensure make all and make tests run without any errors.
- Create a new branch for your feature or bugfix.
- Commit your changes (your commit will be checked by
pre-commit). - Push to your branch and open a Pull Request.
- Ensure the CI workflows (GitHub Actions) pass.