Skip to content

Add precommit to detect and deny core airflow imports in task sdk #44379

Open
@amoghrajesh

Description

@amoghrajesh

Body

Right now, the reviewers have to be extremely careful about the AIP 72 PRs on task SDK not importing from airflow core or it would introduce coupling between core and sdk again.

Add a precommit script to detect and deny such commits.

The intention is that we shouldn't be allowing imports that involves accessing ORM / DB. Mainly: airflow-core/src/airflow/models. But generally in longer term, we should minimise and eliminate the imports from airflow-core all together. For initial phases, selectively allow imports from exceptions and utils.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codearea:dev-toolsarea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDK

Type

No type

Projects

Status

Icebox

Relationships

None yet

Development

No branches or pull requests

Issue actions