From 78de6f24948bf98d2d382b3b99e8440d3d031565 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 17 Feb 2022 19:44:28 +0100 Subject: [PATCH] Allow YAML docs in plugins/test/ and plugins/filters/. (#4204) (#4215) (cherry picked from commit 1e4b8e30a9529ba9b1f350ef57a579abc07cb87f) Co-authored-by: Felix Fontein --- tests/sanity/extra/no-unwanted-files.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/sanity/extra/no-unwanted-files.py b/tests/sanity/extra/no-unwanted-files.py index 49806f2e22..59815f540f 100755 --- a/tests/sanity/extra/no-unwanted-files.py +++ b/tests/sanity/extra/no-unwanted-files.py @@ -26,6 +26,11 @@ def main(): skip_directories = ( ) + yaml_directories = ( + 'plugins/test/', + 'plugins/filter/', + ) + for path in paths: if path in skip_paths: continue @@ -35,6 +40,9 @@ def main(): ext = os.path.splitext(path)[1] + if ext in ('.yml', ) and any(path.startswith(yaml_directory) for yaml_directory in yaml_directories): + continue + if ext not in allowed_extensions: print('%s: extension must be one of: %s' % (path, ', '.join(allowed_extensions)))