rjgoyln opened a new pull request, #77528:
URL: https://github.com/apache/airflow/pull/77528

   ## Summary
   
   The `update-chart-dependencies` hook's second `files:` alternative, 
`^../scripts/ci/prek/update_build_dependencies\.py$`, does not match any file:
   
   - The script it names was removed in #45359.
   - The hook lives in the chart project, where prek 0.5.7 matches paths 
relative to `chart/`, so a `^../` alternative is skipped even when the file is 
passed with `--files`.
   
   Removing it does not change when the hook runs: 
`chart/.pre-commit-config.yaml` already triggers it on its own, including in 
the `--all-files` run from `breeze ci upgrade`.
   
   ## Tests
   
   - `prek run --from-ref upstream/main --to-ref HEAD --stage manual`: the hook 
still runs on this diff and passes without changing any file.
   - Throwaway prek 0.5.7 workspace: old and new patterns give the same 
run/skip result for `--all-files`, `--files chart/.pre-commit-config.yaml` and 
`--files scripts/...`.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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

  • [PR] Remove dead files patter... rjgoyln (via GitHub) via commits

Reply via email to