A modern Python workflow powered by uv. This template integrates CI/CD, Docker, pre-commit hooks, and Pyright type checking for a reproducible and maintainable development setup.
- 🚀 uv for fast, reliable dependency management
- ✅ pre-commit hooks (lint, format, type-check) (uv add --dev pre-commit)
- 🔎 Pyright for static type checking (uv add --dev "pyright[nodejs]")
- 🐳 Dockerfile for reproducible environments
- 🔄 CI/CD (GitHub Actions) with linting, formatting, type checking, and tests
uv venv
# Install dependencies
uv sync
# Run app
uv run main.py- Dependency install with
uv - Linting & formatting with
ruff - Type checking with
pyright - Tests with
pytest - Bump version with
commitizen
# Install (dev)
uv add --dev commitizen
# Stage changes
git add .
# Interactive commit
cz commit or cz cConfigured with pre-commit:
pre-commit install --install-hooks --hook-type pre-commit --hook-type commit-msg --hook-type pre-push
pre-commit run --all-files # Run all hooks on all files (only needed once after installation)docker build -t uv-python-workflow .
docker run --rm uv-python-workflow