Skip to content

Commit 54d16f0

Browse files
committed
Fixing lint issues after package rename.
1 parent 6faf161 commit 54d16f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+394
-222
lines changed

docs/bigquery_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"""Testable usage examples for Google Cloud BigQuery API wrapper
1616
1717
Each example function takes a ``client`` argument (which must be an instance
18-
of :class:`google.cloud.bigquery.client.Client`) and uses it to perform a task with
19-
the API.
18+
of :class:`google.cloud.bigquery.client.Client`) and uses it to perform a task
19+
with the API.
2020
2121
To facilitate running the examples as system tests, each example is also passed
2222
a ``to_delete`` list; the function adds to the list any objects created which

docs/pubsub_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"""Testable usage examples for Google Cloud Pubsub API wrapper
1616
1717
Each example function takes a ``client`` argument (which must be an instance
18-
of :class:`google.cloud.pubsub.client.Client`) and uses it to perform a task with
19-
the API.
18+
of :class:`google.cloud.pubsub.client.Client`) and uses it to perform a task
19+
with the API.
2020
2121
To facilitate running the examples as system tests, each example is also passed
2222
a ``to_delete`` list; the function adds to the list any objects created which

google/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
"""Base ``google`` namespace package."""
16+
1517
try:
1618
import pkg_resources
1719
pkg_resources.declare_namespace(__name__)

google/cloud/_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
from six.moves.http_client import HTTPConnection
4343
from six.moves import configparser
4444

45+
# pylint: disable=ungrouped-imports
4546
from google.cloud.environment_vars import PROJECT
4647
from google.cloud.environment_vars import CREDENTIALS
48+
# pylint: enable=ungrouped-imports
4749

4850

4951
_NOW = datetime.datetime.utcnow # To be replaced by tests.

google/cloud/bigquery/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
1717
The main concepts with this API are:
1818
19-
- :class:`google.cloud.bigquery.dataset.Dataset` represents an collection of tables.
19+
- :class:`~google.cloud.bigquery.dataset.Dataset` represents a
20+
collection of tables.
2021
21-
- :class:`google.cloud.bigquery.table.Table` represents a single "relation".
22+
- :class:`~google.cloud.bigquery.table.Table` represents a single "relation".
2223
"""
2324

2425
try:

google/cloud/bigquery/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def list_datasets(self, include_all=False, max_results=None,
6868
datasets.
6969
7070
:rtype: tuple, (list, str)
71-
:returns: list of :class:`google.cloud.bigquery.dataset.Dataset`, plus a
72-
"next page token" string: if the token is not None,
71+
:returns: list of :class:`~google.cloud.bigquery.dataset.Dataset`,
72+
plus a "next page token" string: if the token is not None,
7373
indicates that more datasets can be retrieved with another
7474
call (pass that value as ``page_token``).
7575
"""

