From d5111769ede2f86298fd0f05a7e87f11e7839419 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Fri, 17 Apr 2020 09:45:20 +0200 Subject: [PATCH] add a pylint tox profile for functional tests - 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 Change-Id: I673cd8be50831fb0ea934a2b1ede6d64650613cd --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index ec0f55ba0..736f12981 100644 --- 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 \{\} + -- 2.36.6