summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBrett Holman <brett.holman@canonical.com>2022-06-03 13:07:52 -0600
committerGitHub <noreply@github.com>2022-06-03 13:07:52 -0600
commit8dca3ad01827e141e13d8d1169e4d31a4d164728 (patch)
tree3977f57208138c50d861fd90db0cb7d23efd772d /tox.ini
parent2635d5b76601636a448bcd7f55cba1714b97d841 (diff)
downloadcloud-init-git-8dca3ad01827e141e13d8d1169e4d31a4d164728.tar.gz
tox: add link checker environment, fix links (#1480)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 13 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index a2df430c..9173db43 100644
--- a/tox.ini
+++ b/tox.ini
@@ -149,6 +149,19 @@ commands =
{envpython} -m sphinx {posargs:-W doc/rtd doc/rtd_html}
doc8 doc/rtd
+# linkcheck shows false positives and has noisy output.
+# Despite these limitations, it is better than a manual search of the docs.
+# suggested workflow is:
+#
+# tox -e linkcheck | grep broken # takes some time
+#
+# followed by manual verification of the links reported
+[testenv:linkcheck]
+deps =
+ -r{toxinidir}/doc-requirements.txt
+commands =
+ {envpython} -m sphinx {posargs:-b linkcheck doc/rtd doc/rtd_html}
+
[testenv:tip-flake8]
commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/ conftest.py setup.py}
deps = flake8