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

   Example DAGs are filtered and grouped by tag across the docs and the UI, but 
the `example` tag was applied inconsistently. This adds an AST-based prek hook, 
`check-example-dag-tags`, that fails when a DAG defined under an 
`example_dags/` folder does not carry the `example` tag.
   
   The hook resolves `DAG(...)`, `with DAG(...) as ...:`, `@dag(...)` and bare 
`@dag` decorators, and requires `tags` to be an inline list/tuple literal 
containing `"example"` so it stays statically verifiable. A unit test covering 
each form lives at `scripts/tests/ci/prek/test_check_example_dag_tags.py`.
   
   Every current violator (112 DAG definitions across 41 files) is retagged in 
the same commit so the hook passes on a clean checkout.
   
   Part of #52477
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [ ] Yes


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