Skip to content

Commit

Permalink
Minor tweaks to workflow author linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jul 4, 2024
1 parent ee7c30b commit 918d23b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions planemo/workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,13 @@ def check_json_for_untyped_params(j):
lint_context.warn("Workflow is not annotated.")

# creator
if not len(workflow_dict.get("creator", [])) > 0:
creators = workflow_dict.get("creator", [])
if not len(creators) > 0:
lint_context.warn("Workflow does not specify a creator.")
else:
creators = workflow_dict.get("creator")
if not isinstance(creators, list):
# Don't know if this can happen, if we implement schema validation on the Galaxy side
# this won't be needed.
creators = [creators]
for creator in creators:
if creator.get("class", "").lower() == "person" and "identifier" in creator:
Expand Down

0 comments on commit 918d23b

Please sign in to comment.