Skip to content

Commit bc2494e

Browse files
gcf-owl-bot[bot]dandhlee
authored andcommitted
chore(python): use black==22.3.0 (#217)
Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
1 parent 84ea3ac commit bc2494e

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

container/snippets/create_cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def create_cluster(project_id: str, location: str, cluster_name: str) -> None:
9797

9898
if __name__ == "__main__":
9999
parser = argparse.ArgumentParser(
100-
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
100+
description=__doc__,
101+
formatter_class=argparse.RawDescriptionHelpFormatter,
101102
)
102103
parser.add_argument("project_id", help="Google Cloud project ID")
103104
parser.add_argument("zone", help="GKE Cluster zone")

container/snippets/delete_cluster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def delete_cluster(project_id: str, location: str, cluster_name: str) -> None:
9090

9191
if __name__ == "__main__":
9292
parser = argparse.ArgumentParser(
93-
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
93+
description=__doc__,
94+
formatter_class=argparse.RawDescriptionHelpFormatter,
9495
)
9596
parser.add_argument("project_id", help="Google Cloud project ID")
9697
parser.add_argument("zone", help="GKE Cluster zone")

container/snippets/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# WARNING - WARNING - WARNING - WARNING - WARNING
3030
# WARNING - WARNING - WARNING - WARNING - WARNING
3131

32-
BLACK_VERSION = "black==19.10b0"
32+
BLACK_VERSION = "black==22.3.0"
3333

3434
# Copy `noxfile_config.py` to your directory and modify it instead.
3535

@@ -253,7 +253,7 @@ def py(session: nox.sessions.Session) -> None:
253253

254254

255255
def _get_repo_root() -> Optional[str]:
256-
""" Returns the root folder of the project. """
256+
"""Returns the root folder of the project."""
257257
# Get root of this repository. Assume we don't have directories nested deeper than 10 items.
258258
p = Path(os.getcwd())
259259
for i in range(10):

container/snippets/quickstart.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def list_clusters(project_id: str, location: str) -> None:
4343
if __name__ == "__main__":
4444

4545
parser = argparse.ArgumentParser(
46-
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
46+
description=__doc__,
47+
formatter_class=argparse.RawDescriptionHelpFormatter,
4748
)
4849
parser.add_argument("project_id", help="Google Cloud project ID")
4950
parser.add_argument("zone", help="GKE Cluster zone")

0 commit comments

Comments
 (0)