From 58f91201987120e7fdcda6b98fea45af58950380 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Fri, 16 Sep 2022 18:52:12 +0000 Subject: [PATCH] Fix code style issues with Black --- autobidsportal/app.py | 2 +- autobidsportal/cli.py | 4 +--- autobidsportal/routes.py | 4 +++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autobidsportal/app.py b/autobidsportal/app.py index dc0d0d3..f5c5ef5 100644 --- a/autobidsportal/app.py +++ b/autobidsportal/app.py @@ -23,6 +23,7 @@ ) from autobidsportal.errors import bad_request, not_found_error, internal_error from autobidsportal.email import mail + # This will register the CLI commands import autobidsportal.cli # pylint: disable=unused-import @@ -84,5 +85,4 @@ def make_shell_context(): "ExplicitPatient": ExplicitPatient, } - return app diff --git a/autobidsportal/cli.py b/autobidsportal/cli.py index 77a108c..9baf5b6 100644 --- a/autobidsportal/cli.py +++ b/autobidsportal/cli.py @@ -29,9 +29,7 @@ def run_update_heuristics(): The point of this wrcurrent_apper function is to expose the task to the CLI. """ - Task.launch_task( - "update_heuristics", "Update heuristics from CLI" - ) + Task.launch_task("update_heuristics", "Update heuristics from CLI") @portal_blueprint.cli.command() diff --git a/autobidsportal/routes.py b/autobidsportal/routes.py index 71c7b43..2d84e4d 100644 --- a/autobidsportal/routes.py +++ b/autobidsportal/routes.py @@ -61,7 +61,9 @@ from autobidsportal.email import send_email portal_blueprint = Blueprint( - "portal_blueprint", __name__, template_folder="templates", + "portal_blueprint", + __name__, + template_folder="templates", )