Skip to content

Commit 02dc830

Browse files
committedJan 29, 2024
style(black): format with black v24 (#702)
1 parent fa5b7c7 commit 02dc830

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎reana_client/api/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def create_workflow_from_json(
303303
reana_yaml["outputs"] = outputs
304304
if workflow_file:
305305
reana_yaml["workflow"]["file"] = workflow_file
306-
reana_yaml["workflow"][
307-
"specification"
308-
] = load_workflow_spec_from_reana_yaml(reana_yaml, workspace_path)
306+
reana_yaml["workflow"]["specification"] = (
307+
load_workflow_spec_from_reana_yaml(reana_yaml, workspace_path)
308+
)
309309
else:
310310
reana_yaml["workflow"]["specification"] = workflow_json
311311
# The function below loads the input parameters into the reana_yaml dictionary

‎reana_client/validation/environments.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,11 @@ def validate_environment(self):
434434
def _check_environment(environment):
435435
image = "{}{}".format(
436436
environment["image"],
437-
":{}".format(environment["imagetag"])
438-
if "imagetag" in environment
439-
else "",
437+
(
438+
":{}".format(environment["imagetag"])
439+
if "imagetag" in environment
440+
else ""
441+
),
440442
)
441443
k8s_uid = next(
442444
(

0 commit comments

Comments
 (0)