You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2026/03/11 06:45:05 UTC
(iceberg-python) 01/01: replace w/ uv-pre-commit
This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch kevinjqliu/use-uv-pre-commit
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
commit 72af28cf1a8ee174aafa67ae63469976ba09be63
Author: Kevin Liu <ke...@users.noreply.github.com>
AuthorDate: Wed Mar 11 06:44:06 2026 +0000
replace w/ uv-pre-commit
---
.pre-commit-config.yaml | 12 +++++-------
Makefile | 9 +--------
2 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ed5a42e6..f57bcd0d 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 032832c8..1707f20a 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
# ========================
@@ -194,10 +194,3 @@ clean: ## Remove build artifacts and caches
@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)