Skip to content

Fix pylint for the main package #3658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2017
Merged

Conversation

theacodes
Copy link
Contributor

NOTE: Pylint is still failing against tests, I have a longer-term strategy to address this which I'll propose later.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 24, 2017
:raises: Exception if the response code is not 200 OK.
:raises ~google.cloud.exceptions.GoogleCloudError: if the response code
is not 200 OK.
:raises TypeError: if the response content type is not JSON.

This comment was marked as spam.

This comment was marked as spam.

from __future__ import absolute_import


class _Monkey(object):
# context-manager for replacing module names in the scope of a test.
"""Context-manager for replacing module names in the scope of a test."""

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@@ -68,8 +66,12 @@ def _tempdir_mgr():
return _tempdir_mgr


# pylint: disable=invalid-name
# Retain _tempdir as a constant for backwards compatibility despite

This comment was marked as spam.

This comment was marked as spam.

@@ -64,7 +64,7 @@ def from_service_account_json(cls, json_credentials_path, *args, **kwargs):

:rtype: :class:`_ClientFactoryMixin`
:returns: The client created with the retrieved JSON credentials.
:raises: :class:`TypeError` if there is a conflict with the kwargs
:raises TypeError: if there is a conflict with the kwargs
and the credentials created by the factory.

This comment was marked as spam.

This comment was marked as spam.

@@ -242,7 +242,8 @@ def _page_iter(self, increment):
results per page while an items iterator will want
to increment per item.

Yields :class:`Page` instances.
:rtype: :class:`Page`
:returns: pages

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@theacodes theacodes merged commit 506a304 into googleapis:master Jul 24, 2017
@theacodes theacodes deleted the fix-core-lint branch July 24, 2017 21:09
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants