Add pyroma to run_checks.py
This commit is contained in:
parent
586b1df8df
commit
c5e43c1558
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
""" Run different codecheckers over a codebase.
|
""" Run different codecheckers over a codebase.
|
||||||
|
|
||||||
Runs flake8, pylint, pep257 and a CRLF/whitespace/conflict-checker by default.
|
Runs flake8, pylint, pep257, a CRLF/whitespace/conflict-checker and pyroma by
|
||||||
|
default.
|
||||||
|
|
||||||
Module attributes:
|
Module attributes:
|
||||||
status: An OrderedDict for return status values.
|
status: An OrderedDict for return status values.
|
||||||
@ -186,11 +187,13 @@ def _get_args(checker):
|
|||||||
args += options['other']['pep257']
|
args += options['other']['pep257']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
elif checker == 'pyroma':
|
||||||
|
args = ['.']
|
||||||
return args
|
return args
|
||||||
|
|
||||||
if do_check_257:
|
if do_check_257:
|
||||||
check_pep257(_get_args('pep257'))
|
check_pep257(_get_args('pep257'))
|
||||||
for checker in ['pylint', 'flake8']:
|
for checker in ['pylint', 'flake8', 'pyroma']:
|
||||||
# FIXME what the hell is the flake8 exit status?
|
# FIXME what the hell is the flake8 exit status?
|
||||||
run(checker, _get_args(checker))
|
run(checker, _get_args(checker))
|
||||||
check_line()
|
check_line()
|
||||||
|
Loading…
Reference in New Issue
Block a user