Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
/ uv-python-workflow Public archive

A modern Python workflow powered by uv — includes CI/CD, Docker, pre-commit, and Pyright type checking.

License

Notifications You must be signed in to change notification settings

pg56714/uv-python-workflow

Repository files navigation

uv-python-workflow

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.

✨ Features

  • 🚀 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

📦 Getting Started

uv venv

# Install dependencies
uv sync

# Run app
uv run main.py

🔄 CI/CD

  • Dependency install with uv
  • Linting & formatting with ruff
  • Type checking with pyright
  • Tests with pytest
  • Bump version with commitizen

🧭 Commitizen (Conventional Commits)

# Install (dev)
uv add --dev commitizen

# Stage changes
git add .

# Interactive commit
cz commit or cz c

🧹 Pre-commit Hooks

Configured 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

docker build -t uv-python-workflow .
docker run --rm uv-python-workflow

About

A modern Python workflow powered by uv — includes CI/CD, Docker, pre-commit, and Pyright type checking.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •