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 a906d73b5e Improve mypy warning on problem (#31857)
a906d73b5e is described below
commit a906d73b5ebc67b7015cfc8be9451fadc72dfe94
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon Jun 12 20:26:51 2023 +0200
Improve mypy warning on problem (#31857)
---
scripts/ci/pre_commit/pre_commit_mypy.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/ci/pre_commit/pre_commit_mypy.py
b/scripts/ci/pre_commit/pre_commit_mypy.py
index f167f2280b..eb3408dfaf 100755
--- a/scripts/ci/pre_commit/pre_commit_mypy.py
+++ b/scripts/ci/pre_commit/pre_commit_mypy.py
@@ -85,6 +85,9 @@ if __name__ == "__main__":
get_console().print(
"[warning]If you see strange stacktraces above, "
f"run `breeze ci-image build --python 3.8{flag}` and try again. "
- "You can also run `breeze down --cleanup-mypy-cache` to clean up
the cache used."
+ "You can also run `breeze down --cleanup-mypy-cache` to clean up
the cache used. "
+ "Still sometimes diff heuristic in mypy is behaving abnormal, to
double check you can "
+ "call `breeze static-checks --type mypy-[dev|core|providers|docs]
--all-files` "
+ 'and then commit via `git commit --no-verify -m "commit message"`.
CI will do a full check.'
)
sys.exit(cmd_result.returncode)