Remove custom lint flags from pylint sessions. Lint fix.

This commit is contained in:
Pedro Algarvio 2019-12-03 11:51:53 +00:00
parent 98afee1dbd
commit b3b3f43157
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -415,7 +415,7 @@ def _runtests(session, coverage, cmd_args):
# https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr
env = {'OBJC_DISABLE_INITIALIZE_FORK_SAFETY': 'YES'}
session.run(*cmd_args, env=env)
except CommandFailed:
except CommandFailed: # pylint: disable=try-except-raise
# Disabling re-running failed tests for the time being
raise
@ -957,7 +957,7 @@ def lint_salt(session):
Run PyLint against Salt. Set PYLINT_REPORT to a path to capture output.
'''
flags = [
'--disable=I,W1307,C0411,C0413,W8410,str-format-in-logging'
'--disable=I'
]
if session.posargs:
paths = session.posargs
@ -972,7 +972,7 @@ def lint_tests(session):
Run PyLint against Salt and it's test suite. Set PYLINT_REPORT to a path to capture output.
'''
flags = [
'--disable=I,W0232,E1002,W1307,C0411,C0413,W8410,str-format-in-logging'
'--disable=I'
]
if session.posargs:
paths = session.posargs