Skip to content

Commit

Permalink
Ignore toil cwltool warning in lint_sphinx_output.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 7, 2024
1 parent db20824 commit 6f99498
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/lint_sphinx_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


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


if __name__ == "__main__":
Expand Down

0 comments on commit 6f99498

Please sign in to comment.