8000 chore: [autoapprove] Update `black` and `isort` to latest versions (#… · googleapis/google-cloud-python@845c0ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 845c0ac

Browse files
chore: [autoapprove] Update black and isort to latest versions (#258)
Source-Link: https://togithub.com/googleapis/synthtool/commit/0c7b0333f44b2b7075447f43a121a12d15a7b76a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:08e34975760f002746b1d8c86fdc90660be45945ee6d9db914d1508acdf9a547
1 parent c6dc273 commit 845c0ac

File tree

5 files changed

+24
-32
lines changed

5 files changed

+24
-32
lines changed

packages/google-cloud-gke-hub/.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-gke-hub/.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-gke-hub/.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-gke-hub/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/transports/rest.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,6 @@ def __call__(
15281528
timeout: Optional[float] = None,
15291529
metadata: Sequence[Tuple[str, str]] = (),
15301530
) -> locations_pb2.Location:
1531-
15321531
r"""Call the get location method over HTTP.
15331532
15341533
Args:
@@ -1595,7 +1594,6 @@ def __call__(
15951594
timeout: Optional[float] = None,
15961595
metadata: Sequence[Tuple[str, str]] = (),
15971596
) -> locations_pb2.ListLocationsResponse:
1598-
15991597
r"""Call the list locations method over HTTP.
16001598
16011599
Args:
@@ -1662,7 +1660,6 @@ def __call__(
16621660
timeout: Optional[float] = None,
16631661
metadata: Sequence[Tuple[str, str]] = (),
16641662
) -> policy_pb2.Policy:
1665-
16661663
r"""Call the get iam policy method over HTTP.
16671664
16681665
Args:
@@ -1729,7 +1726,6 @@ def __call__(
17291726
timeout: Optional[float] = None,
17301727
metadata: Sequence[Tuple[str, str]] = (),
17311728
) -> policy_pb2.Policy:
1732-
17331729
r"""Call the set iam policy method over HTTP.
17341730
17351731
Args:
@@ -1799,7 +1795,6 @@ def __call__(
17991795
timeout: Optional[float] = None,
18001796
metadata: Sequence[Tuple[str, str]] = (),
18011797
) -> iam_policy_pb2.TestIamPermissionsResponse:
1802-
18031798
r"""Call the test iam permissions method over HTTP.
18041799
18051800
Args:
@@ -1871,7 +1866,6 @@ def __call__(
18711866
timeout: Optional[float] = None,
18721867
metadata: Sequence[Tuple[str, str]] = (),
18731868
) -> None:
1874-
18751869
r"""Call the cancel operation method over HTTP.
18761870
18771871
Args:
@@ -1937,7 +1931,6 @@ def __call__(
19371931
timeout: Optional[float] = None,
19381932
metadata: Sequence[Tuple[str, str]] = (),
19391933
) -> None:
1940-
19411934
r"""Call the delete operation method over HTTP.
19421935
19431936
Args:
@@ -2000,7 +1993,6 @@ def __call__(
20001993
timeout: Optional[float] = None,
20011994
metadata: Sequence[Tuple[str, str]] = (),
20021995
) -> operations_pb2.Operation:
2003-
20041996
r"""Call the get operation method over HTTP.
20051997
20061998
Args:
@@ -2067,7 +2059,6 @@ def __call__(
20672059
timeout: Optional[float] = None,
20682060
metadata: Sequence[Tuple[str, str]] = (),
20692061
) -> operations_pb2.ListOperationsResponse:
2070-
20712062
r"""Call the list operations method over HTTP.
20722063
20732064
Args:

packages/google-cloud-gke-hub/noxfile.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,42 +22,43 @@
2222
import pathlib
2323
import re
2424
import shutil
25+
from typing import Dict, List
2526
import warnings
2627

2728
import nox
2829

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

3435
DEFAULT_PYTHON_VERSION = "3.8"
3536

36-
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"]
3738
UNIT_TEST_STANDARD_DEPENDENCIES = [
3839
"mock",
3940
"asyncmock",
4041
"pytest",
4142
"pytest-cov",
4243
"pytest-asyncio",
4344
]
44-
UNIT_TEST_EXTERNAL_DEPENDENCIES = []
45-
UNIT_TEST_LOCAL_DEPENDENCIES = []
46-
UNIT_TEST_DEPENDENCIES = []
47-
UNIT_TEST_EXTRAS = []
48-
UNIT_TEST_EXTRAS_BY_PYTHON = {}
49-
50-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
51-
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] = [
5253
"mock",
5354
"pytest",
5455
"google-cloud-testutils",
5556
]
56-
SYSTEM_TEST_EXTERNAL_DEPENDENCIES = []
57-
SYSTEM_TEST_LOCAL_DEPENDENCIES = []
58-
SYSTEM_TEST_DEPENDENCIES = []
59-
SYSTEM_TEST_EXTRAS = []
60-
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]] = {}
6162

6263
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
6364

@@ -70,6 +71,7 @@
7071
"lint_setup_py",
7172
"blacken",
7273
"docs",
74+
"format",
7375
]
7476

7577
# Error if a python version is missing
@@ -188,7 +190,6 @@ def unit(session):
188190

189191

190192
def install_systemtest_dependencies(session, *constraints):
191-
192193
# Use pre-release gRPC for system tests.
193194
# Exclude version 1.52.0rc1 which has a known issue.
194195
# See https://github.com/grpc/grpc/issues/32163

0 commit comments

Comments
 (0)
0