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

   Clarify the `validate-operators-init` diagnostic at the point where 
contributors encounter template-field constructor logic.
   
   The burn-down distinguishes value-dependent validation or transformation, 
which must run after template rendering, from argument-provision checks, which 
belong in `__init__`. The current message only recommends moving logic to 
`execute()`, making the documented exception easy to miss. This change names 
both cases, links the issue's false-positive guidance, and adds regression 
coverage for the emitted diagnostic without changing validator semantics or the 
exemption list.
   
   related: #70296
   
   Testing:
   - `uv run --frozen pytest 
scripts/tests/ci/prek/test_validate_operators_init.py -q` (49 passed)
   - `uv run --frozen pytest scripts/tests/ci/prek -q` (845 passed)
   - Applicable pre-commit hooks, including `mypy-scripts` (245 files) and 
`mypy-devel-common` (100 files)
   - Manual-stage hooks
   - `breeze ci selective-check --commit-ref HEAD`
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Codex (GPT-5)
   
   Generated-by: Codex (GPT-5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   
   ---
   Drafted-by: Codex (GPT-5) (no human review before posting)


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