potiuk commented on code in PR #62682:
URL: https://github.com/apache/airflow/pull/62682#discussion_r2885634594
##########
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 --ref-from main` locally to find and fix issues.",
+ _STATIC_CHECKS_URL,
+ ),
+ (
+ "Ruff (linting / formatting)",
+ ["ruff"],
+ "Run `prek run ruff --ref-from main` and `prek run ruff-format
--ref-from main` to fix.",
Review Comment:
Oh absolutely - it was my mistake in the original instructions actually -
and AI copied it from there :) ... Good spot. I will rebase to latest main and
fix it.
--
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]