mirror of https://github.com/google/oss-fuzz.git
Fix lint function and add pylint directive
This commit is contained in:
parent
a5ad91c7f5
commit
b3e30e5170
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue