summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Lambert <guillaume.lambert@orange.com>2021-02-17 11:46:10 +0100
committerGuillaume Lambert <guillaume.lambert@orange.com>2021-03-02 08:23:38 +0000
commit6d868b4580af8ae2d28d96893808c57bc1e713ac (patch)
treed0b64c9e0daa539fb2bb43015e1de09ad245b696
parentef042ea25e6f64abb4c5a01c381ee72ae553345a (diff)
[DOC] Add python linters for conf.py in tox.ini
and configure them with some project default standards Issue-ID: DOC-710 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I94505a4db4b64b77dfb37bc4fc041d2e0264c900 (cherry picked from commit 9015be315dc10c30277bb3c67a67d748b13b3338)
-rw-r--r--tox.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 4d2b6f7e9..5807a8180 100644
--- 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