Clean up run_pylint_on_tests

This commit is contained in:
Florian Bruhin 2017-12-15 23:20:09 +01:00
parent c506ffa4cd
commit b8a5c04b69

View File

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