diff options
author | 2021-01-20 13:29:47 -0800 | |
---|---|---|
committer | 2021-01-20 13:29:47 -0800 | |
commit | b3e30e517011bb5228c3421a8f1d46a4a824417b (patch) | |
tree | 398bf735106a3586dfabce715851ea0c06b772ca | |
parent | a5ad91c7f5a918adfa664337e7a8fc337e882249 (diff) |
Fix lint function and add pylint directive
-rw-r--r-- | infra/cifuzz/build_fuzzers_entrypoint.py | 3 | ||||
-rw-r--r-- | infra/cifuzz/run_fuzzers_entrypoint.py | 3 | ||||
-rwxr-xr-x | infra/presubmit.py | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/infra/cifuzz/build_fuzzers_entrypoint.py b/infra/cifuzz/build_fuzzers_entrypoint.py index 657eaf51..8128e1a5 100644 --- a/infra/cifuzz/build_fuzzers_entrypoint.py +++ b/infra/cifuzz/build_fuzzers_entrypoint.py @@ -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', diff --git a/infra/cifuzz/run_fuzzers_entrypoint.py b/infra/cifuzz/run_fuzzers_entrypoint.py index 75312c3d..631d0a2a 100644 --- a/infra/cifuzz/run_fuzzers_entrypoint.py +++ b/infra/cifuzz/run_fuzzers_entrypoint.py @@ -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', diff --git a/infra/presubmit.py b/infra/presubmit.py index a84db3b4..0cf0d73f 100755 --- a/infra/presubmit.py +++ b/infra/presubmit.py @@ -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'] |