Clean up run_pylint_on_tests
This commit is contained in:
parent
c506ffa4cd
commit
b8a5c04b69
@ -49,12 +49,12 @@ def main():
|
|||||||
files.append(os.path.join(dirpath, fn))
|
files.append(os.path.join(dirpath, fn))
|
||||||
|
|
||||||
disabled = [
|
disabled = [
|
||||||
|
# pytest fixtures
|
||||||
'redefined-outer-name',
|
'redefined-outer-name',
|
||||||
'unused-argument',
|
'unused-argument',
|
||||||
|
# things which are okay in tests
|
||||||
'missing-docstring',
|
'missing-docstring',
|
||||||
'protected-access',
|
'protected-access',
|
||||||
# https://bitbucket.org/logilab/pylint/issue/511/
|
|
||||||
#'undefined-variable',
|
|
||||||
'len-as-condition',
|
'len-as-condition',
|
||||||
# directories without __init__.py...
|
# directories without __init__.py...
|
||||||
'import-error',
|
'import-error',
|
||||||
@ -65,9 +65,7 @@ def main():
|
|||||||
toxinidir,
|
toxinidir,
|
||||||
]
|
]
|
||||||
|
|
||||||
no_docstring_rgx = ['^__.*__$', '^setup$']
|
|
||||||
args = (['--disable={}'.format(','.join(disabled)),
|
args = (['--disable={}'.format(','.join(disabled)),
|
||||||
'--no-docstring-rgx=({})'.format('|'.join(no_docstring_rgx)),
|
|
||||||
'--ignored-modules=helpers,pytest,PyQt5'] +
|
'--ignored-modules=helpers,pytest,PyQt5'] +
|
||||||
sys.argv[2:] + files)
|
sys.argv[2:] + files)
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user