From 6d2b898b2322e6677739fdb1c3bd3916a3cf0887 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Mon, 29 Jan 2024 17:48:54 +0100 Subject: [PATCH] style(black): format with black v24 (#670) --- reana_server/config.py | 6 +++--- reana_server/rest/launch.py | 6 +++--- reana_server/rest/users.py | 8 +++++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/reana_server/config.py b/reana_server/config.py index 9aaa08a4..472361f8 100644 --- a/reana_server/config.py +++ b/reana_server/config.py @@ -392,9 +392,9 @@ def _get_rate_limit(env_variable: str, default: str) -> str: if _reana_interactive_session_max_inactivity_period_env == "forever": REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD: Optional[str] = None else: - REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD: Optional[ - str - ] = _reana_interactive_session_max_inactivity_period_env + REANA_INTERACTIVE_SESSION_MAX_INACTIVITY_PERIOD: Optional[str] = ( + _reana_interactive_session_max_inactivity_period_env + ) """Maximum allowed period (in days) for interactive session inactivity before automatic closure.""" # Kubernetes jobs timeout diff --git a/reana_server/rest/launch.py b/reana_server/rest/launch.py index 7eff17b8..4384a1d8 100644 --- a/reana_server/rest/launch.py +++ b/reana_server/rest/launch.py @@ -238,9 +238,9 @@ def launch(user, url, name="", parameters="{}", specification=None): "message": "The workflow has been successfully submitted.", } if validation_warnings: - response_data[ - "message" - ] = "The workflow has been successfully submitted, but some warnings were issued." + response_data["message"] = ( + "The workflow has been successfully submitted, but some warnings were issued." + ) response_data["validation_warnings"] = validation_warnings return LaunchSchema().dump(response_data) except HTTPError as e: diff --git a/reana_server/rest/users.py b/reana_server/rest/users.py index e097ba02..69290650 100644 --- a/reana_server/rest/users.py +++ b/reana_server/rest/users.py @@ -199,9 +199,11 @@ def get_you(user): "reana_token": { "value": user.access_token, "status": user.access_token_status, - "requested_at": user.latest_access_token.created - if user.latest_access_token - else None, + "requested_at": ( + user.latest_access_token.created + if user.latest_access_token + else None + ), }, "full_name": user.full_name, "username": user.username,