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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 59192ef23ae Add uv-sync prek hook to keep uv.lock updated after 
dependency changes (#63754)
59192ef23ae is described below

commit 59192ef23ae946d52d7ee9105e7ec856e37fe708
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Mar 16 22:01:31 2026 +0100

    Add uv-sync prek hook to keep uv.lock updated after dependency changes 
(#63754)
    
    When pyproject.toml files are modified, the local uv.lock can get out
    of sync with declared dependencies. This adds a prek hook that
    automatically runs `uv sync` whenever any pyproject.toml file changes,
    ensuring the lockfile and virtual environment stay consistent.
---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7308d31cb20..e55a8e5568b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -259,6 +259,13 @@ repos:
           ^scripts/ci/prek/update_installers_and_prek\.py$
         pass_filenames: false
         require_serial: true
+      - id: uv-sync
+        name: Run uv sync
+        entry: uv sync
+        language: system
+        files: (^|/)pyproject\.toml$
+        pass_filenames: false
+        require_serial: true
       - id: update-uv-lock
         name: Update uv.lock (manual)
         entry: ./scripts/ci/prek/update_uv_lock.py

Reply via email to