Use lint friendly output for python syntax checks. (#22390)

This commit is contained in:
Matt Clay 2017-03-07 20:27:50 -08:00 committed by GitHub
parent 9acf551674
commit fbf55886ba
2 changed files with 118 additions and 2 deletions

View file

@ -690,12 +690,11 @@ def command_compile(args):
# augment file exclusions
skip_paths += [e.path for e in exclude]
skip_paths.append('/.tox/')
skip_paths = sorted(skip_paths)
python = 'python%s' % version
cmd = [python, '-m', 'compileall', '-fq']
cmd = [python, 'test/compile/compile.py']
if skip_paths:
cmd += ['-x', '|'.join(skip_paths)]