ashb commented on a change in pull request #4153: [AIRFLOW-3308] Fix plugins 
import
URL: https://github.com/apache/incubator-airflow/pull/4153#discussion_r234585552
 
 

 ##########
 File path: airflow/__init__.py
 ##########
 @@ -79,3 +79,16 @@ class AirflowViewPlugin(BaseView):
 class AirflowMacroPlugin(object):
     def __init__(self, namespace):
         self.namespace = namespace
+
+
+from airflow import operators  # noqa: E402
+from airflow import sensors  # noqa: E402
+from airflow import hooks  # noqa: E402
+from airflow import executors  # noqa: E402
+from airflow import macros  # noqa: E402
+
+operators._integrate_plugins()
+sensors._integrate_plugins()  # noqa: E402
 
 Review comment:
   This one shouldn't need a noqa should it?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to