Skip to content

Commit 3e1fbe6

Browse files
kevinjqliuKristofer Gaudel
authored andcommitted
Switch to uv-pre-commit for lockfile management (#3141)
1 parent 131a1ea commit 3e1fbe6

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ repos:
6666
rev: v2.4.1
6767
hooks:
6868
- id: codespell
69-
- repo: local
69+
- repo: https://github.com/astral-sh/uv-pre-commit
70+
# uv version.
71+
rev: 0.10.9
7072
hooks:
71-
- id: uv-lock-check
72-
name: uv lock file check
73-
entry: make uv-lock-check
74-
language: system
75-
pass_filenames: false
76-
files: ^(pyproject\.toml|uv\.lock)$
73+
# Update the uv lockfile
74+
- id: uv-lock

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
test test-integration test-integration-setup test-integration-exec test-integration-cleanup test-integration-rebuild \
1919
test-s3 test-adls test-gcs test-coverage coverage-report \
2020
docs-serve docs-build notebook notebook-infra \
21-
clean uv-lock uv-lock-check
21+
clean
2222

2323
.DEFAULT_GOAL := help
2424
# ========================
@@ -193,11 +193,3 @@ clean: ## Remove build artifacts and caches
193193
@echo "Cleaning up coverage files..."
194194
@rm -rf .coverage .coverage.* htmlcov/ coverage.xml
195195
@echo "Cleanup complete."
196-
197-
uv-lock: ## Regenerate uv.lock file from pyproject.toml
198-
uv lock $(PYTHON_ARG)
199-
200-
uv-lock-check: ## Verify uv.lock is up to date
201-
@command -v uv >/dev/null || \
202-
(echo "uv is required. Run 'make install' or 'make install-uv' first." && exit 1)
203-
uv lock --check $(PYTHON_ARG)

0 commit comments

Comments
 (0)