Skip to content

Commit 6f99498

Browse files
committed
Ignore toil cwltool warning in lint_sphinx_output.py
1 parent db20824 commit 6f99498

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/lint_sphinx_output.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def warning_line(line):
11-
if "WARNING" not in line:
11+
if "WARNING" not in line or "Toil" in line:
1212
return False
1313
if "docs/tests" in line: # Doesn't actually show up in docs so don't lint.
1414
return False
@@ -23,9 +23,7 @@ def main(argv=None):
2323
argv = sys.argv
2424
sphinx_output = sys.stdin.read()
2525
warning_lines = [_ for _ in sphinx_output.splitlines() if warning_line(_)]
26-
for line in warning_lines:
27-
print(line)
28-
sys.exit(1 if warning_lines else 0)
26+
sys.exit("\n".join(warning_lines) if warning_lines else 0)
2927

3028

3129
if __name__ == "__main__":

0 commit comments

Comments
 (0)