This boilerplate project contains the following setup ready for you to go.
- package/environment management
rye
- linting & formatting
ruff
(triggered byrye
)
- testing framework
pytest
(triggered byrye
)- see
tests
directory
- type checking
mypy
- pre-commit hooks
- GitHub Actions workflow in
.github/workflows
This boilerplate prefers a src layout over a flat layout.
- Clone this repo
- Make sure to install Rye
- In your project directory run
rye sync
pre-commit install
- Optionally run
pre-commit run --all-files
(this will be triggered automatically on each commit)
- On each
git commit
the code validation packages will be run before the actual commit. - GitHub Action workflows will be triggered on
push
andpull_request
events. - Explore the setup in the folder structure of this package.
- Profit.