Skip to content

Commit cd2825a

Browse files
mesejotimsaucer
authored andcommitted
chore: enforce uv lockfile consistency in CI and pre-commit
Add --locked flag to uv sync in CI to fail if uv.lock is out of sync, and add the uv-lock pre-commit hook to automatically keep uv.lock up to date when pyproject.toml changes.
1 parent acd9a8d commit cd2825a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
enable-cache: true
7474

7575
- name: Install dependencies
76-
run: uv sync --dev --no-install-package datafusion
76+
run: uv sync --locked --dev --no-install-package datafusion
7777

7878
- name: Run Ruff
7979
run: |

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,12 @@ repos:
5353
additional_dependencies:
5454
- tomli
5555

56+
- repo: https://github.com/astral-sh/uv-pre-commit
57+
# uv version.
58+
rev: 0.10.7
59+
hooks:
60+
# Update the uv lockfile
61+
- id: uv-lock
62+
5663
default_language_version:
5764
python: python3

0 commit comments

Comments
 (0)