Skip to content

Commit

Permalink
chore(python): use black==22.3.0 (#243)
Browse files Browse the repository at this point in the history
Source-Link: googleapis/synthtool@6fab84a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
  • Loading branch information
gcf-owl-bot[bot] authored Mar 29, 2022
1 parent 403c5b3 commit 8f790ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions cloud-tasks/snippets/create_http_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def create_http_task(
)

parser.add_argument(
"--project", help="Project of the queue to add the task to.", required=True,
"--project",
help="Project of the queue to add the task to.",
required=True,
)

parser.add_argument(
Expand All @@ -116,7 +118,9 @@ def create_http_task(
)

parser.add_argument(
"--location", help="Location of the queue to add the task to.", required=True,
"--location",
help="Location of the queue to add the task to.",
required=True,
)

parser.add_argument(
Expand Down
8 changes: 7 additions & 1 deletion cloud-tasks/snippets/create_http_task_with_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@


def create_http_task(
project, queue, location, url, service_account_email, audience=None, payload=None,
project,
queue,
location,
url,
service_account_email,
audience=None,
payload=None,
):
# [START cloud_tasks_create_http_task_with_token]
"""Create a task for a given queue with an arbitrary payload."""
Expand Down
4 changes: 2 additions & 2 deletions cloud-tasks/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# WARNING - WARNING - WARNING - WARNING - WARNING
# WARNING - WARNING - WARNING - WARNING - WARNING

BLACK_VERSION = "black==19.10b0"
BLACK_VERSION = "black==22.3.0"

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

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


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

0 comments on commit 8f790ca

Please sign in to comment.