This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new ce0df3effe8 [v3-1-test] Make prek hook to check shared distributions
resilient to empty dirs (#59972) (#59974)
ce0df3effe8 is described below
commit ce0df3effe8d6de38b41cacf9aa20956db4978c2
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 31 16:27:53 2025 +0100
[v3-1-test] Make prek hook to check shared distributions resilient to empty
dirs (#59972) (#59974)
(cherry picked from commit be40099afb9f6e3a5da50f380aa9cc44d1b6c0b7)
Co-authored-by: Amogh Desai <[email protected]>
---
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 3dfb859f83b..f7eca900877 100755
--- a/scripts/ci/prek/check_shared_distributions_structure.py
+++ b/scripts/ci/prek/check_shared_distributions_structure.py
@@ -217,6 +217,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