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


##########
airflow/providers/remote/plugins/templates/__init__.py:
##########


Review Comment:
   You can always add exceptions for `templates` folder in the pre-commit. We 
already exclude `doc` and `adr` folders in it:
   
   ```python
   ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 
os.pardir, os.pardir, os.pardir))
   
   
   def check_dir_init_file(provider_files: list[str]) -> None:
       missing_init_dirs: list[Path] = []
       for candidate_path in provider_files:
           if candidate_path.endswith("/__pycache__"):
               continue
           path = Path(candidate_path)
           if path.is_dir() and not (path / "__init__.py").exists():
               if path.name != "adr" and path.name != "doc":
                   missing_init_dirs.append(path)
   
   ```



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