Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit f892546

Browse files
chore(python): use black==22.3.0 (#74)
Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
1 parent dc612e2 commit f892546

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:2d13c2172a5d6129c861edaa48b60ead15aeaf58aa75e02d870c4cbdfa63aaba
16+
digest: sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@
361361
intersphinx_mapping = {
362362
"python": ("https://python.readthedocs.org/en/latest/", None),
363363
"google-auth": ("https://googleapis.dev/python/google-auth/latest/", None),
364-
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
364+
"google.api_core": (
365+
"https://googleapis.dev/python/google-api-core/latest/",
366+
None,
367+
),
365368
"grpc": ("https://grpc.github.io/grpc/python/", None),
366369
"proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None),
367370
"protobuf": ("https://googleapis.dev/python/protobuf/latest/", None),

google/cloud/iam_logging_v1/types/audit_data.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
from google.iam.v1 import policy_pb2 # type: ignore
1919

2020

21-
__protobuf__ = proto.module(package="google.iam.v1.logging", manifest={"AuditData",},)
21+
__protobuf__ = proto.module(
22+
package="google.iam.v1.logging",
23+
manifest={
24+
"AuditData",
25+
},
26+
)
2227

2328

2429
class AuditData(proto.Message):
@@ -32,7 +37,11 @@ class AuditData(proto.Message):
3237
the newly set policy.
3338
"""
3439

35-
policy_delta = proto.Field(proto.MESSAGE, number=2, message=policy_pb2.PolicyDelta,)
40+
policy_delta = proto.Field(
41+
proto.MESSAGE,
42+
number=2,
43+
message=policy_pb2.PolicyDelta,
44+
)
3645

3746

3847
__all__ = tuple(sorted(__protobuf__.manifest))

noxfile.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import nox
2525

2626

27-
BLACK_VERSION = "black==19.10b0"
27+
BLACK_VERSION = "black==22.3.0"
2828
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2929

3030
DEFAULT_PYTHON_VERSION = "3.8"
@@ -57,7 +57,9 @@ def lint(session):
5757
"""
5858
session.install("flake8", BLACK_VERSION)
5959
session.run(
60-
"black", "--check", *BLACK_PATHS,
60+
"black",
61+
"--check",
62+
*BLACK_PATHS,
6163
)
6264
session.run("flake8", "google", "tests")
6365

@@ -67,7 +69,8 @@ def blacken(session):
6769
"""Run black. Format code to uniform standard."""
6870
session.install(BLACK_VERSION)
6971
session.run(
70-
"black", *BLACK_PATHS,
72+
"black",
73+
*BLACK_PATHS,
7174
)
7275

7376

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy