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

potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 33bf76fadad [v3-2-test] Fix `mypy-scripts` and 
`check-distribution-gitignore` hooks (#65611) (#65615)
33bf76fadad is described below

commit 33bf76fadadfc91dd515c7d8aa61dc6856fe9a00
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Apr 27 03:05:46 2026 +0200

    [v3-2-test] Fix `mypy-scripts` and `check-distribution-gitignore` hooks 
(#65611) (#65615)
    
    * Exclude files dir. from check-distribution-gitignore
    
    * Add apache-airflow-core as a dependency of scripts/pyproject.toml
    (cherry picked from commit 4af7776f633c3dd4efe94276166c9b8ae99bea43)
    
    Co-authored-by: Shahar Epstein <[email protected]>
---
 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