Cookiecutter template to create new python packages.
This project is used to scaffold a python package or project structure.
- Always
up-to-datedependencies with the help of@dependabot - Supports latest
python3.10+ uvfor managing dependenciesmypyfor optional static typingpytestfor testingflake8|rufffor lintingGithub Actionsas the default CIpre-commitfor running checks before committing (runpre-commit installto install git hook)
Firstly, you will need to install dependencies:
pip install cookiecutterThen, create a project itself:
cookiecutter gh:yakimka/cookiecutter-pyprojectIn order for the github actions to work smoothly (ie badge), you must, during the setup, use your github username in the organization field.
project_name [my-awesome-project]: foo-project
organization [yakimka]: <github_username>For properly running CI/CD, you must set the following environment secrets in repo settings:
DOCKERHUB_TOKENPYPI_TOKENCODECOV_TOKENUPDATE_URLfor updater
Also you need to duplicate these secrets to Dependabot settings if you want to run pipelines on Dependabot PRs.
MIT. See LICENSE for more details.
Project inspired by: