Lint cleanup (#15103)

* Remove unneeded inline pylint disables

* Remove unneeded noqa's

* Use symbol names instead of message ids in inline pylint disables
This commit is contained in:
Ville Skyttä
2018-06-25 20:05:07 +03:00
committed by Paulus Schoutsen
parent 6c0fc65eaf
commit b92350fb55
137 changed files with 58 additions and 209 deletions

View File

@@ -39,7 +39,6 @@ def printc(the_color, *args):
def validate_requirements_ok():
"""Validate requirements, returns True of ok."""
# pylint: disable=E0402
from gen_requirements_all import main as req_main
return req_main(True) == 0
@@ -70,7 +69,6 @@ async def async_exec(*args, display=False):
'stderr': asyncio.subprocess.STDOUT}
if display:
kwargs['stderr'] = asyncio.subprocess.PIPE
# pylint: disable=E1120
proc = await asyncio.create_subprocess_exec(*args, **kwargs)
except FileNotFoundError as err:
printc(FAIL, "Could not execute {}. Did you install test requirements?"