A barebones cookiecutter template for creating new and modern python packages.
The generated project will have:
- Easy dependency management with
poetry
andpyproject.toml
:- Recipe:
make lock
- Uses
poetry
to generate thepoetry.lock
dependency lockfile frompyproject.toml
- Also exports a
requirements.txt
, removingpoetry
as a requirement when deployed
- Uses
- Recipe:
- Fast set-up:
- Recipe:
make develop
- Checks for presence of required commands (
python3
,poetry
) - Uses
poetry
to create a properly configured virtual environment
- Checks for presence of required commands (
- Recipe:
- Lots of other useful Makefile recipes
make format
: Auto-format withisort
,autoflake
, andblack
make lint
: Static analysis withflake8
make mypy
: Type-check source and tests withmypy
make test
: Execute tests withpytest
andcoverage
- ... and more (run
make
ormake help
for more details)
cookiecutter git@github.com:dmontagu/python-template.git