Prab-27 commented on code in PR #62682:
URL: https://github.com/apache/airflow/pull/62682#discussion_r2887313962


##########
dev/breeze/src/airflow_breeze/utils/github.py:
##########
@@ -355,3 +356,205 @@ def download_artifact_from_pr(pr: str, output_file: Path, 
github_repository: str
     get_console().print(f"[info]Found run id {run_id} for PR {pr}")
 
     download_artifact_from_run_id(str(run_id), output_file, github_repository, 
github_token)
+
+
+_CONTRIBUTING_DOCS_URL = 
"https://github.com/apache/airflow/blob/main/contributing-docs";
+_STATIC_CHECKS_URL = f"{_CONTRIBUTING_DOCS_URL}/08_static_code_checks.rst"
+_TESTING_URL = f"{_CONTRIBUTING_DOCS_URL}/09_testing.rst"
+
+# Patterns to categorize failing CI check names
+_CHECK_CATEGORIES: list[tuple[str, list[str], str, str]] = [
+    # (category, name_patterns, fix_instructions, doc_url)
+    (
+        "Pre-commit / static checks",
+        ["static checks", "pre-commit", "prek"],
+        "Run `prek run --from-ref main` locally to find and fix issues.",
+        _STATIC_CHECKS_URL,
+    ),
+    (
+        "Ruff (linting / formatting)",
+        ["ruff"],
+        "Run `prek run ruff --from-ref main` and `prek run ruff-format 
--from-ref main` to fix.",
+        f"{_STATIC_CHECKS_URL}#using-prek",
+    ),
+    (
+        "mypy (type checking)",
+        ["mypy"],
+        "Run `prek run mypy --from-ref main --stage pre-push` locally. "

Review Comment:
   Just confirm Do we need to update this `mypy` to `mypy-foldername` as above ?



-- 
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]

Reply via email to