diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed5a42e69a..f57bcd0d8d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,11 +66,9 @@ repos: rev: v2.4.1 hooks: - id: codespell - - repo: local + - repo: https://github.com/astral-sh/uv-pre-commit + # uv version. + rev: 0.10.9 hooks: - - id: uv-lock-check - name: uv lock file check - entry: make uv-lock-check - language: system - pass_filenames: false - files: ^(pyproject\.toml|uv\.lock)$ + # Update the uv lockfile + - id: uv-lock diff --git a/Makefile b/Makefile index 032832c8b0..d262de45a9 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ test test-integration test-integration-setup test-integration-exec test-integration-cleanup test-integration-rebuild \ test-s3 test-adls test-gcs test-coverage coverage-report \ docs-serve docs-build notebook notebook-infra \ - clean uv-lock uv-lock-check + clean .DEFAULT_GOAL := help # ======================== @@ -193,11 +193,3 @@ clean: ## Remove build artifacts and caches @echo "Cleaning up coverage files..." @rm -rf .coverage .coverage.* htmlcov/ coverage.xml @echo "Cleanup complete." - -uv-lock: ## Regenerate uv.lock file from pyproject.toml - uv lock $(PYTHON_ARG) - -uv-lock-check: ## Verify uv.lock is up to date - @command -v uv >/dev/null || \ - (echo "uv is required. Run 'make install' or 'make install-uv' first." && exit 1) - uv lock --check $(PYTHON_ARG)