Skip to content

Commit fca8003

Browse files
committed
lint errors
1 parent a02b620 commit fca8003

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

pandas/io/gbq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_credentials(self):
169169
@staticmethod
170170
def get_application_default_credentials(project_id):
171171
"""
172-
Given a project_id tries to retrieve the
172+
Given a project_id tries to retrieve the
173173
"default application credentials"
174174
Could be useful for running code on Google Cloud Platform
175175
"""

pandas/io/tests/test_gbq.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def _test_imports():
8383
from oauth2client.client import GoogleCredentials # noqa
8484
from oauth2client.client import OAuth2WebServerFlow # noqa
8585
from oauth2client.client import AccessTokenRefreshError # noqa
86-
from oauth2client.client import \
87-
ApplicationDefaultCredentialsError # noqa
8886

8987
from oauth2client.file import Storage # noqa
9088
from oauth2client.tools import run_flow # noqa
@@ -138,8 +136,7 @@ def _test_imports():
138136
oauth2client_v1 = False
139137

140138
try:
141-
from oauth2client.service_account import \
142-
ServiceAccountCredentials # noqa
139+
from oauth2client.service_account import ServiceAccountCredentials # noqa
143140
except ImportError:
144141
oauth2client_v2 = False
145142

@@ -161,8 +158,7 @@ def clean_gbq_environment(private_key=None):
161158
for i in range(1, 10):
162159
if DATASET_ID + str(i) in dataset.datasets():
163160
dataset_id = DATASET_ID + str(i)
164-
table = gbq._Table(PROJECT_ID, dataset_id,
165-
private_key=private_key)
161+
table = gbq._Table(PROJECT_ID, dataset_id, private_key=private_key)
166162
for j in range(1, 20):
167163
if TABLE_ID + str(j) in dataset.tables(dataset_id):
168164
table.delete(TABLE_ID + str(j))
@@ -192,13 +188,15 @@ def test_generate_bq_schema_deprecated():
192188
df = make_mixed_dataframe_v2(10)
193189
gbq.generate_bq_schema(df)
194190

191+
195192
def google_credentials_import():
196193
try:
197194
from oauth2client.client import GoogleCredentials
198195
return GoogleCredentials
199196
except ImportError:
200197
return type(None)
201198

199+
202200
def test_should_be_able_to_get_credentials_from_default_credentials():
203201
GoogleCredentials = google_credentials_import()
204202
connector = gbq.GbqConnector

0 commit comments

Comments
 (0)