Add pre-commit to prevent usage of session.query in Airflow Core #45461
Labels
area:dev-env
CI, pre-commit, pylint and other changes that do not change the behavior of the final code
good first issue
kind:feature
Feature Requests
needs-triage
label for new issues that we didn't triage yet
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 ofsession.query
, but the usage is gradually increasing. Adding this would require fixing all thesession.query
usages in the core codeUse case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: