Skip to content

Commit

Permalink
check for empty shed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Dec 19, 2024
1 parent d48552c commit ef0216d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions planemo/shed_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def lint_shed_metadata(realized_repository, lint_ctx):
if key not in realized_repository.config:
found_all = False
lint_ctx.warn("Missing shed metadata field [%s] for repository" % key)
if realized_repository.config[key] is None:
lint_ctx.warn("shed metadata field [%s] was given, but is empty" % key)
if found_all:
lint_ctx.info("Found all shed metadata fields required for automated repository " "creation and/or updates.")

Expand Down

0 comments on commit ef0216d

Please sign in to comment.