Skip to content

Commit ea78cc0

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

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

cloud-tasks/snippets/create_http_task.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def create_http_task(
106106
)
107107

108108
parser.add_argument(
109-
"--project", help="Project of the queue to add the task to.", required=True,
109+
"--project",
110+
help="Project of the queue to add the task to.",
111+
required=True,
110112
)
111113

112114
parser.add_argument(
@@ -116,7 +118,9 @@ def create_http_task(
116118
)
117119

118120
parser.add_argument(
119-
"--location", help="Location of the queue to add the task to.", required=True,
121+
"--location",
122+
help="Location of the queue to add the task to.",
123+
required=True,
120124
)
121125

122126
parser.add_argument(

cloud-tasks/snippets/create_http_task_with_token.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616

1717

1818
def create_http_task(
19-
project, queue, location, url, service_account_email, audience=None, payload=None,
19+
project,
20+
queue,
21+
location,
22+
url,
23+
service_account_email,
24+
audience=None,
25+
payload=None,
2026
):
2127
# [START cloud_tasks_create_http_task_with_token]
2228
"""Create a task for a given queue with an arbitrary payload."""

cloud-tasks/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):

0 commit comments

Comments
 (0)