Skip to content

Commit

Permalink
fix type of lint_args
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Jul 1, 2024
1 parent 8639d1d commit 5c19e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion planemo/commands/cmd_workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def cli(ctx, paths, **kwds):
"""Check workflows for syntax errors and best practices."""
# Unlike tools, lets just make this recursive by default.
lint_args = build_lint_args(ctx, **kwds)
lint_args["iwc_grade"] = kwds.get("iwc", False)
lint_args["iwc_grade"] = str(kwds.get("iwc", False))
exit_code = lint_workflow_artifacts_on_paths(
ctx,
paths,
Expand Down
2 changes: 1 addition & 1 deletion planemo/workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def lint_workflow_artifacts_on_paths(
) -> int:
report_level = lint_args["level"]
lint_context = WorkflowLintContext(report_level, skip_types=lint_args["skip_types"])
lint_context.iwc_grade = lint_args["iwc_grade"]
lint_context.iwc_grade = lint_args["iwc_grade"] == "True"
for path in paths:
_lint_workflow_artifacts_on_path(lint_context, path, lint_args)

Expand Down

0 comments on commit 5c19e56

Please sign in to comment.