[DOC] Add python linters for conf.py in tox.ini 40/117940/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 17 Feb 2021 10:46:10 +0000 (11:46 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 17 Feb 2021 10:53:54 +0000 (11:53 +0100)
and configure them with some project default standards

Issue-ID: DOC-710
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I94505a4db4b64b77dfb37bc4fc041d2e0264c900

tox.ini

diff --git a/tox.ini b/tox.ini
index 4d2b6f7..5807a81 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -37,3 +37,13 @@ deps =
     sphinxcontrib-spelling
 commands =
     sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck
+
+[testenv:autopep8]
+deps = autopep8
+commands =
+    autopep8 --max-line-length 120 --in-place docs/conf.py
+
+[testenv:pylint]
+deps = pylint
+commands =
+    pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y  --output-format=colorized docs/conf.py