Files
stack/uv.toml
kert 6486cd22dd
All checks were successful
ci/woodpecker/push/infra-ci Pipeline was successful
ci/woodpecker/pr/infra-ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
coverage 99% coverage
ci/woodpecker/pr/ci Pipeline was successful
uv hygiene: build-system, uv.toml, version pins, auto-recovery hook
## [build-system] + drop uv pip install -e . (#58)
Add `[build-system] requires=["uv_build"] build-backend="uv_build"`
so `uv sync --dev` installs the project editably in one step.
Remove `uv pip install -e .` and `uv python pin 3.13.11` from CI.

## uv.toml with link-mode=copy (#60)
Create project-level `uv.toml` with `link-mode = "copy"` and
`python-preference = "managed"`. Prevents .venv symlinks from
pointing to /root/ when uv runs under different users.

## Align python version (#59)
`.python-version` pinned to `3.13` (minor, let patch float) instead
of platform-specific `cpython-3.13.12-linux-x86_64-gnu`. Removed
the CI step that downgraded to 3.13.11.

## Pre-commit auto-recovery (#61)
Hook now checks `uv run python -c 'import sys'` at the top — if the
venv is broken, it runs `uv sync --dev` automatically before checks.

## .gitignore
Add `.venv/` to prevent accidental venv commits.

fix #58, fix #59, fix #60, fix #61
2026-03-21 15:15:17 -04:00

5 lines
152 B
TOML

# Project-level uv configuration.
# Prevents broken .venv symlinks when uv runs under different users.
link-mode = "copy"
python-preference = "managed"