add a documentation spellchecker tox profile 25/93825/4
authorguillaume.lambert <guillaume.lambert@orange.com>
Fri, 13 Nov 2020 10:47:48 +0000 (11:47 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 27 Nov 2020 09:33:36 +0000 (09:33 +0000)
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 <guillaume.lambert@orange.com>
Change-Id: Ibaf9a74ab22f9aa60c656a3d5d5d955eecc68bbc

docs/spelling_wordlist.txt [new file with mode: 0644]
tox.ini

diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
new file mode 100644 (file)
index 0000000..d069da5
--- /dev/null
@@ -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 24165a59d25142ae21e89ecdf9fd73eb14bdf51e..f365a14dfe31b1048323baca03848ea1dc614924 100644 (file)
--- 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
 
 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
 [testenv:autopep8]
 basepython = python3
 deps = autopep8