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 4af7776f633 Fix `mypy-scripts` and `check-distribution-gitignore` 
hooks (#65611)
4af7776f633 is described below

commit 4af7776f633c3dd4efe94276166c9b8ae99bea43
Author: Shahar Epstein <[email protected]>
AuthorDate: Tue Apr 21 18:46:51 2026 +0300

    Fix `mypy-scripts` and `check-distribution-gitignore` hooks (#65611)
    
    * Exclude files dir. from check-distribution-gitignore
    
    * Add apache-airflow-core as a dependency of scripts/pyproject.toml
---
 scripts/ci/prek/check_distribution_gitignore.py | 2 +-
 scripts/pyproject.toml                          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/ci/prek/check_distribution_gitignore.py 
b/scripts/ci/prek/check_distribution_gitignore.py
index 0adb8090b93..095846b9c24 100755
--- a/scripts/ci/prek/check_distribution_gitignore.py
+++ b/scripts/ci/prek/check_distribution_gitignore.py
@@ -40,7 +40,7 @@ errors: list[str] = []
 for pyproject_path in sorted(AIRFLOW_ROOT_PATH.rglob("pyproject.toml")):
     relative = pyproject_path.relative_to(AIRFLOW_ROOT_PATH)
     # Skip directories that are not part of the source tree
-    if any(part.startswith(".") or part in ("out", "node_modules") for part in 
relative.parts):
+    if any(part.startswith(".") or part in ("out", "node_modules", "files") 
for part in relative.parts):
         continue
     dist_dir = pyproject_path.parent
     gitignore_path = dist_dir / ".gitignore"
diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml
index 952969a15df..a0df39d991c 100644
--- a/scripts/pyproject.toml
+++ b/scripts/pyproject.toml
@@ -62,6 +62,7 @@ dev = [
     "apache-airflow-devel-common",
 ]
 mypy = [
+    "apache-airflow-core",
     "apache-airflow-devel-common[mypy]",
 ]
 

Reply via email to