ashb commented on a change in pull request #18238:
URL: https://github.com/apache/airflow/pull/18238#discussion_r708163328



##########
File path: 
scripts/ci/pre_commit/pre_commit_check_providers_subpackages_all_have_init.py
##########
@@ -26,9 +26,11 @@
 
 def check_dir_init_file(provider_files: List[str]) -> None:
     missing_init_dirs = []
-    for dags_file in provider_files:
-        if os.path.isdir(dags_file) and not 
os.path.exists(os.path.join(dags_file, "__init__.py")):
-            missing_init_dirs.append(dags_file)
+    for path in provider_files:

Review comment:
       Rename the variable too -- it was copy-pasted from some other script I 
guess




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