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

Commit 971e2f7

Browse files
Merge branch 'main' into streaming-retry-showcase-tests
2 parents 90a8c43 + 629cf19 commit 971e2f7

801 files changed

Lines changed: 137524 additions & 28445 deletions

File tree

Some content is hidden

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

.bazeliskrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# See https://github.com/bazelbuild/bazelisk
2-
USE_BAZEL_VERSION=6.3.0
2+
USE_BAZEL_VERSION=6.5.0

.flake8

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,44 @@
11
[flake8]
22
ignore =
3+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E123, E124
34
# Closing bracket mismatches opening bracket's line.
45
# This works poorly with type annotations in method declarations.
56
E123, E124
67
# Line over-indented for visual indent.
78
# This works poorly with type annotations in method declarations.
9+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E126, E128, E131
810
E126, E128, E131
911
# Line break after binary operator.
1012
# This catches line breaks after "and" / "or" as a means of breaking up
1113
# long if statements, which PEP 8 explicitly encourages.
14+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): W504
1215
W504
16+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E203
17+
E203
18+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E501
19+
E501
20+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E712
21+
E712
22+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E711
23+
E711
24+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E722
25+
E722
26+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): E741
27+
E741
28+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): F401
29+
F401
30+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): F541
31+
F541
32+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): F841
33+
F841
34+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): F811
35+
F811
36+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): W503
37+
W503
38+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333): W291
39+
W291
40+
exclude =
41+
# Exclude golden files
42+
tests/integration
43+
# Exclude generated protobuf code
44+
*_pb2.py

.githooks/pre-commit

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ if [ -x /usr/lib/git-core/google_hook ]; then
9393
/usr/lib/git-core/google_hook pre-commit "$@"
9494
fi
9595

96-
# Check Python format.
97-
if [ $NUM_PYTHON_FILES_CHANGED -gt 0 ]
98-
then
99-
echo_status "Running Python linter..."
100-
find gapic tests -name "*.py" -not -path 'tests/integration/goldens/*' | xargs autopep8 --diff --exit-code
101-
FORMAT_STATUS=$?
102-
if [ $FORMAT_STATUS != 0 ]
103-
then
104-
echo_error "Linting failed." "Please try again after running autopep8 on the gapic/ and tests/ directories."
105-
exit 1
106-
fi
107-
fi
108-
10996
# Check unit tests.
11097
if [ $NUM_PYTHON_FILES_CHANGED -gt 0 ] || [ $NUM_UNIT_GOLDEN_FILES_CHANGED -gt 0 ]
11198
then

.github/.OwlBot.lock.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -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:5a4c19d17e597b92d786e569be101e636c9c2817731f80a5adec56b2aa8fe070
17-
# created: 2024-04-12T11:35:58.922854369Z
16+
digest: sha256:5581906b957284864632cde4e9c51d1cc66b0094990b27e689132fe5cd036046
17+
# created: 2025-03-05

.github/auto-label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2024 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

.github/release-trigger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
enabled: true
2+
multiScmName: gapic-generator-python

.github/sync-repo-settings.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ branchProtectionRules:
1212
- 'mypy (3.10)'
1313
- 'mypy (3.11)'
1414
- 'mypy (3.12)'
15+
- 'mypy (3.13)'
1516
- 'showcase (3.7, showcase)'
16-
- 'showcase (3.12, showcase)'
17-
- 'showcase (3.7, showcase_alternative_templates)'
18-
- 'showcase (3.12, showcase_alternative_templates)'
17+
- 'showcase (3.13, showcase)'
18+
- 'showcase (3.7, showcase_w_rest_async)'
19+
- 'showcase (3.13, showcase_w_rest_async)'
1920
# TODO(dovs): reenable these when the mtls tests have been debugged and fixed
2021
# See #1218 for details
2122
# - 'showcase-mtls (showcase_mtls)'
22-
# - 'showcase-mtls (showcase_mtls_alternative_templates)'
2323
- 'showcase-mypy'
2424
- 'showcase-mypy (_alternative_templates)'
2525
- 'showcase-unit (3.7)'
@@ -28,48 +28,63 @@ branchProtectionRules:
2828
- 'showcase-unit (3.10)'
2929
- 'showcase-unit (3.11)'
3030
- 'showcase-unit (3.12)'
31+
- 'showcase-unit (3.13)'
3132
- 'showcase-unit (3.7, _alternative_templates)'
3233
- 'showcase-unit (3.8, _alternative_templates)'
3334
- 'showcase-unit (3.9, _alternative_templates)'
3435
- 'showcase-unit (3.10, _alternative_templates)'
3536
- 'showcase-unit (3.11, _alternative_templates)'
3637
- 'showcase-unit (3.12, _alternative_templates)'
38+
- 'showcase-unit (3.13, _alternative_templates)'
3739
- 'showcase-unit (3.7, _alternative_templates_mixins)'
3840
- 'showcase-unit (3.8, _alternative_templates_mixins)'
3941
- 'showcase-unit (3.9, _alternative_templates_mixins)'
4042
- 'showcase-unit (3.10, _alternative_templates_mixins)'
4143
- 'showcase-unit (3.11, _alternative_templates_mixins)'
4244
- 'showcase-unit (3.12, _alternative_templates_mixins)'
45+
- 'showcase-unit (3.13, _alternative_templates_mixins)'
4346
- 'showcase-unit (3.7, _mixins)'
4447
- 'showcase-unit (3.8, _mixins)'
4548
- 'showcase-unit (3.9, _mixins)'
4649
- 'showcase-unit (3.10, _mixins)'
4750
- 'showcase-unit (3.11, _mixins)'
4851
- 'showcase-unit (3.12, _mixins)'
52+
- 'showcase-unit (3.13, _mixins)'
53+
- 'showcase-unit (3.7, _w_rest_async)'
54+
- 'showcase-unit (3.8, _w_rest_async)'
55+
- 'showcase-unit (3.9, _w_rest_async)'
56+
- 'showcase-unit (3.10, _w_rest_async)'
57+
- 'showcase-unit (3.11, _w_rest_async)'
58+
- 'showcase-unit (3.12, _w_rest_async)'
59+
- 'showcase-unit (3.13, _w_rest_async)'
4960
- 'showcase-unit-add-iam-methods'
5061
- 'integration'
5162
- 'goldens-lint'
5263
- 'goldens-prerelease'
53-
- 'style-check'
64+
- 'goldens-unit'
65+
- 'lint'
5466
- 'snippetgen'
5567
- 'unit (3.7)'
5668
- 'unit (3.8)'
5769
- 'unit (3.9)'
5870
- 'unit (3.10)'
5971
- 'unit (3.11)'
6072
- 'unit (3.12)'
73+
- 'unit (3.13)'
6174
- 'fragment (3.7)'
6275
- 'fragment (3.8)'
6376
- 'fragment (3.9)'
6477
- 'fragment (3.10)'
6578
- 'fragment (3.11)'
6679
- 'fragment (3.12)'
80+
- 'fragment (3.13)'
6781
- 'fragment (3.7, _alternative_templates)'
6882
- 'fragment (3.8, _alternative_templates)'
6983
- 'fragment (3.9, _alternative_templates)'
7084
- 'fragment (3.10, _alternative_templates)'
7185
- 'fragment (3.11, _alternative_templates)'
7286
- 'fragment (3.12, _alternative_templates)'
87+
- 'fragment (3.13, _alternative_templates)'
7388
- 'OwlBot Post Processor'
7489
requiredApprovingReviewCount: 1
7590
requiresCodeOwnerReviews: true

0 commit comments

Comments
 (0)