mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Use lint friendly output for python syntax checks. (#22390)
This commit is contained in:
parent
9acf551674
commit
fbf55886ba
2 changed files with 118 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue