Skip to content

Commit

Permalink
style(black): format with black v24 (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jan 29, 2024
1 parent fa5b7c7 commit 02dc830
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions reana_client/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions reana_client/validation/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
(
Expand Down

0 comments on commit 02dc830

Please sign in to comment.