Fix lint function and add pylint directive

This commit is contained in:
Jonathan Metzman 2021-01-20 13:29:47 -08:00
parent a5ad91c7f5
commit b3e30e5170
3 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,9 @@ import sys
import cifuzz
# pylint: disable=c-extension-no-member
# pylint gets confused because of the relative import of cifuzz.
# TODO: Turn default logging to INFO when CIFuzz is stable
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',

View File

@ -18,6 +18,9 @@ import sys
import cifuzz
# pylint: disable=c-extension-no-member
# pylint gets confused because of the relative import of cifuzz.
# TODO: Turn default logging to INFO when CIFuzz is stable.
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',

View File

@ -292,7 +292,7 @@ def is_nonfuzzer_python(path):
return os.path.splitext(path)[1] == '.py' and '/projects/' not in path
def lint():
def lint(_=None):
"""Run python's linter on infra. Return False if it fails linting."""
command = ['python3', '-m', 'pylint', '-j', '0', 'infra']