From 47eb659c70d703a2d1ed9c46e6c258fefa559c45 Mon Sep 17 00:00:00 2001 From: Oliver Meyer Date: Fri, 6 Nov 2026 15:57:59 +0100 Subject: [PATCH] ci: install from the lock file with --locked CI installed with uv sync --frozen, which skips the check that uv.lock matches pyproject.toml. Use --locked so a stale lock fails. Co-Authored-By: Claude Opus 5.5 --- noxfile.py | 4 ++-- tasks.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 6be2205..c97e986 100644 --- a/noxfile.py +++ b/noxfile.py @@ -59,10 +59,10 @@ def _setup_venv(session: nox.Session, all_extras: bool = True, resolution: str | session: The nox session all_extras: Whether to install all extras resolution: Optional uv resolution strategy (e.g. ``"lowest-direct"``). When - set, ``--resolution `` replaces ``--frozen`` so uv re-resolves + set, ``--resolution `` replaces ``--locked`` so uv re-resolves rather than using the lockfile. """ - args = ["uv", "sync", "--resolution", resolution] if resolution else ["uv", "sync", "--frozen"] + args = ["uv", "sync", "--resolution", resolution] if resolution else ["uv", "sync", "--locked"] if all_extras: args.append("--all-extras") session.run_install( diff --git a/tasks.toml b/tasks.toml index 3502b8c..3b9bb01 100644 --- a/tasks.toml +++ b/tasks.toml @@ -28,7 +28,7 @@ description = "Install dev dependencies and pre-commit hooks" run = """ uv tool install keyring==25.7.0 --with keyrings.google-artifactregistry-auth==1.1.2 if [ -f uv.lock ]; then - uv sync --all-extras --frozen + uv sync --all-extras --locked else uv sync --all-extras fi