A Cookiecutter project template that uses Poetry to manage Python Projects
WARNING This template requires Poetry equal 1.5.2 or newer due to the use of dependency groups, and Python at least 3.9.
Install cookiecutter:
pip install cookiecutterUse the template:
cookiecutter https://github.com/John15321/cookiecutter-poetic-pythonFill out the questions asked by the cookiecutter and wait for the project to be created. It dynamically adds and checks dependencies that will be by default added to the project, therefore recomputing the whole dependency graph will take some time, but it will be done only once.
- Sets up sphinx documentation
- Sets up tox configuration
- Sets up basic CI/CD configuration for GitHub that checks:
- Linting with
pylint - Formatting with
blackandisort - Building documentation
- Building the source and built distribution
- Running tests
- Linting with
- Package structure with the newest and best
pyproject.tomlguidelines - Dependencies for testing, formatting, linting etc. separated in the
pyproject.tomlfile for ease of use and optimization
Poetry has very good and extensive documentation so go ahead and read it: