Skip to content

ci: pin uv, enforce lockfile, sync it with pyproject#6

Merged
niranjans merged 1 commit into
mainfrom
ci-lock-pin
May 22, 2026
Merged

ci: pin uv, enforce lockfile, sync it with pyproject#6
niranjans merged 1 commit into
mainfrom
ci-lock-pin

Conversation

@niranjans

Copy link
Copy Markdown
Contributor

What

Three CI-hygiene changes, surfaced while reviewing #2:

  • Regenerate uv.lock. It was out of sync with pyproject.tomlfeat: restructure as proper Python package with tooling #2 moved the dev dependencies into [dependency-groups], but the lock still recorded them as an optional-dependency extra. Regenerating corrects the representation only; no dependency versions change (9 insertions / 6 deletions).
  • Add --locked to uv sync in CI, so future lockfile/pyproject.toml drift fails the build instead of being silently re-resolved away.
  • Pin uv to 0.11.16 in setup-uv, so dependency resolution is reproducible across runs.

Why

CI runs uv sync without --locked, so the stale lock went unnoticed — uv just re-resolved on the fly. Enforcing the lock makes drift visible; pinning uv keeps resolution deterministic.

Verification

Full CI sequence run locally with the pinned uv (0.11.16):

  • uv sync --locked --only-group dev — passes (lock now consistent)
  • ruff check / ruff format --check / mypy strict — all green

🤖 Generated with Claude Code

The committed uv.lock was out of sync with pyproject.toml: #2 moved the
dev dependencies into [dependency-groups], but the lock still recorded
them as an optional-dependency extra. Regenerating brings the lock back
in line — no dependency versions change.

- Regenerate uv.lock so the [dependency-groups] dev set is represented
  correctly (9 insertions / 6 deletions, no version churn)
- Add --locked to `uv sync` so CI fails on future lockfile drift
  instead of silently re-resolving
- Pin uv to 0.11.16 in setup-uv for reproducible resolution

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@niranjans niranjans merged commit d77292a into main May 22, 2026
1 check passed
@niranjans niranjans deleted the ci-lock-pin branch May 22, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant