From: guillaume.lambert Date: Fri, 13 Nov 2020 10:47:48 +0000 (+0100) Subject: add a documentation spellchecker tox profile X-Git-Tag: 3.0.0~90 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=3bd63ef68c19ed086362c9e6bc6aaa9105c2e2bd 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 --- 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