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 be40099afb9 Make prek hook to check shared distributions resilient to 
empty dirs (#59972)
be40099afb9 is described below

commit be40099afb9f6e3a5da50f380aa9cc44d1b6c0b7
Author: Amogh Desai <[email protected]>
AuthorDate: Wed Dec 31 20:52:16 2025 +0530

    Make prek hook to check shared distributions resilient to empty dirs 
(#59972)
---
 scripts/ci/prek/check_shared_distributions_structure.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/ci/prek/check_shared_distributions_structure.py 
b/scripts/ci/prek/check_shared_distributions_structure.py
index adb0750c095..8063d9c6ace 100755
--- a/scripts/ci/prek/check_shared_distributions_structure.py
+++ b/scripts/ci/prek/check_shared_distributions_structure.py
@@ -213,6 +213,12 @@ def main() -> None:
     all_ok = True
     for shared_project in SHARED_DIR.iterdir():
         if shared_project.is_dir():
+            # Not having a pyproject.toml means no distribution here, so using 
it as a marker to skip
+            if not (shared_project / "pyproject.toml").exists():
+                console.print(
+                    f"\n[yellow]Skipping empty directory:[/yellow] 
[magenta]{shared_project.name}[/magenta]"
+                )
+                continue
             ok = check_shared_distribution(shared_project)
             if not ok:
                 all_ok = False

Reply via email to