mirror of https://github.com/google/oss-fuzz.git
[pylint] Enable no-member check (#5034)
This commit is contained in:
parent
5b51cfb00f
commit
648242fdb4
|
@ -141,7 +141,6 @@ disable=print-statement,
|
||||||
comprehension-escape,
|
comprehension-escape,
|
||||||
fixme,
|
fixme,
|
||||||
import-error,
|
import-error,
|
||||||
no-member
|
|
||||||
|
|
||||||
# Enable the message, report, category or checker with the given id(s). You can
|
# Enable the message, report, category or checker with the given id(s). You can
|
||||||
# either give multiple identifier separated by comma (,) or put this option
|
# either give multiple identifier separated by comma (,) or put this option
|
||||||
|
|
|
@ -32,6 +32,8 @@ from project_sync import ProjectMetadata
|
||||||
from project_sync import sync_projects
|
from project_sync import sync_projects
|
||||||
import test_utils
|
import test_utils
|
||||||
|
|
||||||
|
# pylint: disable=no-member
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
class Repository:
|
class Repository:
|
||||||
|
|
|
@ -33,6 +33,8 @@ from request_build import get_project_data
|
||||||
from request_build import update_build_history
|
from request_build import update_build_history
|
||||||
import test_utils
|
import test_utils
|
||||||
|
|
||||||
|
# pylint: disable=no-member
|
||||||
|
|
||||||
|
|
||||||
class TestRequestBuilds(unittest.TestCase):
|
class TestRequestBuilds(unittest.TestCase):
|
||||||
"""Unit tests for sync."""
|
"""Unit tests for sync."""
|
||||||
|
|
|
@ -30,6 +30,8 @@ from datastore_entities import Project
|
||||||
from build_and_run_coverage import get_build_steps
|
from build_and_run_coverage import get_build_steps
|
||||||
import test_utils
|
import test_utils
|
||||||
|
|
||||||
|
# pylint: disable=no-member
|
||||||
|
|
||||||
|
|
||||||
class TestRequestCoverageBuilds(unittest.TestCase):
|
class TestRequestCoverageBuilds(unittest.TestCase):
|
||||||
"""Unit tests for sync."""
|
"""Unit tests for sync."""
|
||||||
|
|
|
@ -30,6 +30,8 @@ from datastore_entities import LastSuccessfulBuild
|
||||||
import test_utils
|
import test_utils
|
||||||
import update_build_status
|
import update_build_status
|
||||||
|
|
||||||
|
# pylint: disable=no-member
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
class MockGetBuild:
|
class MockGetBuild:
|
||||||
|
|
|
@ -62,9 +62,8 @@ def wrap(retries,
|
||||||
sleep(get_delay(num_try, delay, backoff))
|
sleep(get_delay(num_try, delay, backoff))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
logging.log_error('Retrying on %s failed with %s. Raise.' %
|
logging.error('Retrying on %s failed with %s. Raise.', function_with_type,
|
||||||
(function_with_type, sys.exc_info()[1]),
|
sys.exc_info()[1])
|
||||||
total=tries)
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@functools.wraps(func)
|
@functools.wraps(func)
|
||||||
|
|
Loading…
Reference in New Issue