This is an automated email from the ASF dual-hosted git repository.

timsaucer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git


The following commit(s) were added to refs/heads/main by this push:
     new ad8d41f2 chore: enforce uv lockfile consistency in CI and pre-commit 
(#1398)
ad8d41f2 is described below

commit ad8d41f2b5faff9a35aeeb340a24480c8ccb6eff
Author: Daniel Mesejo <[email protected]>
AuthorDate: Sat Mar 28 14:35:32 2026 +0100

    chore: enforce uv lockfile consistency in CI and pre-commit (#1398)
    
    * 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.
    
    * chore: add missing --locked calls
---
 .github/workflows/build.yml | 1 +
 .github/workflows/test.yml  | 3 +++
 .pre-commit-config.yaml     | 7 +++++++
 3 files changed, 11 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 77880fdf..1ef951d7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -36,6 +36,7 @@ on:
 env:
   CARGO_TERM_COLOR: always
   RUST_BACKTRACE: 1
+  UV_LOCKED: true
 
 jobs:
   # ============================================
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 890072a0..706ccbc5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -23,6 +23,9 @@ name: Test
 on:
   workflow_call:
 
+env:
+  UV_LOCKED: true
+
 jobs:
   test-matrix:
     runs-on: ubuntu-latest
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8ae6a4e3..2d3c2bc5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -53,5 +53,12 @@ repos:
             additional_dependencies:
               - tomli
 
+      - repo: https://github.com/astral-sh/uv-pre-commit
+        # uv version.
+        rev: 0.10.7
+        hooks:
+          # Update the uv lockfile
+          - id: uv-lock
+
 default_language_version:
       python: python3


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to