Skip to content

Commit

Permalink
fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jun 22, 2023
1 parent 0e059f8 commit 6bd654c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/galaxy/tool_util/linters/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ def lint_inputs(tool_xml, lint_ctx):
node=validator,
)
if vtype in ["dataset_metadata_equal"]:
if not ("value" in validator.attrib or "value_json" in validator.attrib) or "metadata_name" not in validator.attrib:
if (
not ("value" in validator.attrib or "value_json" in validator.attrib)
or "metadata_name" not in validator.attrib
):
lint_ctx.error(
f"Parameter [{param_name}]: '{vtype}' validators need to define the 'value'/'value_json' and 'metadata_name' attributes",
node=validator,
Expand Down

0 comments on commit 6bd654c

Please sign in to comment.