Skip to content

πŸͺ 🐍 Cookiecutter template for new Python projects

License

Notifications You must be signed in to change notification settings

smkent/cookie-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7025e55 Β· Jan 15, 2025
Jan 15, 2025
Jan 14, 2025
Jan 14, 2025
Mar 2, 2022
Jan 15, 2025
Jan 28, 2024
Jan 15, 2025
Jan 15, 2025
Oct 26, 2022
Jan 14, 2025
Aug 15, 2022
Jan 14, 2025
Oct 28, 2022
Jan 15, 2025
Jan 15, 2025

Repository files navigation

Cookiecutter template for new Python projects

PyPI PyPI - Python Version Build codecov GitHub stars

cookie-python

A template for new Python projects, with:

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 lint or poetry 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