Skip to content
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

chore(bigquery): format code with latest version of black #9556

Merged
merged 1 commit into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions bigquery/google/cloud/bigquery_v2/proto/model_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions bigquery/google/cloud/bigquery_v2/proto/standard_sql_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion bigquery/google/cloud/bigquery_v2/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
from google.protobuf import wrappers_pb2


_shared_modules = [empty_pb2, timestamp_pb2, wrappers_pb2]
_shared_modules = [
empty_pb2,
timestamp_pb2,
wrappers_pb2,
]

_local_modules = [
encryption_config_pb2,
Expand Down
4 changes: 2 additions & 2 deletions bigquery/samples/query_external_sheets_permanent_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def query_external_sheets_permanent_table(dataset_id):
external_config.source_uris = [sheet_url]
external_config.options.skip_leading_rows = 1 # Optionally skip header row.
external_config.options.range = (
"us-states!A20:B49"
) # Optionally set range of the sheet to query from.
"us-states!A20:B49" # Optionally set range of the sheet to query from.
)
table.external_data_configuration = external_config

# Create a permanent table linked to the Sheets file.
Expand Down
4 changes: 2 additions & 2 deletions bigquery/samples/query_external_sheets_temporary_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def query_external_sheets_temporary_table():
]
external_config.options.skip_leading_rows = 1 # Optionally skip header row.
external_config.options.range = (
"us-states!A20:B49"
) # Optionally set range of the sheet to query from.
"us-states!A20:B49" # Optionally set range of the sheet to query from.
)
table_id = "us_states"
job_config = bigquery.QueryJobConfig()
job_config.table_definitions = {table_id: external_config}
Expand Down
10 changes: 5 additions & 5 deletions bigquery/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-09-12T14:51:08.578469Z",
"updateTime": "2019-10-29T12:13:17.119821Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.36.2",
"dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1"
"version": "0.40.3",
"dockerImage": "googleapis/artman@sha256:c805f50525f5f557886c94ab76f56eaa09cb1da58c3ee95111fd34259376621a"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "1cb29d0fd49437d8e5d7de327e258739e998f01c",
"internalRef": "268598527"
"sha": "532773acbed8d09451dafb3d403ab1823e6a6e1e",
"internalRef": "277177415"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion bigquery/tests/unit/test__pandas_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def test_list_columns_and_indexes_without_named_index(module_under_test):

@pytest.mark.skipif(pandas is None, reason="Requires `pandas`")
def test_list_columns_and_indexes_with_named_index_same_as_column_name(
module_under_test
module_under_test,
):
df_data = collections.OrderedDict(
[
Expand Down
2 changes: 1 addition & 1 deletion bigquery/tests/unit/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def test__set_future_result_w_done_wo_result_set_w_error(self):

set_exception.assert_called_once()
args, kw = set_exception.call_args
exception, = args
(exception,) = args
self.assertIsInstance(exception, NotFound)
self.assertEqual(exception.message, "testing")
self.assertEqual(kw, {})
Expand Down