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

   ## Summary
   
   The `check-provider-yaml-valid` hook has been aborting with `Error: 
PYTHONWARNINGS not set` on unrelated pull requests — six times over 27–28 
August, each cleared by a rerun.
   
   `_generated_docker_compose.env` names the variables Compose forwards into 
the container, and every breeze invocation rewrites it from its own 
environment. prek runs the breeze-backed hooks concurrently and only the 
provider.yaml and template-fields checks ask for `PYTHONWARNINGS`, so any other 
hook regenerating the file between that write and `docker compose run` took the 
variable away again.
   
   Passing it through `base.yml` instead keeps it out of that shared file, so 
it no longer depends on what a concurrent invocation writes, and a 
`PYTHONWARNINGS` exported on the host is still forwarded.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5)
   
   Generated-by: Claude Code (Opus 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]

Reply via email to