Skip to content

heymumford/python-uv-template

Repository files navigation

python-uv-template

Minimal Python project template with uv, just, pytest, and ruff.

Use This Template

git clone git@github.com:heymumford/python-uv-template.git my-new-project
cd my-new-project
# Rename "myproject" to your project name in pyproject.toml, src/, and tests/
uv sync
just test

Available Commands

just install     # Install dependencies (uv sync)
just run         # Run the project
just test        # Run tests (pytest)
just lint        # Lint with ruff
just format      # Format with ruff
just typecheck   # Type check with mypy
just check       # Run lint + typecheck + test

What's Included

  • uv for fast dependency management and virtual environments
  • just as a command runner (replaces Makefiles)
  • pytest for testing with strict markers and config
  • ruff for linting and formatting, mypy for type checking
  • hatchling build backend
  • Python 3.12+ compatibility

Customization Checklist

After cloning, update these:

  • Rename myproject in pyproject.toml (name, packages)
  • Rename src/myproject/ directory to your project name
  • Rename tests/ imports to match
  • Update version in pyproject.toml and src/<project>/__init__.py
  • Update justfile references from myproject to your project name

License

MIT

About

Minimal Python project template — uv + just + pytest + ruff. Fast, reproducible, no ceremony

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors