uv sync --dev
git add uv.lock
git commit -m "Add uv lockfile"
uv run pre-commit install
uv run pre-commit run -a
uv run pytestCI uses uv sync --locked; it will fail until uv.lock is committed.
uv run ruff check --fix .
uv run ruff format .
uv run pyright
uv run pytest- Update lockfile (respecting constraints in pyproject.toml):
uv lock --upgrade
uv sync --devThe uv-lock pre-commit hook also updates uv.lock when pyproject.toml changes.
From anywhere:
copier copy path/to/copier-uv-template my-new-repo
cd my-new-repo
uv sync --dev
uv run pytest