gopidesupavan commented on code in PR #70224:
URL: https://github.com/apache/airflow/pull/70224#discussion_r3630890884
##########
scripts/ci/prek/check_provider_yaml_files.py:
##########
@@ -59,7 +63,10 @@ def _resolve_provider_yaml_files(raw_files: list[str]) ->
list[str]:
# e.g. samba/src/airflow/providers/samba/hooks/samba.py
parts = p.parts
if parts:
- result.add(f"{parts[0]}/provider.yaml")
+ if parts[0] in KNOWN_SECOND_LEVEL_PATHS and len(parts) > 1:
Review Comment:
`common_prek_utils.get_provider_base_dir_from_path()` already has that
shape, and using the actual provider layout as the source of truth would make
this work for `ibm/mq` and any future nested provider?
--
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]