diff options
author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2021-04-26 04:10:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 22:10:20 -0400 |
commit | 8698127dbd17b47d1d07e35bee3725fecb69670b (patch) | |
tree | 53ea7c5d09df961dd258ba040627f9be03bc295a | |
parent | 6c1c45bc1ce8ab01d91324a46c584172664a0104 (diff) | |
download | pytest-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.py | 3 | ||||
-rw-r--r-- | tox.ini | 2 |
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 @@ -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 |