Skip to content

Commit 1ef05d2

Browse files
committed
Enable XSD validation of tools by default.
Fixes #567.
1 parent d6da3a8 commit 1ef05d2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

planemo/options.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Click definitions for various shared options and arguments.
2-
"""
1+
"""Click definitions for various shared options and arguments."""
32

43
from __future__ import absolute_import
54

@@ -933,11 +932,10 @@ def shed_fail_fast_option():
933932

934933
def lint_xsd_option():
935934
return planemo_option(
936-
"--xsd",
935+
"--xsd/--no_xsd",
937936
is_flag=True,
938-
default=False,
939-
help=("Include experimental tool XSD validation in linting "
940-
"process (requires xmllint on PATH or lxml installed).")
937+
default=True,
938+
help=("Include tool XSD validation in linting process.")
941939
)
942940

943941

@@ -963,8 +961,8 @@ def skip_option():
963961
"-s",
964962
"--skip",
965963
default=None,
966-
help=("Comma-separated list of lint tests to skip (e.g send ."
967-
"--skip 'citations,xml_order' to skip linting of citations "
964+
help=("Comma-separated list of lint tests to skip (e.g. passing "
965+
"--skip 'citations,xml_order' would skip linting of citations "
968966
"and best-practice XML ordering.")
969967
)
970968

planemo/tool_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def build_lint_args(ctx, **kwds):
7272

7373
def _lint_extra_modules(**kwds):
7474
linters = []
75-
if kwds.get("xsd", False):
75+
if kwds.get("xsd", True):
7676
linters.append(planemo.linters.xsd)
7777

7878
if kwds.get("doi", False):

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ docutils
77
jinja2
88
glob2
99
virtualenv
10+
lxml
1011
gxformat2>=0.1.1
1112
ephemeris>=0.2.0
1213
galaxy-lib>=16.10.0

0 commit comments

Comments
 (0)