You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automated checks where possible for example dags #52477
For all checks that are possible to be automated (e.g. enforcing proper pydoc per example dag) checks are implemented.
This ticket might be splitted and does not define a fixed list but candidates might be:
Check for pydoc on module as well as function/task level
Check that display names are attached to all dags and tasks
Check that doc_md is provided
Check that tasks are properly typed (via mypy strict mode and ruff?)
Check that tag "example" is added for all examples, tag according to provider and if testing then the tag "testing"
No deprecated functions being used (via ruff?)
Use case/motivation
Airflow Examples have been grown in number and focus over the past years. They purpose multiple things:
Serve as tutorials to learn Airflow DAG implementation
Serve with code snippets for documentation
Serve for testing the setup
(some) service for CI integration testing
Some example DAGs are in a good quality, some are not following best practices. Current examples do not follow a structure.
There are example DAGs contained in the Airflow core (currently pushed to standard provider/example_dags) as well as there are more examples in other providers. But examples from other providers are lot loaded automatically.
So in the Airflow 3 Dev Calls there was a demand named to clean-up and optimize example DAGs.
Activity
amoghrajesh commentedon Aug 25, 2025
Per Slack thread, targeting “example DAGs” won’t be possible in 3.1, so we’re moving this to Airflow 3.1+
Add prek hook enforcing the "example" tag on example DAGs (#67354)