Mercurial > repos > bcclaywell > argo_navis
diff venv/lib/python2.7/site-packages/planemo/commands/cmd_lint.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/venv/lib/python2.7/site-packages/planemo/commands/cmd_lint.py Mon Oct 12 17:43:33 2015 -0400 @@ -0,0 +1,31 @@ +import sys + +import click + +from planemo.cli import pass_context +from planemo import options + +from planemo.tool_lint import build_lint_args +from planemo.tool_lint import lint_tools_on_path + + +@click.command('lint') +@options.optional_tools_arg(multiple=True) +@options.report_level_option() +@options.fail_level_option() +@options.skip_option() +@options.lint_xsd_option() +@options.recursive_option() +@pass_context +def cli(ctx, paths, **kwds): + """Check specified tool(s) for common errors and adherence to best + practices. + """ + lint_args = build_lint_args(ctx, **kwds) + exit = lint_tools_on_path( + ctx, + paths, + lint_args, + recursive=kwds["recursive"] + ) + sys.exit(exit)