Skip to content

Add Airflow deprecation rule for airflow.utils module's deprecated classes #22459

@zach-overflow

Description

@zach-overflow

Summary

Currently, the Airflow ruff rules do not fail on certain deprecated imports from airflow.utils for Airflow version 3.1.5. Ideally, the airflow deprecations ruff rules should trigger a failure for these deprecated class imports.

Worth noting: There are other similar __deprecated_classes dictionaries defined in the airflow-core submodules, which may also be worth filing issues for as needed. A good bit of them are already covered by the ruff rules, but I imagine many of these deprecations came about from Airflow 3.1, and those newer deprecations may need to be reflected in ruff accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions