From abab7fa64311eac1dc0a173ad21398048e905635 Mon Sep 17 00:00:00 2001 From: Philippe Kueck Date: Thu, 8 Aug 2024 09:59:07 +0200 Subject: [PATCH] add support for parsing filter-type and test-type plugins via yaml files No-Issue --- galaxy_importer/finder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/galaxy_importer/finder.py b/galaxy_importer/finder.py index 42d11b48..e348dc0b 100644 --- a/galaxy_importer/finder.py +++ b/galaxy_importer/finder.py @@ -67,7 +67,10 @@ def _find_plugins(self, content_type, content_dir): """Find all python files anywhere inside content_dir.""" for path, _, files in os.walk(content_dir): for file in files: - if not file.endswith(".py") or file == "__init__.py": + if file == "__init__.py" or not ( + file.endswith(".py") or file.endswith(".yaml") or + file.endswith(".yml") + ): continue file_path = os.path.join(path, file) rel_path = os.path.relpath(file_path, self.path)