lint: Add comments to EXCLUDED_FILES entries.

This commit is contained in:
Tim Abbott 2016-12-27 19:48:43 -08:00
parent f46d99ba85
commit d47ea7a608
1 changed files with 14 additions and 9 deletions

View File

@ -20,15 +20,20 @@ except ImportError as e:
sys.exit(1)
# Exclude some directories and files from lint checking
EXCLUDED_FILES = """
api/integrations/perforce/git_p4.py
puppet/apt/.forge-release
puppet/apt/README.md
static/locale
static/third
zproject/settings.py
zproject/test_settings.py
""".split()
EXCLUDED_FILES = [
# Third-party code that doesn't match our style
"api/integrations/perforce/git_p4.py",
"puppet/apt/.forge-release",
"puppet/apt/README.md",
"static/third",
# Transifex syncs translation.json files without trailing
# newlines; there's nothing other than trailing newlines we'd be
# checking for in these anyway.
"static/locale",
# Settings files make a lot of use of * imports
"zproject/settings.py",
"zproject/test_settings.py",
]
@contextmanager
def bright_red_output():