diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89592929a2afb..19d84650118e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -537,6 +537,16 @@ repos: pass_filenames: false require_serial: true additional_dependencies: ['rich>=12.4.4'] + - id: prevent-deprecated-sqlalchemy-usage + name: Prevent deprecated sqlalchemy usage + entry: ./scripts/ci/pre_commit/prevent_deprecated_sqlalchemy_usage.py + language: python + additional_dependencies: ['rich>=12.4.4'] + files: > + (?x) + ^airflow-ctl.*\.py$| + ^task_sdk.*\.py$ + pass_filenames: true - id: update-supported-versions name: Updates supported versions in documentation entry: ./scripts/ci/pre_commit/supported_versions.py diff --git a/contributing-docs/08_static_code_checks.rst b/contributing-docs/08_static_code_checks.rst index 494fe6a08aa82..86c64c6781ed1 100644 --- a/contributing-docs/08_static_code_checks.rst +++ b/contributing-docs/08_static_code_checks.rst @@ -354,6 +354,8 @@ require Breeze Docker image to be built locally. +-----------------------------------------------------------+--------------------------------------------------------+---------+ | pretty-format-json | Format JSON files | | +-----------------------------------------------------------+--------------------------------------------------------+---------+ +| prevent-deprecated-sqlalchemy-usage | Prevent deprecated sqlalchemy usage | | ++-----------------------------------------------------------+--------------------------------------------------------+---------+ | pylint | pylint | | +-----------------------------------------------------------+--------------------------------------------------------+---------+ | python-no-log-warn | Check if there are no deprecate log warn | | diff --git a/dev/breeze/doc/images/output_static-checks.svg b/dev/breeze/doc/images/output_static-checks.svg index cf51d1ab8d4d8..d7ef8a1294667 100644 --- a/dev/breeze/doc/images/output_static-checks.svg +++ b/dev/breeze/doc/images/output_static-checks.svg @@ -1,4 +1,4 @@ - +