MaksYermak commented on a change in pull request #20077:
URL: https://github.com/apache/airflow/pull/20077#discussion_r765677432
##########
File path: scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py
##########
@@ -151,7 +151,10 @@ def parse_module_data(provider_data, resource_type,
yaml_file_path):
package_dir = ROOT_DIR + "/" + os.path.dirname(yaml_file_path)
provider_package = os.path.dirname(yaml_file_path).replace(os.sep, ".")
py_files = chain(
- glob(f"{package_dir}/**/{resource_type}/*.py"),
glob(f"{package_dir}/{resource_type}/*.py")
+ glob(f"{package_dir}/**/{resource_type}/*.py"),
+ glob(f"{package_dir}/{resource_type}/*.py"),
+ glob(f"{package_dir}/**/{resource_type}/**/*.py"),
+ glob(f"{package_dir}/{resource_type}/**/*.py"),
Review comment:
I have done this changes, because for Vertex AI we use package for code
rather than one module and for packages our static check doesn't work.
--
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]