Skip to content

Commit

Permalink
Merge pull request #1370 from mvdbeek/shed_lint_biocontainers
Browse files Browse the repository at this point in the history
Add ``--biocontainers`` option to shed_lint
  • Loading branch information
mvdbeek authored Jun 3, 2023
2 parents 1aa3eb0 + 2c1bbff commit b0bb34c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
9 changes: 1 addition & 8 deletions planemo/commands/cmd_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@
default=False,
help="Check tool requirements for availability in best practice Conda channels.",
)
@click.option(
"biocontainer",
"--biocontainer",
"--biocontainers",
is_flag=True,
default=False,
help="Check best practice BioContainer namespaces for a container definition applicable for this tool.",
)
@options.lint_biocontainers_option()
# @click.option(
# "--verify",
# is_flag=True,
Expand Down
1 change: 1 addition & 0 deletions planemo/commands/cmd_shed_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
default=False,
help="Check validity of URLs in XML files",
)
@options.lint_biocontainers_option()
# @click.option(
# "--verify",
# is_flag=True,
Expand Down
11 changes: 11 additions & 0 deletions planemo/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,17 @@ def lint_xsd_option():
)


def lint_biocontainers_option():
return planemo_option(
"biocontainer",
"--biocontainer",
"--biocontainers",
is_flag=True,
default=False,
help="Check best practice BioContainer namespaces for a container definition applicable for this tool.",
)


def report_level_option():
return planemo_option(
"--report_level",
Expand Down

0 comments on commit b0bb34c

Please sign in to comment.