Skip to content

Commit

Permalink
Add --biocontainers option to shed_lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 2, 2023
1 parent 1aa3eb0 commit 0feec8d
Show file tree
Hide file tree
Showing 3 changed files with 11 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
9 changes: 9 additions & 0 deletions planemo/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,15 @@ def lint_xsd_option():
"--xsd/--no_xsd", is_flag=True, default=True, help=("Include tool XSD validation in linting process.")
)

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(
Expand Down

0 comments on commit 0feec8d

Please sign in to comment.