From: Guillaume Lambert Date: Fri, 17 Apr 2020 07:45:20 +0000 (+0200) Subject: add a pylint tox profile for functional tests X-Git-Tag: 2.0.0~155 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F89087%2F6;p=transportpce.git 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 --- 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 \{\} +