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


##########
scripts/ci/pre_commit/check_providers_subpackages_all_have_init.py:
##########
@@ -30,40 +32,119 @@
     "static",
 ]
 
+PATH_EXTENSION_STRING = '__path__ = 
__import__("pkgutil").extend_path(__path__, __name__)  # type: ignore'
+
+# Here we should add the second level paths that we want to have sub-packages 
in
+KNOWN_SECOND_LEVEL_PATHS = ["apache", "atlassian", "common", "cncf", "dbt", 
"microsoft"]

Review Comment:
   Yes. I plan to find a way to derive it automatically in a follow-up.  But 
this PR is already too large to try to do it now :)



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