From 02dc83009a6477c1ae045f4e1a6ea9f9e66640fb Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Mon, 29 Jan 2024 17:48:09 +0100 Subject: [PATCH] style(black): format with black v24 (#702) --- reana_client/api/client.py | 6 +++--- reana_client/validation/environments.py | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/reana_client/api/client.py b/reana_client/api/client.py index ba0d83bb..ecdfd5e4 100644 --- a/reana_client/api/client.py +++ b/reana_client/api/client.py @@ -303,9 +303,9 @@ def create_workflow_from_json( reana_yaml["outputs"] = outputs if workflow_file: reana_yaml["workflow"]["file"] = workflow_file - reana_yaml["workflow"][ - "specification" - ] = load_workflow_spec_from_reana_yaml(reana_yaml, workspace_path) + reana_yaml["workflow"]["specification"] = ( + load_workflow_spec_from_reana_yaml(reana_yaml, workspace_path) + ) else: reana_yaml["workflow"]["specification"] = workflow_json # The function below loads the input parameters into the reana_yaml dictionary diff --git a/reana_client/validation/environments.py b/reana_client/validation/environments.py index 878d9dda..0df707c8 100644 --- a/reana_client/validation/environments.py +++ b/reana_client/validation/environments.py @@ -434,9 +434,11 @@ def validate_environment(self): def _check_environment(environment): image = "{}{}".format( environment["image"], - ":{}".format(environment["imagetag"]) - if "imagetag" in environment - else "", + ( + ":{}".format(environment["imagetag"]) + if "imagetag" in environment + else "" + ), ) k8s_uid = next( (