Enforce Spellchecker in CI 37/96437/9
authorGuillaume Lambert <guillaume.lambert@orange.com>
Sun, 6 Jun 2021 16:33:25 +0000 (18:33 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Sun, 6 Jun 2021 19:34:18 +0000 (21:34 +0200)
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I7b4d8e69045b730fb9c59decae29922268564fa3

docs/conf.py
docs/spelling_wordlist.txt
tox.ini

index 600a3421c4af2835498d422b026585720b502a2c..4e1e1e63b24ec544105811b7fc8af87cd2f719f9 100755 (executable)
@@ -78,6 +78,8 @@ linkcheck_timeout = 300
 nitpicky = True
 release = version
 
+spelling_warning=True
+
 html_context = {
     'version_status': 'supported',
 }
index 8fe3f9c51cef98d04992f327c50c3d71d97beb4d..53c0680f5c45174cf7221ea923d894a75766fc5e 100644 (file)
@@ -1,34 +1,38 @@
+aaa
+abelur
 ACL
+aggregator
+akka
 Akka
 Aluminium
-Asciidoc
-Async
-Autorelease
+analytics
 artefacts
+Asciidoc
 async
+Async
 augmentable
 autorelease
-aaa
-abelur
-akka
-analytics
-BigInteger
+Autorelease
 bgpcep
-bugfixes
+BigInteger
 boolean
+breakpoint
+bugfixes
+Bulleted
 bytecode
-Checkstyle
 catalogue
+checkbox
+Checkstyle
 closeable
 codebase
 codec
 codecs
+committer
+Committer
 committers
 config
 configurator
 Daexim
-Disruptor
-DOM
 dataplane
 datastore
 datastores
@@ -37,101 +41,120 @@ dependant
 deserialization
 deserialize
 dev
+Disruptor
+DOM
 downloader
-EPL
 eg
+EPL
 executer
 extendibility
+functionalities
 Gerrit
+getters
 Git
-Guice
+google
 GPG
-getters
+Guice
 Hamcrest
 hardcoded
 helpdesk
 hostname
+IDE
 ietf
 impactful
 infrautils
 instantiation
+interoperability
 intra
-JIT
-JVM
+IP
+jamoluhrsen
+jarfile
 Javadoc
 Jenkins
 Jira
-JUnit
-jamoluhrsen
-jarfile
+JIT
 judgement
-Karaf
+JUnit
+JVM
 karaf
+Karaf
 keyed
-Logback
 lftools
 linter
+Logback
+logins
 Magnesium
-Mockito
-Netty
 mdsal
+metadata
 microservice
 microservices
 millis
 mitigation
 mitigations
+Mockito
+multi
+Multi
 muxponders
 namespace
 namespaces
-netvirt
 netconf
+Netty
+netvirt
 nitty
+occurance
+odlparent
 OpenDaylight
 OpenFlow
 OpenStack
-occurance
-odlparent
+optimizations
 overline
 ovs
 ovsdb
-PCE
+parameterized
 Pax
+PCE
 pre
 QoS
-Resolvers
-Runtime
-reStructuredText
 reachability
 rebase
 rebases
 rebasing
 reconfigurable
 reconnection
+refactor
+refactoring
 referenceable
 reimplemented
-remediations
 releng
+remediations
 renderer
+Resolvers
+reStructuredText
 rethrow
 rovarga
 runtime
-Shiro
+Runtime
+Scala
 scalability
+screenshots
+Shiro
+startup
 stateful
+subclasses
 submodule
 submodules
-subclasses
 subnet
 subtypes
 superclass
 switchponders
 syntaxes
 TCP
-TSC
-Trie
+Timeline
 todo
 tox
+Trie
 tsc
+TSC
 typeless
 uint
 uncheck
@@ -139,10 +162,14 @@ unkeyed
 unreachability
 untrusted
 uploader
+username
 variadic
-vTEP
+versioned
+versioning
 virtualenv
+virtualization
+vTEP
 whitespace
-yangtools
 Xerces
 xml
+yangtools
diff --git a/tox.ini b/tox.ini
index a4ac27f35257a3824defbf5c1c8fad599210b05a..fdb60289c50db52df7316a9af60cc0cda42f10f8 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = pre-commit,gitlint,docs,docs-linkcheck
+envlist = pre-commit,gitlint,docs,docs-linkcheck,spelling
 skipsdist = true
 
 [testenv:docs]
@@ -53,5 +53,8 @@ deps =
     -rdocs/requirements.txt
     sphinxcontrib-spelling
     PyEnchant
-commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling
+whitelist_externals = sh
+commands =
+    sh -c 'command enchant>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
+    sphinx-build -q -W -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling