No project description provided
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-dynamic-versioning poetry-pre-commit-plugin
Via pip
:
pip install poetry
poetry self add poetry-dynamic-versioning 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 lint
orpoetry 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
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.2.3.tar.gz
(25.6 kB
view hashes)
Built Distribution
Close
Hashes for cookie_python-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a0cf41644a1b0b34982dd33d3d2695e50436dea242b66c5e36aad93379e7a11 |
|
MD5 | 5b57ce5ae0f38d5c3d60c4521910144f |
|
BLAKE2b-256 | 0e65481953ae5832ed0114eecde716a3f416c70e7d17480e9844d1e7a5df6e14 |