potiuk commented on code in PR #57497:
URL: https://github.com/apache/airflow/pull/57497#discussion_r2475932311
##########
scripts/ci/prek/mypy_folder.py:
##########
@@ -116,7 +116,8 @@ def get_all_files(folder: str) -> list[str]:
) and not
file.as_posix().endswith("src/airflow/providers/__init__.py"):
files_to_check.append(file.relative_to(AIRFLOW_ROOT_PATH).as_posix())
file_spec = "@/files/mypy_files.txt"
- console.print(f"[info]Running mypy with {file_spec}")
+ if console:
Review Comment:
Inline comment to block accidental merge.
As TP mentioned - fallback printing is a good idea.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]