From 8f790cafec17cf94dc7be6b3d2c28ad3f940ceeb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 00:02:23 +0000 Subject: [PATCH] chore(python): use black==22.3.0 (#243) Source-Link: https://github.com/googleapis/synthtool/commit/6fab84af09f2cf89a031fd8671d1def6b2931b11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe --- cloud-tasks/snippets/create_http_task.py | 8 ++++++-- cloud-tasks/snippets/create_http_task_with_token.py | 8 +++++++- cloud-tasks/snippets/noxfile.py | 4 ++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/cloud-tasks/snippets/create_http_task.py b/cloud-tasks/snippets/create_http_task.py index 40e735b3cb1f..7bf75d41d738 100644 --- a/cloud-tasks/snippets/create_http_task.py +++ b/cloud-tasks/snippets/create_http_task.py @@ -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( @@ -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( diff --git a/cloud-tasks/snippets/create_http_task_with_token.py b/cloud-tasks/snippets/create_http_task_with_token.py index 88888bcdbf00..0e157eb9fa8d 100644 --- a/cloud-tasks/snippets/create_http_task_with_token.py +++ b/cloud-tasks/snippets/create_http_task_with_token.py @@ -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.""" diff --git a/cloud-tasks/snippets/noxfile.py b/cloud-tasks/snippets/noxfile.py index 85f5836dba3a..25f87a215d4c 100644 --- a/cloud-tasks/snippets/noxfile.py +++ b/cloud-tasks/snippets/noxfile.py @@ -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. @@ -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):