potiuk commented on code in PR #32604:
URL: https://github.com/apache/airflow/pull/32604#discussion_r1270393896


##########
airflow/configuration.py:
##########
@@ -1732,6 +1787,31 @@ def 
create_default_config_parser(configuration_description: dict[str, dict[str,
     return parser
 
 
+def write_default_airflow_configuration_if_needed():
+    if not os.path.isfile(AIRFLOW_CONFIG):
+        import rich
+
+        rich.print("Creating new Airflow config file in: %s", AIRFLOW_CONFIG)

Review Comment:
   yes. Local imports. We often use it to delay the moment when the imports 
happen (similar case as with Airlfow's DAG top level code best practice to 
avoid expensive operations at parsing time).



-- 
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