My template for Python apps built with
uv
This repository implements a template for a minimal Python package that uses uv
+Setuptools for packaging and dependency management.
-
Install
cookiecutter
first and then:cookiecutter gh:dirmeier/cookiecutter-uv
-
After having created a project, install all dependencies using
uv
:uv sync --all-extras
-
Init a GitHub repo using
git init git remote add origin git git@github.com:{{ cookiecutter.github_username }}/{{ cookiecutter.project_slug }}.git
-
Setup Codecov and Codacy, or your preferred code coverage and code quality tools. Fix the respective links in the header of
README.md
. -
Install
pre-commit
andgitlint
via:pre-commit install gitlint install-hook
-
Create a new branch for development via:
git checkout -b my-new-feature
-
Develop code, implement unit tests and write documentation.
-
Test everything via
make format make lints make tests make docs
-
Commit your changes using an informative commit message. Read this for help.
-
Push your changes to your feature branch and create a pull request.
-
Squash-merge your changes onto main or, ideally, clean up your commit history and rebase onto main.
-
Don't forget to create tags and releases.
Simon Dirmeier sfyrbnd @ pm me