summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2021-04-26 04:10:20 +0200
committerGitHub <noreply@github.com>2021-04-25 22:10:20 -0400
commit8698127dbd17b47d1d07e35bee3725fecb69670b (patch)
tree53ea7c5d09df961dd258ba040627f9be03bc295a
parent6c1c45bc1ce8ab01d91324a46c584172664a0104 (diff)
downloadpytest-runner-8698127dbd17b47d1d07e35bee3725fecb69670b.tar.gz
Make sphinx fail on any warnings (#36)
This change adds `nitpicky=True` (which is an equivalent of `-n`) to make Sphinx emit warnings for any references to non-existing targets. Then, it adds `-W` to make it fail whenever a single warning is seen. Finally, `--keep-going` allows Sphinx to print out all the warnings before exiting instead of showing just one and bailing. Resolves #29 Refs: * https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-n * https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-W * https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-keep-going
-rw-r--r--docs/conf.py3
-rw-r--r--tox.ini2
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 433d185..f65d1fa 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -24,3 +24,6 @@ link_files = {
],
)
}
+
+# Be strict about any broken references:
+nitpicky = True
diff --git a/tox.ini b/tox.ini
index a9a50b0..6984890 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,7 @@ extras =
testing
changedir = docs
commands =
- python -m sphinx . {toxinidir}/build/html
+ python -m sphinx -W --keep-going . {toxinidir}/build/html
[testenv:release]
skip_install = True