run_checks: Add flake8 --ignore

This commit is contained in:
Florian Bruhin 2014-01-28 23:13:06 +01:00
parent 6f3a2448ba
commit 8f9a896919

View File

@ -66,9 +66,14 @@ pylint_disable = [
'global-statement', # Sometimes necessary
]
flake8_disable = [
'E241', # Multiple spaces after ,
]
run('pylint', ['--ignore=appdirs.py', '--output-format=colorized',
'--reports=no', '--disable=' + ','.join(pylint_disable)])
run('flake8', ['--max-complexity=10', '--exclude=appdirs.py'])
run('flake8', ['--max-complexity=10', '--exclude=appdirs.py',
'--ignore=' + ''.join(flake8_disable)])
check_crlf()
print('Exit status values:')