Cookiecutter template for new Python projects
PyPI PyPI - Python Version Build codecov GitHub stars
A template for new Python projects, with:
- poetry (with poetry-dynamic-versioning)
- pytest
- pre-commit
- mypy
- ruff
- bandit
- cruft
- GitHub Actions support
- Coverage reports with codecov.io
Via pipx:
pip install pipx pipx install poetry pipx inject poetry poetry-pre-commit-plugin
Via pip:
pip install poetry poetry self add poetry-pre-commit-plugin
With cruft via script
poetry install poetry run new-cookie <path> # or poetry run cruft create
With cookiecutter directly
pip install cookiecutter cookiecutter https://github.com/smkent/cookie-python
- Setup:
poetry install - Run static checks:
poetry run poe lintorpoetry run pre-commit run --all-files - Run static checks and tests:
poetry run poe test - Update test expected output files from test results:
poetry run poe updatetests