[pylint] Enable no-member check (#5034)

This commit is contained in:
jonathanmetzman 2021-01-21 16:21:17 -08:00 committed by GitHub
parent 5b51cfb00f
commit 648242fdb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 4 deletions

View File

@ -141,7 +141,6 @@ disable=print-statement,
comprehension-escape,
fixme,
import-error,
no-member
# 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

View File

@ -32,6 +32,8 @@ from project_sync import ProjectMetadata
from project_sync import sync_projects
import test_utils
# pylint: disable=no-member
# pylint: disable=too-few-public-methods
class Repository:

View File

@ -33,6 +33,8 @@ from request_build import get_project_data
from request_build import update_build_history
import test_utils
# pylint: disable=no-member
class TestRequestBuilds(unittest.TestCase):
"""Unit tests for sync."""

View File

@ -30,6 +30,8 @@ from datastore_entities import Project
from build_and_run_coverage import get_build_steps
import test_utils
# pylint: disable=no-member
class TestRequestCoverageBuilds(unittest.TestCase):
"""Unit tests for sync."""

View File

@ -30,6 +30,8 @@ from datastore_entities import LastSuccessfulBuild
import test_utils
import update_build_status
# pylint: disable=no-member
# pylint: disable=too-few-public-methods
class MockGetBuild:

View File

@ -62,9 +62,8 @@ def wrap(retries,
sleep(get_delay(num_try, delay, backoff))
return True
logging.log_error('Retrying on %s failed with %s. Raise.' %
(function_with_type, sys.exc_info()[1]),
total=tries)
logging.error('Retrying on %s failed with %s. Raise.', function_with_type,
sys.exc_info()[1])
return False
@functools.wraps(func)