This is a cookiecutter
template that utilises poetry
, ruff
, pre-commit
, and mypy
.
-
Install poetry, via
homebrew
orpipx
:brew install poetry
or
pipx install poetry
-
Create a Python virtual environment of your preference and activate it.
-
Install
cookiecutter
andcruft
via, e.g.,homebrew
orpip
:python3 -m pip install --upgrade cookiecutter cruft
-
Run the command below to create your new project based on this cookiecutter template:
cookiecutter https://github.com/alanwilter/poetry-python-cookiecutter
or
cookiecutter gh:/alanwilter/poetry-python-cookiecutter
Alternatively, you can use
cruft
, which is a layer abovecookiecutter
. This allows you to manage your project from the template after it has been generated, enabling you to check, diff, or update it:cruft create https://github.com/alanwilter/poetry-python-cookiecutter
The command line interface will ask you to provide several informations.
-
It's optional, but we strongly recommend
commitizen
If this template doesn't meet your needs, you can explore thousands of other cookiecutter
templates here.