10000 chore: [autoapprove] Update `black` and `isort` to latest versions (#… · googleapis/python-bigtable@cf1a146 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf1a146

Browse files
chore: [autoapprove] Update black and isort to latest versions (#873)
Source-Link: googleapis/synthtool@0c7b033 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a1cef05 commit cf1a146

13 files changed

+25
-41
lines changed

.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

.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

.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

docs/snippets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ def test_bigtable_create_table():
448448

449449

450450
def test_bigtable_list_tables():
451-
452451
# [START bigtable_api_list_tables]
453452
from google.cloud.bigtable import Client
454453

docs/snippets_table.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,6 @@ def test_bigtable_create_family_gc_nested():
964964

965965

966966
def test_bigtable_row_data_cells_cell_value_cell_values():
967-
968967
value = b"value_in_col1"
969968
row = Config.TABLE.row(b"row_key_1")
970969
row.set_cell(

noxfile.py

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,48 @@
1717
# Generated by synthtool. DO NOT EDIT!
1818

1919
from __future__ import absolute_import
20+
2021
import os
2122
import pathlib
2223
import re
2324
import shutil
25+
from typing import Dict, List
2426
import warnings
2527

2628
import nox
2729

2830
FLAKE8_VERSION = "flake8==6.1.0"
29-
BLACK_VERSION = "black==22.3.0"
30-
ISORT_VERSION = "isort==5.10.1"
31+
BLACK_VERSION = "black[jupyter]==23.7.0"
32+
ISORT_VERSION = "isort==5.11.0"
3133
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3234

3335
DEFAULT_PYTHON_VERSION = "3.8"
3436

35-
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
37+
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"]
3638
UNIT_TEST_STANDARD_DEPENDENCIES = [
3739
"mock",
3840
"asyncmock",
3941
"pytest",
4042
"pytest-cov",
4143
"pytest-asyncio",
4244
]
43-
UNIT_TEST_EXTERNAL_DEPENDENCIES = []
44-
UNIT_TEST_LOCAL_DEPENDENCIES = []
45-
UNIT_TEST_DEPENDENCIES = []
46-
UNIT_TEST_EXTRAS = []
47-
UNIT_TEST_EXTRAS_BY_PYTHON = {}
48-
49-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
50-
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
45+
UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = []
46+
UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = []
47+
UNIT_TEST_DEPENDENCIES: List[str] = []
48+
UNIT_TEST_EXTRAS: List[str] = []
49+
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
50+
51+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"]
52+
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
5153
"mock",
5254
"pytest",
5355
"google-cloud-testutils",
5456
]
55-
SYSTEM_TEST_EXTERNAL_DEPENDENCIES = []
56-
SYSTEM_TEST_LOCAL_DEPENDENCIES = []
57-
SYSTEM_TEST_DEPENDENCIES = []
58-
SYSTEM_TEST_EXTRAS = []
59-
SYSTEM_TEST_EXTRAS_BY_PYTHON = {}
57+
SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = []
58+
SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = []
59+
SYSTEM_TEST_DEPENDENCIES: List[str] = []
60+
SYSTEM_TEST_EXTRAS: List[str] = []
61+
SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6062

6163
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
6264

@@ -71,6 +73,7 @@
7173
"lint_setup_py",
7274
"blacken",
7375
"docs",
76+
"format",
7477
]
7578

7679
# Error if a python version is missing
@@ -201,7 +204,6 @@ def unit(session):
201204

202205

203206
def install_systemtest_dependencies(session, *constraints):
204-
205207
# Use pre-release gRPC for system tests.
206208
# Exclude version 1.52.0rc1 which has a known issue.
207209
# See https://github.com/grpc/grpc/issues/32163

tests/system/test_instance_admin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def _create_app_profile_helper(
2828
allow_transactional_writes=None,
2929
ignore_warnings=None,
3030
):
31-
3231
app_profile = instance.app_profile(
3332
app_profile_id=app_profile_id,
3433
routing_policy_type=routing_policy_type,

tests/unit/test_batcher.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def callback_fn(response):
5959
def test_mutation_batcher_mutate_row():
6060
table = _Table(TABLE_NAME)
6161
with MutationsBatcher(table=table) as mutation_batcher:
62-
6362
rows = [
6463
DirectRow(row_key=b"row_key"),
6564
DirectRow(row_key=b"row_key_2"),
@@ -75,7 +74,6 @@ def test_mutation_batcher_mutate_row():
7574
def test_mutation_batcher_mutate():
7675
table = _Table(TABLE_NAME)
7776
with MutationsBatcher(table=table) as mutation_batcher:
78-
7977
row = DirectRow(row_key=b"row_key")
8078
row.set_cell("cf1", b"c1", 1)
8179
row.set_cell("cf1", b"c2", 2)
@@ -98,7 +96,6 @@ def test_mutation_batcher_flush_w_no_rows():
9896
def test_mutation_batcher_mutate_w_max_flush_count():
9997
table = _Table(TABLE_NAME)
10098
with MutationsBatcher(table=table, flush_count=3) as mutation_batcher:
101-
10299
row_1 = DirectRow(row_key=b"row_key_1")
103100
row_2 = DirectRow(row_key=b"row_key_2")
104101
row_3 = DirectRow(row_key=b"row_key_3")
@@ -114,7 +111,6 @@ def test_mutation_batcher_mutate_w_max_flush_count():
114111
def test_mutation_batcher_mutate_w_max_mutations():
115112
table = _Table(TABLE_NAME)
116113
with MutationsBatcher(table=table) as mutation_batcher:
117-
118114
row = DirectRow(row_key=b"row_key")
119115
row.set_cell("cf1", b"c1", 1)
120116
row.set_cell("cf1", b"c2", 2)
@@ -130,7 +126,6 @@ def test_mutation_batcher_mutate_w_max_row_bytes():
130126
with MutationsBatcher(
131127
table=table, max_row_bytes=3 * 1024 * 1024
132128
) as mutation_batcher:
133-
134129
number_of_bytes = 1 * 1024 * 1024
135130
max_value = b"1" * number_of_bytes
136131

@@ -168,7 +163,6 @@ def test_mutations_batcher_context_manager_flushed_when_closed():
168163
with MutationsBatcher(
169164
table=table, max_row_bytes=3 * 1024 * 1024
170165
) as mutation_batcher:
171-
172166
number_of_bytes = 1 * 1024 * 1024
173167
max_value = b"1" * number_of_bytes
174168

tests/unit/test_cluster.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,6 @@ def test_cluster_update_w_partial_autoscaling_config():
752752
},
753753
]
754754
for config in cluster_config:
755-
756755
cluster = _make_cluster(
757756
CLUSTER_ID,
758757
instance,
@@ -927,7 +926,6 @@ def test_cluster_disable_autoscaling():
927926

928927

929928
def test_create_cluster_with_both_manual_and_autoscaling():
930-
931929
from google.cloud.bigtable.instance import Instance
932930
from google.cloud.bigtable.enums import StorageType
933931

@@ -955,7 +953,6 @@ def test_create_cluster_with_both_manual_and_autoscaling():
955953

956954

957955
def test_create_cluster_with_partial_autoscaling_config():
958-
959956
from google.cloud.bigtable.instance import Instance
960957
from google.cloud.bigtable.enums import StorageType
961958

@@ -996,7 +993,6 @@ def test_create_cluster_with_partial_autoscaling_config():
996993

997994

998995
def test_create_cluster_with_no_scaling_config():
999-
1000996
from google.cloud.bigtable.instance import Instance
1001997
from google.cloud.bigtable.enums import StorageType
1002998

tests/unit/test_column_family.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@ def test__gc_rule_from_pb_unknown_field_name():
595595
from google.cloud.bigtable.column_family import _gc_rule_from_pb
596596

597597
class MockProto(object):
598-
599598
names = []
600599

601600
_pb = {}

0 commit comments

Comments
 (0)
0