You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run non-provider mypy checks as regular prek static checks instead of separate CI jobs (#64780)
Non-provider mypy checks (airflow-core, task-sdk, airflow-ctl, dev, scripts,
devel-common) now run locally via uv as regular prek hooks in the pre-commit
stage, instead of running as separate mypy CI jobs in the CI image checks
workflow. This means they run as part of the regular static checks job in CI
and automatically on every local commit.
The folder-level mypy checks (which check entire directories at once for
comprehensive cross-file type checking) replace the previous file-level
incremental checks.
Provider mypy checks still run via breeze as a dedicated CI job, now embedded
directly in the main CI workflow (ci-amd-arm.yml) instead of being dispatched
through the ci-image-checks reusable workflow.
The selective checks logic skips non-provider mypy hooks when their relevant
files haven't changed, unless devel-common/pyproject.toml changes on main
(which affects all mypy configurations).
Copy file name to clipboardExpand all lines: AGENTS.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@
30
30
-**Run other suites of tests**`breeze testing <test_group>` (test groups: `airflow-ctl-tests`, `docker-compose-tests`, `task-sdk-tests`)
31
31
-**Run scripts tests:**`uv run --project scripts pytest scripts/tests/ -xvs`
32
32
-**Run Airflow CLI:**`breeze run airflow dags list`
33
-
-**Type-check:**`breeze run mypy path/to/code`
33
+
-**Type-check (non-providers):**`uv run --project <PROJECT> --with "apache-airflow-devel-common[mypy]" mypy path/to/code`
34
+
-**Type-check (providers):**`breeze run mypy path/to/code`
34
35
-**Lint with ruff only:**`prek run ruff --from-ref <target_branch>`
35
36
-**Format with ruff only:**`prek run ruff-format --from-ref <target_branch>`
36
37
-**Run regular (fast) static checks:**`prek run --from-ref <target_branch> --stage pre-commit`
@@ -147,7 +148,7 @@ code review checklist in [`.github/instructions/code-review.instructions.md`](.g
147
148
3. Confirm the code follows the project's coding standards and architecture boundaries
148
149
described in this file.
149
150
4. Run regular (fast) static checks (`prek run --from-ref <target_branch> --stage pre-commit`)
150
-
and fix any failures.
151
+
and fix any failures. This includes mypy checks for non-provider projects (airflow-core, task-sdk, airflow-ctl, dev, scripts, devel-common).
151
152
5. Run manual (slower) checks (`prek run --from-ref <target_branch> --stage manual`) and fix any failures.
152
153
6. Run relevant individual tests and confirm they pass.
153
154
7. Find which tests to run for the changes with selective-checks and run those tests in parallel to confirm they pass and check for CI-specific issues.
0 commit comments