Skip to content

Commit

Permalink
utils: display warning messages about REANA spec validation
Browse files Browse the repository at this point in the history
Closes #660
  • Loading branch information
giuseppe-steduto committed Aug 9, 2023
1 parent 489c3ba commit 6d9b13b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion reana_client/validation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ def validate_reana_spec(
f"Verifying REANA specification file... {filepath}",
msg_type="info",
)
validate_reana_yaml(reana_yaml)
validation_warnings = validate_reana_yaml(reana_yaml)
for warning in validation_warnings:
display_message(
warning.message,
msg_type="warning",
indented=True,
)
display_message(
"Valid REANA specification file.",
msg_type="success",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"click>=7",
"pathspec==0.9.0",
"jsonpointer>=2.0",
"reana-commons[yadage,snakemake,cwl]>=0.9.3a2,<0.10.0",
"reana-commons[yadage,snakemake,cwl]>=0.9.3a4,<0.10.0",
"tablib>=0.12.1,<0.13",
"werkzeug>=0.14.1 ; python_version<'3.10'",
"werkzeug>=0.15.0 ; python_version>='3.10'",
Expand Down

0 comments on commit 6d9b13b

Please sign in to comment.