Cookiecutter
template to create new python packages.
This project is used to scaffold a python
package or project structure.
- Always
up-to-date
dependencies with the help of@dependabot
- Supports latest
python3.10+
poetry
for managing dependenciesmypy
for optional static typingpytest
for testingflake8
for lintingGithub Actions
as the default CIpre-commit
for running checks before committing (runpre-commit install
to install git hook)
Firstly, you will need to install dependencies:
pip install cookiecutter
Then, create a project itself:
cookiecutter gh:yakimka/cookiecutter-pyproject
In 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_TOKEN
PYPI_TOKEN
CODECOV_TOKEN
UPDATE_URL
for 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: