Skip to content

Commit 95238be

Browse files
committed
Merge pull request #1583 from tseaver/pylint-ignore_six_and_google_protobf
Hide 'six' and 'google.protobuf' from pylint's borked import sniffing.
2 parents d38fd23 + dfced8a commit 95238be

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

gcloud/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from google.protobuf import timestamp_pb2
2727
import six
28-
from six.moves.http_client import HTTPConnection # pylint: disable=F0401
28+
from six.moves.http_client import HTTPConnection
2929

3030
from gcloud.environment_vars import PROJECT
3131

gcloud/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import json
1818
from pkg_resources import get_distribution
1919
import six
20-
from six.moves.urllib.parse import urlencode # pylint: disable=F0401
20+
from six.moves.urllib.parse import urlencode
2121

2222
import httplib2
2323

gcloud/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import base64
1818
import datetime
1919
import six
20-
from six.moves.urllib.parse import urlencode # pylint: disable=F0401
20+
from six.moves.urllib.parse import urlencode
2121

2222
from oauth2client import client
2323

gcloud/storage/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import time
2323

2424
import six
25-
from six.moves.urllib.parse import quote # pylint: disable=F0401
25+
from six.moves.urllib.parse import quote
2626

2727
from gcloud._helpers import _rfc3339_to_datetime
2828
from gcloud.credentials import generate_signed_url

gcloud/streaming/http_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
import httplib2
1414
import six
15-
from six.moves import http_client # pylint: disable=F0401
16-
from six.moves.urllib import parse # pylint: disable=F0401
15+
from six.moves import http_client
16+
from six.moves.urllib import parse
1717

1818
from gcloud.streaming.exceptions import BadStatusCodeError
1919
from gcloud.streaming.exceptions import RequestError

scripts/pylintrc_default

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ good-names = i, j, k, ex, Run, _,
320320
# (useful for modules/projects where namespaces are manipulated during runtime
321321
# and thus existing member attributes cannot be deduced by static analysis
322322
# DEFAULT: ignored-modules=
323+
# RATIONALE: six aliases stuff for compatibility.
324+
# google.protobuf fixes up namespace package "late".
325+
ignored-modules = six, google.protobuf
323326

324327
# List of classes names for which member attributes should not be checked
325328
# (useful for classes with attributes dynamically set).

0 commit comments

Comments
 (0)