Permalink
Please sign in to comment.
Browse files
Add -r/--recursive options to planemo lint.
Shed lint with --tools will always work this way since I think the Tool Shed is pretty aggressive about finding tools. Mentioning #139 - though this doesn't implement the multiple paths on the command-line API change.
- Loading branch information...
Showing
with
95 additions
and 24 deletions.
- +7 −1 planemo/commands/cmd_lint.py
- +7 −1 planemo/options.py
- +2 −1 planemo/shed_lint.py
- +10 −12 planemo/tool_lint.py
- +18 −0 planemo/tools.py
- +31 −5 planemo_ext/galaxy/tools/loader_directory.py
- +2 −1 tests/data/repos/multi_repos_nested/cat1/cat1.xml
- +2 −1 tests/data/repos/multi_repos_nested/cat2/cat2.xml
- +16 −2 tests/test_lint.py
@@ -0,0 +1,18 @@ | |||
import sys | |||
import traceback | |||
from planemo.io import error | |||
|
|||
from galaxy.tools import loader_directory | |||
|
|||
|
|||
def load_tool_elements_from_path(path, recursive): | |||
return loader_directory.load_tool_elements_from_path( | |||
path, | |||
load_exception_handler, | |||
recursive, | |||
) | |||
|
|||
|
|||
def load_exception_handler(path, exc_info): | |||
error("Error loading tool with path %s" % path) | |||
traceback.print_exception(*exc_info, limit=1, file=sys.stderr) |
0 comments on commit
01f2af9