Cookiecutter template for new Python projects
Project description
Cookiecutter template for new Python projects
A template for new Python projects, with:
- poetry (with poetry-dynamic-versioning)
- pytest
- pre-commit
- mypy
- black
- flake8 (with bugbear, simplify, and pep8-naming)
- autoflake
- pyupgrade
- bandit
- cruft
- GitHub Actions support
- Coverage reports with codecov.io
Poetry installation
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
New project creation
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
Development tasks
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cookie_python-0.3.1.tar.gz
(24.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters