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)
- 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.0.tar.gz
(25.4 kB
view hashes)
Built Distribution
Close
Hashes for cookie_python-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4582555762ec395d0615ac90763a7a5d4a631a799948a943aa7c4573d01cc627 |
|
MD5 | af426c22599760cf2507d0bd1420e296 |
|
BLAKE2b-256 | 0f4de8adb003e7c14411cb777d86f7dee87b3476bd4a3dfbb1fa5a030e1c57f2 |