Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Sync dependencies
run: uv sync
run: uv sync --locked

- name: Generate coverage report
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Sync dependencies
run: uv sync --group dev --extra jwt
run: uv sync --locked --group dev --extra jwt

# `tests` is linted here too. pre-commit only sees staged files, so test
# code that was never touched again drifts; that is how the suite came to
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lowest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Sync dependencies
run: uv sync
run: uv sync --locked

- name: Test with the lowest direct dependencies
run: uv run tox -e lowest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
# a missing backend package would turn the gate below into a formality,
# so it does not rely on a dev-group entry staying put.
- name: Sync dependencies
run: uv sync --group dev --extra jwt --extra redis --extra memcached
run: uv sync --locked --group dev --extra jwt --extra redis --extra memcached

# The gate. A release is the one run where a red test result arrives too
# late to matter, so everything CI checks elsewhere is checked here too,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0

- name: Sync dependencies
run: uv sync --extra jwt
run: uv sync --locked --extra jwt

- name: Run tests
run: uv run coverage run -m pytest && uv run coverage report
Expand Down
5 changes: 4 additions & 1 deletion docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ The hooks cover the standard pre-commit-hooks checks, `ruff` (with `--fix`) and
`docs/` and `scripts/`). They run automatically on `git commit`. If any checks fail, fix the issues and try committing again.
`uv-lock` only re-resolves the lockfile when `pyproject.toml` changed; it does not
upgrade pinned versions. Upgrades come from Renovate or an explicit
`uv lock --upgrade`.
`uv lock --upgrade`. Every CI workflow installs with `uv sync --locked`, which
fails when `uv.lock` does not match `pyproject.toml`, so a pull request that
changes a dependency without committing the relocked `uv.lock` goes red
instead of quietly re-resolving on the runner.

pre-commit only sees the files you touched. The **Lint** workflow checks the
whole tree; run the same commands before pushing:
Expand Down
Loading