From 59f183c9573e4ae59beaadc94e4cc52660029d37 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 21 May 2017 11:50:56 +0200 Subject: Analyse code when running tox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It filters all messages to ease reading the report. Change-Id: Iab55bc71cb6026edde29fb9f084a07b2dedf564f Signed-off-by: Cédric Ollivier --- tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 88d720c8c..db4f89202 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pep8,py27 +envlist = pep8,pylint,py27 [testenv] deps = @@ -18,3 +18,11 @@ basepython = python2.7 deps = {[testenv]deps} commands = flake8 + +[testenv:pylint] +basepython=python2.7 +deps= + {[testenv]deps} +whitelist_externals = bash +commands=bash -c \ + "pylint --persistent=n functest | sed -ne '/Raw metrics/,//p'" -- cgit 1.2.3-korg