From 6bcc5e6f6a30ada0cb3b63667826563a0d857a41 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 16 Feb 2016 16:05:40 -0600 Subject: [PATCH] Add *.txt and test dir to exclusions --- ansible_testing/modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 469fad8f5d..18bd281d07 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -27,7 +27,7 @@ from utils import find_globals import yaml -BLACKLIST_DIRS = frozenset(('.git',)) +BLACKLIST_DIRS = frozenset(('.git', 'test')) INDENT_REGEX = re.compile(r'([\t]*)') BASIC_RESERVED = frozenset((r for r in dir(module_utils_basic) if r[0] != '_')) @@ -89,7 +89,7 @@ class Validator(object): class ModuleValidator(Validator): - BLACKLIST_PATTERNS = ('.git*', '*.pyc', '*.pyo', '.*', '*.md') + BLACKLIST_PATTERNS = ('.git*', '*.pyc', '*.pyo', '.*', '*.md', '*.txt') BLACKLIST_FILES = frozenset(('.git', '.gitignore', '.travis.yml', '.gitattributes', '.gitmodules', 'COPYING', '__init__.py', 'VERSION', 'test-docs.sh'))