From 3bd63ef68c19ed086362c9e6bc6aaa9105c2e2bd Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Fri, 13 Nov 2020 11:47:48 +0100 Subject: [PATCH] add a documentation spellchecker tox profile inspired from openStack https://github.com/openstack/qa-specs/blob/master/tox.ini https://doughellmann.com/blog/tag/sphinxcontrib-spelling/ https://pypi.org/project/sphinxcontrib-spelling/ JIRA: TRNSPRTPCE-349 Signed-off-by: guillaume.lambert Change-Id: Ibaf9a74ab22f9aa60c656a3d5d5d955eecc68bbc --- docs/spelling_wordlist.txt | 20 ++++++++++++++++++++ tox.ini | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 docs/spelling_wordlist.txt diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt new file mode 100644 index 000000000..d069da5fe --- /dev/null +++ b/docs/spelling_wordlist.txt @@ -0,0 +1,20 @@ +ACL +datastore +Gerrit +Git +Jenkins +Karaf +muxponder +ODU +OpenDaylight +OpenFlow +OpenROADM +orchestrator +OTN +OTU +ovs +ovsdb +releng +Renderer +TransportPCE +Xponder diff --git a/tox.ini b/tox.ini index 24165a59d..f365a14df 100644 --- a/tox.ini +++ b/tox.ini @@ -76,6 +76,14 @@ basepython = python3 deps = -rdocs/requirements.txt commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/linkcheck +[testenv:spelling] +basepython = python3 +deps = + -rdocs/requirements.txt + sphinxcontrib-spelling + PyEnchant +commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/spelling + [testenv:autopep8] basepython = python3 deps = autopep8 -- 2.36.6