add a pylint tox profile for functional tests 52/89352/1
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 17 Apr 2020 07:45:20 +0000 (09:45 +0200)
committerChristophe Betoule <christophe.betoule@orange.com>
Fri, 24 Apr 2020 12:49:34 +0000 (14:49 +0200)
- declare the pylint profile in tox.ini testenv.
- disable missing-docstring check
- set maximum line length check to 120 characters (ODL standard)

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I673cd8be50831fb0ea934a2b1ede6d64650613cd

tox.ini

diff --git a/tox.ini b/tox.ini
index ec0f55ba0c4ce6c242f7ec2f227bfd18111f654e..736f1298151e4b181f168aaa0044c3f1ebd061af 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -68,3 +68,10 @@ basepython = python3
 deps = autopep8
 commands =
     autopep8 --max-line-length 120 --in-place --recursive transportpce_tests/
+
+[testenv:pylint]
+basepython = python3
+deps = pylint
+whitelist_externals = find
+commands =
+    find transportpce_tests/ -name *.py -exec pylint --max-line-length=120 --disable=missing-docstring  --reports=y --score=y  --output-format=colorized  \{\} +