Skip to content

Commit 03f94d3

Browse files
chore: [autoapprove] Update black and isort to latest versions (#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 <partheniou@google.com>
1 parent 8b68ed3 commit 03f94d3

File tree

157 files changed

+13
-171
lines changed

Some content is hidden

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

157 files changed

+13
-171
lines changed

packages/google-cloud-bigquery/.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:fac304457974bb530cc5396abd4ab25d26a469cd3bc97cbfb18c8d4324c584eb
17-
# created: 2023-10-02T21:31:03.517640371Z
16+
digest: sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
17+
# created: 2023-10-09T14:06:13.397766266Z

packages/google-cloud-bigquery/.kokoro/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ typing-extensions==4.4.0 \
467467
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
468468
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
469469
# via -r requirements.in
470-
urllib3==1.26.12 \
471-
--hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \
472-
--hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997
470+
urllib3==1.26.17 \
471+
--hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \
472+
--hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b
473473
# via
474474
# requests
475475
# twine

packages/google-cloud-bigquery/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: end-of-file-fixer
2323
- id: check-yaml
2424
- repo: https://github.com/psf/black
25-
rev: 22.3.0
25+
rev: 23.7.0
2626
hooks:
2727
- id: black
2828
- repo: https://github.com/pycqa/flake8

packages/google-cloud-bigquery/google/cloud/bigquery/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ def list_datasets(
476476
span_attributes = {"path": path}
477477

478478
def api_request(*args, **kwargs):
479-
480479
return self._call_api(
481480
retry,
482481
span_name="BigQuery.listDatasets",
@@ -2686,7 +2685,6 @@ def load_table_from_dataframe(
26862685
os.close(tmpfd)
26872686

26882687
try:
2689-
26902688
if new_job_config.source_format == job.SourceFormat.PARQUET:
26912689
if _PYARROW_VERSION in _PYARROW_BAD_VERSIONS:
26922690
msg = (
@@ -2722,7 +2720,6 @@ def load_table_from_dataframe(
27222720
)
27232721

27242722
else:
2725-
27262723
dataframe.to_csv(
27272724
tmppath,
27282725
index=False,

packages/google-cloud-bigquery/google/cloud/bigquery/dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ def __ne__(self, other):
454454
return not self == other
455455

456456
def __repr__(self):
457-
458457
return f"<AccessEntry: role={self.role}, {self._entity_type}={self.entity_id}>"
459458

460459
def _key(self):

packages/google-cloud-bigquery/google/cloud/bigquery/job/query.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,6 @@ def referenced_tables(self):
12311231
datasets_by_project_name = {}
12321232

12331233
for table in self._job_statistics().get("referencedTables", ()):
1234-
12351234
t_project = table["projectId"]
12361235

12371236
ds_id = table["datasetId"]

packages/google-cloud-bigquery/noxfile.py

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

2525
MYPY_VERSION = "mypy==0.910"
2626
PYTYPE_VERSION = "pytype==2021.4.9"
27-
BLACK_VERSION = "black==22.3.0"
27+
BLACK_VERSION = "black==23.7.0"
2828
BLACK_PATHS = (
2929
"docs",
3030
"google",

packages/google-cloud-bigquery/samples/add_empty_column.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
def add_empty_column(table_id: str) -> None:
17-
1817
# [START bigquery_add_empty_column]
1918
from google.cloud import bigquery
2019

packages/google-cloud-bigquery/samples/browse_table_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
def browse_table_data(table_id: str) -> None:
17-
1817
# [START bigquery_browse_table]
1918

2019
from google.cloud import bigquery

packages/google-cloud-bigquery/samples/client_list_jobs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
def client_list_jobs() -> None:
17-
1817
# [START bigquery_list_jobs]
1918

2019
from google.cloud import bigquery

0 commit comments

Comments
 (0)