google/cloud/bigquery/dataset.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ def from_api_repr(cls, resource, client):
317317
def _require_client(self, client):
318318
"""Check client or verify over-ride.
319319
320-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
320+
:type client: :class:`~google.cloud.bigquery.client.Client` or
321+
``NoneType``
321322
:param client: the client to use. If not passed, falls back to the
322323
``client`` stored on the current dataset.
323324
@@ -413,7 +414,8 @@ def create(self, client=None):
413414
See:
414415
https://cloud.google.com/bigquery/docs/reference/v2/tables/insert
415416
416-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
417+
:type client: :class:`~google.cloud.bigquery.client.Client` or
418+
``NoneType``
417419
:param client: the client to use. If not passed, falls back to the
418420
``client`` stored on the current dataset.
419421
"""
@@ -429,7 +431,8 @@ def exists(self, client=None):
429431
See
430432
https://cloud.google.com/bigquery/docs/reference/v2/datasets/get
431433
432-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
434+
:type client: :class:`~google.cloud.bigquery.client.Client` or
435+
``NoneType``
433436
:param client: the client to use. If not passed, falls back to the
434437
``client`` stored on the current dataset.
435438
@@ -452,7 +455,8 @@ def reload(self, client=None):
452455
See
453456
https://cloud.google.com/bigquery/docs/reference/v2/datasets/get
454457
455-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
458+
:type client: :class:`~google.cloud.bigquery.client.Client` or
459+
``NoneType``
456460
:param client: the client to use. If not passed, falls back to the
457461
``client`` stored on the current dataset.
458462
"""
@@ -468,7 +472,8 @@ def patch(self, client=None, **kw):
468472
See
469473
https://cloud.google.com/bigquery/docs/reference/v2/datasets/patch
470474
471-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
475+
:type client: :class:`~google.cloud.bigquery.client.Client` or
476+
``NoneType``
472477
:param client: the client to use. If not passed, falls back to the
473478
``client`` stored on the current dataset.
474479
@@ -506,7 +511,8 @@ def update(self, client=None):
506511
See
507512
https://cloud.google.com/bigquery/docs/reference/v2/datasets/update
508513
509-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
514+
:type client: :class:`~google.cloud.bigquery.client.Client` or
515+
``NoneType``
510516
:param client: the client to use. If not passed, falls back to the
511517
``client`` stored on the current dataset.
512518
"""
@@ -521,7 +527,8 @@ def delete(self, client=None):
521527
See:
522528
https://cloud.google.com/bigquery/docs/reference/v2/tables/delete
523529
524-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
530+
:type client: :class:`~google.cloud.bigquery.client.Client` or
531+
``NoneType``
525532
:param client: the client to use. If not passed, falls back to the
526533
``client`` stored on the current dataset.
527534
"""

google/cloud/bigquery/job.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def project(self):
156156
def _require_client(self, client):
157157
"""Check client or verify over-ride.
158158
159-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
159+
:type client: :class:`~google.cloud.bigquery.client.Client` or
160+
``NoneType``
160161
:param client: the client to use. If not passed, falls back to the
161162
``client`` stored on the current dataset.
162163
@@ -354,7 +355,8 @@ def begin(self, client=None):
354355
See:
355356
https://cloud.google.com/bigquery/docs/reference/v2/jobs/insert
356357
357-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
358+
:type client: :class:`~google.cloud.bigquery.client.Client` or
359+
``NoneType``
358360
:param client: the client to use. If not passed, falls back to the
359361
``client`` stored on the current dataset.
360362
"""
@@ -370,7 +372,8 @@ def exists(self, client=None):
370372
See
371373
https://cloud.google.com/bigquery/docs/reference/v2/jobs/get
372374
373-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
375+
:type client: :class:`~google.cloud.bigquery.client.Client` or
376+
``NoneType``
374377
:param client: the client to use. If not passed, falls back to the
375378
``client`` stored on the current dataset.
376379
@@ -393,7 +396,8 @@ def reload(self, client=None):
393396
See
394397
https://cloud.google.com/bigquery/docs/reference/v2/jobs/get
395398
396-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
399+
:type client: :class:`~google.cloud.bigquery.client.Client` or
400+
``NoneType``
397401
:param client: the client to use. If not passed, falls back to the
398402
``client`` stored on the current dataset.
399403
"""
@@ -409,7 +413,8 @@ def cancel(self, client=None):
409413
See
410414
https://cloud.google.com/bigquery/docs/reference/v2/jobs/cancel
411415
412-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
416+
:type client: :class:`~google.cloud.bigquery.client.Client` or
417+
``NoneType``
413418
:param client: the client to use. If not passed, falls back to the
414419
``client`` stored on the current dataset.
415420
"""

google/cloud/bigquery/query.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def project(self):
7777
def _require_client(self, client):
7878
"""Check client or verify over-ride.
7979
80-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
80+
:type client: :class:`~google.cloud.bigquery.client.Client` or
81+
``NoneType``
8182
:param client: the client to use. If not passed, falls back to the
8283
``client`` stored on the current dataset.
8384
@@ -301,7 +302,8 @@ def run(self, client=None):
301302
See:
302303
https://cloud.google.com/bigquery/docs/reference/v2/jobs/query
303304
304-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
305+
:type client: :class:`~google.cloud.bigquery.client.Client` or
306+
``NoneType``
305307
:param client: the client to use. If not passed, falls back to the
306308
``client`` stored on the current dataset.
307309
"""
@@ -331,7 +333,8 @@ def fetch_data(self, max_results=None, page_token=None, start_index=None,
331333
:param timeout_ms: timeout, in milliseconds, to wait for query to
332334
complete
333335
334-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
336+
:type client: :class:`~google.cloud.bigquery.client.Client` or
337+
``NoneType``
335338
:param client: the client to use. If not passed, falls back to the
336339
``client`` stored on the current dataset.
337340

google/cloud/bigquery/table.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def view_query(self):
368368
def list_partitions(self, client=None):
369369
"""List the partitions in a table.
370370
371-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
371+
:type client: :class:`~google.cloud.bigquery.client.Client` or
372+
``NoneType``
372373
:param client: the client to use. If not passed, falls back to the
373374
``client`` stored on the current dataset.
374375
@@ -406,7 +407,8 @@ def from_api_repr(cls, resource, dataset):
406407
def _require_client(self, client):
407408
"""Check client or verify over-ride.
408409
409-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
410+
:type client: :class:`~google.cloud.bigquery.client.Client` or
411+
``NoneType``
410412
:param client: the client to use. If not passed, falls back to the
411413
``client`` stored on the current dataset.
412414
@@ -477,7 +479,8 @@ def create(self, client=None):
477479
See:
478480
https://cloud.google.com/bigquery/docs/reference/v2/tables/insert
479481
480-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
482+
:type client: :class:`~google.cloud.bigquery.client.Client` or
483+
``NoneType``
481484
:param client: the client to use. If not passed, falls back to the
482485
``client`` stored on the current dataset.
483486
"""
@@ -494,7 +497,8 @@ def exists(self, client=None):
494497
See
495498
https://cloud.google.com/bigquery/docs/reference/v2/tables/get
496499
497-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
500+
:type client: :class:`~google.cloud.bigquery.client.Client` or
501+
``NoneType``
498502
:param client: the client to use. If not passed, falls back to the
499503
``client`` stored on the current dataset.
500504
@@ -517,7 +521,8 @@ def reload(self, client=None):
517521
See
518522
https://cloud.google.com/bigquery/docs/reference/v2/tables/get
519523
520-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
524+
:type client: :class:`~google.cloud.bigquery.client.Client` or
525+
``NoneType``
521526
:param client: the client to use. If not passed, falls back to the
522527
``client`` stored on the current dataset.
523528
"""
@@ -540,7 +545,8 @@ def patch(self,
540545
See
541546
https://cloud.google.com/bigquery/docs/reference/v2/tables/patch
542547
543-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
548+
:type client: :class:`~google.cloud.bigquery.client.Client` or
549+
``NoneType``
544550
:param client: the client to use. If not passed, falls back to the
545551
``client`` stored on the current dataset.
546552
@@ -606,7 +612,8 @@ def update(self, client=None):
606612
See
607613
https://cloud.google.com/bigquery/docs/reference/v2/tables/update
608614
609-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
615+
:type client: :class:`~google.cloud.bigquery.client.Client` or
616+
``NoneType``
610617
:param client: the client to use. If not passed, falls back to the
611618
``client`` stored on the current dataset.
612619
"""
@@ -621,7 +628,8 @@ def delete(self, client=None):
621628
See:
622629
https://cloud.google.com/bigquery/docs/reference/v2/tables/delete
623630
624-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
631+
:type client: :class:`~google.cloud.bigquery.client.Client` or
632+
``NoneType``
625633
:param client: the client to use. If not passed, falls back to the
626634
``client`` stored on the current dataset.
627635
"""
@@ -648,7 +656,8 @@ def fetch_data(self, max_results=None, page_token=None, client=None):
648656
:type page_token: str or ``NoneType``
649657
:param page_token: token representing a cursor into the table's rows.
650658
651-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
659+
:type client: :class:`~google.cloud.bigquery.client.Client` or
660+
``NoneType``
652661
:param client: the client to use. If not passed, falls back to the
653662
``client`` stored on the current dataset.
654663
@@ -714,7 +723,8 @@ def insert_data(self,
714723
schema of the template table. See:
715724
https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables
716725
717-
:type client: :class:`google.cloud.bigquery.client.Client` or ``NoneType``
726+
:type client: :class:`~google.cloud.bigquery.client.Client` or
727+
``NoneType``
718728
:param client: the client to use. If not passed, falls back to the
719729
``client`` stored on the current dataset.
720730
@@ -851,7 +861,8 @@ def upload_from_file(self,
851861
:param write_disposition: job configuration option; see
852862
:meth:`google.cloud.bigquery.job.LoadJob`.
853863
854-
:type client: :class:`google.cloud.storage.client.Client` or ``NoneType``
864+
:type client: :class:`~google.cloud.storage.client.Client` or
865+
``NoneType``
855866
:param client: Optional. The client to use. If not passed, falls back
856867
to the ``client`` stored on the current dataset.
857868

0 commit comments

Comments
 (0)