Skip to content

Commit dfc6b8b

Browse files
chore: use new black and 3.8 for tests (#40)
* chore(python): fix line breaks in template and use newer black version * chore(python): fix line breaks in template * fix: also update black version Source-Author: Bu Sun Kim <[email protected]> Source-Date: Tue Jun 23 02:33:35 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: cf2eff09d0f5319a4dc5cdce2b6356d85af4a798 Source-Link: googleapis/synthtool@cf2eff0
1 parent e84b181 commit dfc6b8b

35 files changed

+191
-125
lines changed

packages/google-cloud-videointelligence/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
intersphinx_mapping = {
338338
"python": ("http://python.readthedocs.org/en/latest/", None),
339339
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
340-
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None),
340+
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
341341
"grpc": ("https://grpc.io/grpc/python/", None),
342342
}
343343

packages/google-cloud-videointelligence/google/cloud/videointelligence.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@
2222
from google.cloud.videointelligence_v1 import types
2323

2424

25-
__all__ = ("enums", "types", "VideoIntelligenceServiceClient")
25+
__all__ = (
26+
"enums",
27+
"types",
28+
"VideoIntelligenceServiceClient",
29+
)

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ class VideoIntelligenceServiceClient(
4040
enums = enums
4141

4242

43-
__all__ = ("enums", "types", "VideoIntelligenceServiceClient")
43+
__all__ = (
44+
"enums",
45+
"types",
46+
"VideoIntelligenceServiceClient",
47+
)

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/transports/video_intelligence_service_grpc_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
# exception (channels come with credentials baked in already).
5858
if channel is not None and credentials is not None:
5959
raise ValueError(
60-
"The `channel` and `credentials` arguments are mutually " "exclusive."
60+
"The `channel` and `credentials` arguments are mutually " "exclusive.",
6161
)
6262

6363
# Create the channel.
@@ -78,7 +78,7 @@ def __init__(
7878
self._stubs = {
7979
"video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub(
8080
channel
81-
)
81+
),
8282
}
8383

8484
# Because this API includes a method that returns a

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/video_intelligence_service_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343

4444
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
45-
"google-cloud-videointelligence"
45+
"google-cloud-videointelligence",
4646
).version
4747

4848

@@ -163,12 +163,12 @@ def __init__(
163163
self.transport = transport
164164
else:
165165
self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport(
166-
address=api_endpoint, channel=channel, credentials=credentials
166+
address=api_endpoint, channel=channel, credentials=credentials,
167167
)
168168

169169
if client_info is None:
170170
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
171-
gapic_version=_GAPIC_LIBRARY_VERSION
171+
gapic_version=_GAPIC_LIBRARY_VERSION,
172172
)
173173
else:
174174
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -179,7 +179,7 @@ def __init__(
179179
# (Ordinarily, these are the defaults specified in the `*_config.py`
180180
# file next to this one.)
181181
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
182-
client_config["interfaces"][self._INTERFACE_NAME]
182+
client_config["interfaces"][self._INTERFACE_NAME],
183183
)
184184

185185
# Save a dictionary of cached API call functions.

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server):
4747
servicer.AnnotateVideo,
4848
request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
4949
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
50-
)
50+
),
5151
}
5252
generic_handler = grpc.method_handlers_generic_handler(
5353
"google.cloud.videointelligence.v1.VideoIntelligenceService",

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/types.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@
2828
from google.rpc import status_pb2
2929

3030

31-
_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2]
32-
33-
_local_modules = [video_intelligence_pb2]
31+
_shared_modules = [
32+
operations_pb2,
33+
any_pb2,
34+
duration_pb2,
35+
timestamp_pb2,
36+
status_pb2,
37+
]
38+
39+
_local_modules = [
40+
video_intelligence_pb2,
41+
]
3442

3543
names = []
3644

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ class VideoIntelligenceServiceClient(
4242
enums = enums
4343

4444

45-
__all__ = ("enums", "types", "VideoIntelligenceServiceClient")
45+
__all__ = (
46+
"enums",
47+
"types",
48+
"VideoIntelligenceServiceClient",
49+
)

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/transports/video_intelligence_service_grpc_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
# exception (channels come with credentials baked in already).
5858
if channel is not None and credentials is not None:
5959
raise ValueError(
60-
"The `channel` and `credentials` arguments are mutually " "exclusive."
60+
"The `channel` and `credentials` arguments are mutually " "exclusive.",
6161
)
6262

6363
# Create the channel.
@@ -78,7 +78,7 @@ def __init__(
7878
self._stubs = {
7979
"video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub(
8080
channel
81-
)
81+
),
8282
}
8383

8484
# Because this API includes a method that returns a

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/video_intelligence_service_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343

4444
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution(
45-
"google-cloud-videointelligence"
45+
"google-cloud-videointelligence",
4646
).version
4747

4848

@@ -163,12 +163,12 @@ def __init__(
163163
self.transport = transport
164164
else:
165165
self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport(
166-
address=api_endpoint, channel=channel, credentials=credentials
166+
address=api_endpoint, channel=channel, credentials=credentials,
167167
)
168168

169169
if client_info is None:
170170
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
171-
gapic_version=_GAPIC_LIBRARY_VERSION
171+
gapic_version=_GAPIC_LIBRARY_VERSION,
172172
)
173173
else:
174174
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -179,7 +179,7 @@ def __init__(
179179
# (Ordinarily, these are the defaults specified in the `*_config.py`
180180
# file next to this one.)
181181
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
182-
client_config["interfaces"][self._INTERFACE_NAME]
182+
client_config["interfaces"][self._INTERFACE_NAME],
183183
)
184184

185185
# Save a dictionary of cached API call functions.

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server):
4747
servicer.AnnotateVideo,
4848
request_deserializer=google_dot_cloud_dot_videointelligence__v1beta2_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
4949
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
50-
)
50+
),
5151
}
5252
generic_handler = grpc.method_handlers_generic_handler(
5353
"google.cloud.videointelligence.v1beta2.VideoIntelligenceService",

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/types.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@
2828
from google.rpc import status_pb2
2929

3030

31-
_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2]
32-
33-
_local_modules = [video_intelligence_pb2]
31+
_shared_modules = [
32+
operations_pb2,
33+
any_pb2,
34+
duration_pb2,
35+
timestamp_pb2,
36+
status_pb2,
37+
]
38+
39+
_local_modules = [
40+
video_intelligence_pb2,
41+
]
3442

3543
names = []
3644

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ class VideoIntelligenceServiceClient(
4242
enums = enums
4343

4444

45-
__all__ = ("enums", "types", "VideoIntelligenceServiceClient")
45+
__all__ = (
46+
"enums",
47+
"types",
48+
"VideoIntelligenceServiceClient",
49+
)

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/transports/video_intelligence_service_grpc_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
# exception (channels come with credentials baked in already).
5858
if channel is not None and credentials is not None:
5959
raise ValueError(
60-
"The `channel` and `credentials` arguments are mutually " "exclusive."
60+
"The `channel` and `credentials` arguments are mutually " "exclusive.",
6161
)
6262

6363
# Create the channel.
@@ -78,7 +78,7 @@ def __init__(
7878
self._stubs = {
7979
"video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub(
8080
channel
81-
)
81+
),
8282
}
8383

8484
# Because this API includes a method that returns a

0 commit comments

Comments
 (0)