Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use XSD to lint tools and repositories. #130

Merged
merged 2 commits into from
Apr 20, 2015
Merged

Use XSD to lint tools and repositories. #130

merged 2 commits into from
Apr 20, 2015

Commits on Apr 17, 2015

  1. Use XSD to lint tools and repositories.

     - Implement validation abstraction that will use either lxml (Python lib) or xmllint (command line app) dependending on what is available - with test cases.
     - Add a ``--xsd`` flag to the lint command that lints against the experimental XSD from https://github.com/JeanFred/Galaxy-XSD.
     - Implement ``repository_dependencies.xsd`` to describe Tool Shed ``repository_dependencies.xml`` files (fairly complete).
     - Implement ``tool_dependencies.xsd`` to describe Tool Shed ``tool_dependencies.xml`` files.
       - Validates attributes and elements down to the ``action`` elements and then largely gives up (sticking ``any`` and ``anyAttribute`` tags on that element).
       - Registers everything in tools-devteam as valid, and detects one invalid XML file in tools-iuc.
     - Implement new ``shed_lint`` command that:
       - Validates tool_dependencies.xml against schema
       - Validates repository_dependencies.xml against schema
       - Bare minimum to lint .shed.yml files.
       - Optionally also lints tools in repsitories with the ``--tools`` argument.
       - Can recursively lint many repositories at ont time ``-r``.
     - Refactoring of existing stuff to support this and make room for XSD validation of tool XML files and generalizing applying actions over many repositories and many tools.
    jmchilton committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    912df02 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2015

  1. Configuration menu
    Copy the full SHA
    5205284 View commit details
    Browse the repository at this point in the history