From 9015be315dc10c30277bb3c67a67d748b13b3338 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Wed, 17 Feb 2021 11:46:10 +0100 Subject: [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 Change-Id: I94505a4db4b64b77dfb37bc4fc041d2e0264c900 --- tox.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit 1.2.3-korg