Skip to content

Fix airflow-ctl mypy static check on the 0.1 branch - #71096

Draft
Lee-W wants to merge 1 commit into
apache:airflow-ctl/v0-1-testfrom
astronomer:ctl-v0-1-fix-mypy-static-check
Draft

Fix airflow-ctl mypy static check on the 0.1 branch#71096
Lee-W wants to merge 1 commit into
apache:airflow-ctl/v0-1-testfrom
astronomer:ctl-v0-1-fix-mypy-static-check

Conversation

@Lee-W

@Lee-W Lee-W commented Aug 4, 2026

Copy link
Copy Markdown
Member

The same test-to-stable sync (#67294) repointed the mypy-airflow-ctl hook at ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py, which only exists on main. On this branch prek dies before mypy ever runs:

error: Failed to run hook `mypy-airflow-ctl`
  caused by: Run command `python hook` failed
  caused by: No such file or directory (os error 2)

Point it back at mypy_local_folder.py, which is what airflow-core, task-sdk, devel-common and dev/scripts all use on this branch.

Split out of #70724 so that PR stays workflow-only.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 5

Generated-by: Claude Opus 5 following the guidelines

The same test-to-stable sync (apache#67294) repointed the mypy-airflow-ctl hook
at ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py,
which only exists on main. On this branch prek dies before mypy runs:

    error: Failed to run hook `mypy-airflow-ctl`
      caused by: Run command `python hook` failed
      caused by: No such file or directory (os error 2)

Point it back at mypy_local_folder.py, which is what airflow-core,
task-sdk, devel-common and dev/scripts all use on this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant