This is an automated email from the ASF dual-hosted git repository.
jasonliu 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 f139d6b16eb Specify the mypy hook as part of the error message (#61712)
f139d6b16eb is described below
commit f139d6b16eba215bfafe74e74faaa2b97e18aa78
Author: Elad Kalif <[email protected]>
AuthorDate: Tue Feb 10 11:23:29 2026 +0200
Specify the mypy hook as part of the error message (#61712)
---
scripts/ci/prek/mypy_folder.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/ci/prek/mypy_folder.py b/scripts/ci/prek/mypy_folder.py
index 16606b1db27..0084cd9943f 100755
--- a/scripts/ci/prek/mypy_folder.py
+++ b/scripts/ci/prek/mypy_folder.py
@@ -191,7 +191,7 @@ if res.returncode != 0:
"[yellow]You are running mypy with the folders selected. If
you want to "
"reproduce it locally, you need to run the following
command:\n"
)
- console.print("prek --hook-stage manual mypy-<folder>
--all-files\n")
+ console.print(f"prek --hook-stage manual mypy-{mypy_folders[0]}
--all-files\n")
upgrading = os.environ.get("UPGRADE_TO_NEWER_DEPENDENCIES", "false")
!= "false"
if upgrading:
console.print(
@@ -212,7 +212,7 @@ if res.returncode != 0:
"You are running mypy with the folders selected. If you want
to "
"reproduce it locally, you need to run the following
command:\n"
)
- print("prek --hook-stage manual mypy-<folder> --all-files\n")
+ print(f"prek --hook-stage manual mypy-{mypy_folders[0]}
--all-files\n")
upgrading = os.environ.get("UPGRADE_TO_NEWER_DEPENDENCIES", "false")
!= "false"
if upgrading:
print("You are running mypy with the image that has dependencies
upgraded automatically.\n")