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
testsdirectory
- 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 syncpre-commit install- Optionally run
pre-commit run --all-files(this will be triggered automatically on each commit)
- On each
git committhe code validation packages will be run before the actual commit. - GitHub Action workflows will be triggered on
pushandpull_requestevents. - Explore the setup in the folder structure of this package.
- Profit.