Skip to content

Add pre-commit to prevent usage of session.query in Airflow Core #45461

@ephraimbuddy

Description

@ephraimbuddy

Description

We should add a pre-commit that prevents the use of session.query in airflow core. We should limit it to the source and not the tests/ package for now. The core airflow was almost rid of session.query, but the usage is gradually increasing. Adding this would require fixing all the session.query usages in the core code

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codegood first issuekind:featureFeature Requests

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions