This is an automated email from the ASF dual-hosted git repository.
jasonliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 62cbf63c515 update check_clie_definition_import to allow using common
provider sdk (#64138)
62cbf63c515 is described below
commit 62cbf63c515950b6d72dac35476c48cf5dd7b970
Author: Jeongwoo Do <[email protected]>
AuthorDate: Tue Mar 24 15:52:25 2026 +0900
update check_clie_definition_import to allow using common provider sdk
(#64138)
* update check_clie_definition_import to allow using common provider sdk
* fix allowed module
* fix allowed module
---
scripts/ci/prek/check_cli_definition_imports.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/ci/prek/check_cli_definition_imports.py
b/scripts/ci/prek/check_cli_definition_imports.py
index c8a9d1730af..de3aa60f6e5 100755
--- a/scripts/ci/prek/check_cli_definition_imports.py
+++ b/scripts/ci/prek/check_cli_definition_imports.py
@@ -42,6 +42,7 @@ from common_prek_utils import console, get_imports_from_file
ALLOWED_MODULES = {
"airflow.configuration",
"airflow.cli.cli_config",
+ "airflow.providers.common.compat.sdk.conf",
}
# Standard library and __future__ modules are also allowed
@@ -164,6 +165,7 @@ def main() -> int:
f"[yellow]CLI definition files (*/cli/definition.py) should only
import from:[/]\n"
" - airflow.configuration\n"
" - airflow.cli.cli_config\n"
+ " - airflow.providers.common.compat.sdk.conf\n"
" - Their own provider's version_compat module\n"
f" - Standard library modules ({', '.join(STDLIB_PREFIXES)})\n"
)