Skip to content

Commit

Permalink
style(black): format with black v24 (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jan 29, 2024
1 parent 87c6145 commit 6d2b898
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions reana_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions reana_server/rest/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 5 additions & 3 deletions reana_server/rest/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6d2b898

Please sign in to comment.