Skip to content

Commit 0a873a3

Browse files
authored
chore(generator): add remove unused import script (#17917)
Add the post processing script back until we bump the generator
1 parent 5b5ece5 commit 0a873a3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2023 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
description: Remove unused imports
15+
url: https://github.com/googleapis/gapic-generator-python/issues/1833
16+
replacements:
17+
- paths: [
18+
packages/google-cloud-gke-hub/tests/unit/gapic/gkehub_v1/test_gke_hub.py
19+
]
20+
before: |
21+
import google.cloud.gkehub.configmanagement.v1.configmanagement_pb2 as configmanagement_pb2 # type: ignore
22+
import google.cloud.gkehub.multiclusteringress.v1.multiclusteringress_pb2 as multiclusteringress_pb2 # type: ignore
23+
import google.cloud.gkehub.rbacrolebindingactuation.v1.rbacrolebindingactuation_pb2 as rbacrolebindingactuation_pb2 # type: ignore
24+
after: ""
25+
count: 1
26+
- paths: [
27+
packages/google-cloud-binary-authorization/tests/unit/gapic/binaryauthorization_v1/test_validation_helper_v1.py
28+
]
29+
before: |
30+
import grafeas.v1.attestation_pb2 as attestation_pb2 # type: ignore
31+
import grafeas.v1.common_pb2 as common_pb2 # type: ignore
32+
after: ""
33+
count: 1

0 commit comments

Comments
 (0)