wjddn279 commented on code in PR #64138:
URL: https://github.com/apache/airflow/pull/64138#discussion_r2979357796


##########
scripts/ci/prek/check_cli_definition_imports.py:
##########
@@ -39,10 +39,7 @@
 from common_prek_utils import console, get_imports_from_file
 
 # Allowed modules that can be imported in CLI definition files
-ALLOWED_MODULES = {
-    "airflow.configuration",
-    "airflow.cli.cli_config",
-}
+ALLOWED_MODULES = {"airflow.configuration", "airflow.cli.cli_config", 
"airflow.providers.common.compat.sdk"}

Review Comment:
   @jason810496 
   
   Resolved. It cover only cases like
   ```python
   from airflow.providers.common.compat.sdk import conf
   from airflow.providers.common.compat.sdk import conf as my_conf
   import airflow.providers.common.compat.sdk.conf
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to