Skip to content

Commit

Permalink
chore: [autoapprove] Update black and isort to latest versions (#…
Browse files Browse the repository at this point in the history
…1678)

* chore: [autoapprove] Update `black` and `isort` to latest versions

Source-Link: googleapis/synthtool@0c7b033
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547

* update black in noxfile.py

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people committed Oct 10, 2023
1 parent 924e081 commit faa50b9
Show file tree
Hide file tree
Showing 157 changed files with 13 additions and 171 deletions.
4 changes: 2 additions & 2 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:fac304457974bb530cc5396abd4ab25d26a469cd3bc97cbfb18c8d4324c584eb
# created: 2023-10-02T21:31:03.517640371Z
digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
# created: 2023-10-09T14:06:13.397766266Z
6 changes: 3 additions & 3 deletions .kokoro/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ typing-extensions==4.4.0 \
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
# via -r requirements.in
urllib3==1.26.12 \
--hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \
--hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997
urllib3==1.26.17 \
--hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \
--hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b
# via
# requests
# twine
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
3 changes: 0 additions & 3 deletions google/cloud/bigquery/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ def list_datasets(
span_attributes = {"path": path}

def api_request(*args, **kwargs):

return self._call_api(
retry,
span_name="BigQuery.listDatasets",
Expand Down Expand Up @@ -2686,7 +2685,6 @@ def load_table_from_dataframe(
os.close(tmpfd)

try:

if new_job_config.source_format == job.SourceFormat.PARQUET:
if _PYARROW_VERSION in _PYARROW_BAD_VERSIONS:
msg = (
Expand Down Expand Up @@ -2722,7 +2720,6 @@ def load_table_from_dataframe(
)

else:

dataframe.to_csv(
tmppath,
index=False,
Expand Down
1 change: 0 additions & 1 deletion google/cloud/bigquery/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ def __ne__(self, other):
return not self == other

def __repr__(self):

return f"<AccessEntry: role={self.role}, {self._entity_type}={self.entity_id}>"

def _key(self):
Expand Down
1 change: 0 additions & 1 deletion google/cloud/bigquery/job/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,6 @@ def referenced_tables(self):
datasets_by_project_name = {}

for table in self._job_statistics().get("referencedTables", ()):

t_project = table["projectId"]

ds_id = table["datasetId"]
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

MYPY_VERSION = "mypy==0.910"
PYTYPE_VERSION = "pytype==2021.4.9"
BLACK_VERSION = "black==22.3.0"
BLACK_VERSION = "black==23.7.0"
BLACK_PATHS = (
"docs",
"google",
Expand Down
1 change: 0 additions & 1 deletion samples/add_empty_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def add_empty_column(table_id: str) -> None:

# [START bigquery_add_empty_column]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/browse_table_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def browse_table_data(table_id: str) -> None:

# [START bigquery_browse_table]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/client_list_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_list_jobs() -> None:

# [START bigquery_list_jobs]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/client_load_partitioned_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_load_partitioned_table(table_id: str) -> None:

# [START bigquery_load_table_partitioned]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query() -> None:

# [START bigquery_query]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/client_query_add_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_add_column(table_id: str) -> None:

# [START bigquery_add_column_query_append]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def client_query_batch() -> "bigquery.QueryJob":

# [START bigquery_query_batch]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_destination_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_destination_table(table_id: str) -> None:

# [START bigquery_query_destination_table]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_destination_table_clustered.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_destination_table_clustered(table_id: str) -> None:

# [START bigquery_query_clustered_table]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_destination_table_cmek.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_destination_table_cmek(table_id: str, kms_key_name: str) -> None:

# [START bigquery_query_destination_table_cmek]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_destination_table_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_destination_table_legacy(table_id: str) -> None:

# [START bigquery_query_legacy_large_results]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_dry_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def client_query_dry_run() -> "bigquery.QueryJob":

# [START bigquery_query_dry_run]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_legacy_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_legacy_sql() -> None:

# [START bigquery_query_legacy]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_relax_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_relax_column(table_id: str) -> None:

# [START bigquery_relax_column_query_append]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_w_array_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_w_array_params() -> None:

# [START bigquery_query_params_arrays]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_w_named_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_w_named_params() -> None:

# [START bigquery_query_params_named]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_w_positional_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_w_positional_params() -> None:

# [START bigquery_query_params_positional]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_w_struct_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_w_struct_params() -> None:

# [START bigquery_query_params_structs]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/client_query_w_timestamp_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def client_query_w_timestamp_params() -> None:

# [START bigquery_query_params_timestamps]
import datetime

Expand Down
1 change: 0 additions & 1 deletion samples/copy_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def copy_table(source_table_id: str, destination_table_id: str) -> None:

# [START bigquery_copy_table]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/copy_table_cmek.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def copy_table_cmek(dest_table_id: str, orig_table_id: str, kms_key_name: str) -> None:

# [START bigquery_copy_table_cmek]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/copy_table_multiple_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


def copy_table_multiple_source(dest_table_id: str, table_ids: Sequence[str]) -> None:

# [START bigquery_copy_table_multiple_source]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/create_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def create_dataset(dataset_id: str) -> None:

# [START bigquery_create_dataset]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/create_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


def create_job() -> "Union[LoadJob, CopyJob, ExtractJob, QueryJob]":

# [START bigquery_create_job]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/create_routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def create_routine(routine_id: str) -> "bigquery.Routine":

# [START bigquery_create_routine]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/create_routine_ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def create_routine_ddl(routine_id: str) -> None:

# [START bigquery_create_routine_ddl]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/create_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def create_table(table_id: str) -> None:

# [START bigquery_create_table]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/create_table_clustered.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def create_table_clustered(table_id: str) -> "bigquery.Table":

# [START bigquery_create_table_clustered]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/create_table_range_partitioned.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def create_table_range_partitioned(table_id: str) -> "bigquery.Table":

# [START bigquery_create_table_range_partitioned]
from google.cloud import bigquery

Expand Down
1 change: 0 additions & 1 deletion samples/dataset_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def dataset_exists(dataset_id: str) -> None:

# [START bigquery_dataset_exists]
from google.cloud import bigquery
from google.cloud.exceptions import NotFound
Expand Down
1 change: 0 additions & 1 deletion samples/delete_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def delete_dataset(dataset_id: str) -> None:

# [START bigquery_delete_dataset]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/delete_dataset_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


def delete_dataset_labels(dataset_id: str) -> "bigquery.Dataset":

# [START bigquery_delete_label_dataset]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/delete_routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def delete_routine(routine_id: str) -> None:

# [START bigquery_delete_routine]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/delete_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def delete_table(table_id: str) -> None:

# [START bigquery_delete_table]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/download_public_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def download_public_data() -> None:

# [START bigquery_pandas_public_data]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/download_public_data_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def download_public_data_sandbox() -> None:

# [START bigquery_pandas_public_data_sandbox]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/geography/insert_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
def insert_geojson(
override_values: Optional[Mapping[str, str]] = None
) -> Sequence[Dict[str, object]]:

if override_values is None:
override_values = {}

Expand Down
1 change: 0 additions & 1 deletion samples/geography/insert_wkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
def insert_wkt(
override_values: Optional[Mapping[str, str]] = None
) -> Sequence[Dict[str, object]]:

if override_values is None:
override_values = {}

Expand Down
1 change: 0 additions & 1 deletion samples/get_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def get_dataset(dataset_id: str) -> None:

# [START bigquery_get_dataset]

from google.cloud import bigquery
Expand Down
1 change: 0 additions & 1 deletion samples/get_dataset_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


def get_dataset_labels(dataset_id: str) -> None:

# [START bigquery_get_dataset_labels]

from google.cloud import bigquery
Expand Down
Loading

0 comments on commit faa50b9

Please sign in to comment.