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-02-17 11:53:54 +0100
commit9015be315dc10c30277bb3c67a67d748b13b3338 (patch)
tree39b7c2bd627f2d6642ca49df6c3557a53b5b6842
parent01918451fdc20a2c83543113649e16f3d0a211e1 (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
-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