Skip to content

Repository files navigation

uv Template

A simple Python project template using uv for dependency management.

Quick Start

Install the pinned toolchain, then the project tools and dependencies:

proto use          # installs every toolchain pinned in .prototools
task install_tools # project tools + dependencies + git hooks

Day to day:

task sync          # install the exact deps in the lockfiles (after cloning or pulling)
task upgrade       # bump all deps to their latest versions and update the lockfiles

Commands

Command Description
task install_tools Install tools, dependencies and git hooks
task sync Install exact dependencies from the lockfiles
task upgrade Upgrade all dependencies to latest
task add PACKAGE=x Add a runtime dependency
task add_dev PACKAGE=x Add a development dependency
task format Format and fix imports with Ruff
task lint Ruff checks (incl. S security rules) + ty types
task deadcode Detect dead code with Vulture
task security Audit dependencies for known vulnerabilities
task test Run affected tests (testmon cache)
task test:all Run all tests without cache
task run_ci Run the CI pipeline locally

Toolchain versions

Every language and tool version lives in .prototools — one file, read by both proto use locally and moonrepo/setup-toolchain in CI. To upgrade a language, edit that one line.

Technologies - Libraries

About

A Python project template with uv

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages