Mercurial > repos > bcclaywell > argo_navis
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d67268158946 |
|---|---|
| 1 import sys | |
| 2 | |
| 3 import click | |
| 4 | |
| 5 from planemo.cli import pass_context | |
| 6 from planemo import options | |
| 7 | |
| 8 from planemo.tool_lint import build_lint_args | |
| 9 from planemo.tool_lint import lint_tools_on_path | |
| 10 | |
| 11 | |
| 12 @click.command('lint') | |
| 13 @options.optional_tools_arg(multiple=True) | |
| 14 @options.report_level_option() | |
| 15 @options.fail_level_option() | |
| 16 @options.skip_option() | |
| 17 @options.lint_xsd_option() | |
| 18 @options.recursive_option() | |
| 19 @pass_context | |
| 20 def cli(ctx, paths, **kwds): | |
| 21 """Check specified tool(s) for common errors and adherence to best | |
| 22 practices. | |
| 23 """ | |
| 24 lint_args = build_lint_args(ctx, **kwds) | |
| 25 exit = lint_tools_on_path( | |
| 26 ctx, | |
| 27 paths, | |
| 28 lint_args, | |
| 29 recursive=kwds["recursive"] | |
| 30 ) | |
| 31 sys.exit(exit) |
