Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Commit 4e9447b

Browse files
chore: [autoapprove] Update black and isort to latest versions (#251)
* 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 * Update DEFAULT_PYTHON_VERSION in noxfile.py * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update default python version for mypy presubmit --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 57cd182 commit 4e9447b

8 files changed

Lines changed: 9 additions & 12 deletions

File tree

.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

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.7"
15+
python-version: "3.8"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.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

google/cloud/_testing/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def _tempdir_mgr():
7676

7777

7878
class _GAXBaseAPI(object):
79-
8079
_random_gax_error = False
8180

8281
def __init__(self, **kw):

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import nox
2020

2121

22-
BLACK_VERSION = "black==22.3.0"
22+
BLACK_VERSION = "black==23.7.0"
2323
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2424

25-
DEFAULT_PYTHON_VERSION = "3.7"
25+
DEFAULT_PYTHON_VERSION = "3.8"
2626
CURRENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
2727

2828

tests/unit/test__helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ def test_it(self):
672672

673673

674674
class Test__name_from_project_path(unittest.TestCase):
675-
676675
PROJECT = "PROJECT"
677676
THING_NAME = "THING_NAME"
678677
TEMPLATE = r"projects/(?P<project>\w+)/things/(?P<name>\w+)"

tests/unit/test_operation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def test_w_conflict(self):
103103

104104

105105
class TestOperation(unittest.TestCase):
106-
107106
OPERATION_NAME = "operations/projects/foo/instances/bar/operations/123"
108107

109108
@staticmethod

0 commit comments

Comments
 (0)