From 86aee2dcf004361b1516f28b0137b7c3fedfe8a5 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 31 May 2017 14:21:12 +0200 Subject: Return pylint status code for modules rated 10/10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It ensures that no pylint errors or warnings can be introduced by a new change. The first pylint call (to report issues) will be safely removed when all pylint errors and warnings are fixed in functest. Change-Id: I9ff7b7d5a7738c3d6d769267a78c28828c3e4523 Signed-off-by: Cédric Ollivier --- tox.ini | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index a944464d5..6c2734d49 100644 --- a/tox.ini +++ b/tox.ini @@ -29,9 +29,22 @@ basepython = python2.7 deps = {[testenv]deps} whitelist_externals = bash -commands = bash -c "\ - pylint -f parseable --disable=locally-disabled functest | \ - tee pylint.out | sed -ne '/Raw metrics/,//p'" +modules = + functest.core.feature + functest.core.testcase + functest.core.unit + functest.opnfv_tests.sdn.odl + functest.tests.unit.core.test_feature + functest.tests.unit.core.test_testcase + functest.tests.unit.core.test_unit + functest.tests.unit.odl + functest.tests.unit.utils.test_decorators + functest.utils.decorators +commands = + bash -c "\ + pylint -f parseable --disable=locally-disabled functest | \ + tee pylint.out | sed -ne '/Raw metrics/,//p'" + pylint --disable=locally-disabled --reports=n {[testenv:pylint]modules} [testenv:py35] dirs = -- cgit 1.2.3-korg