From: Cédric Ollivier Date: Wed, 31 May 2017 12:21:12 +0000 (+0200) Subject: Return pylint status code for modules rated 10/10 X-Git-Tag: opnfv-5.0.RC1~346 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=86aee2dcf004361b1516f28b0137b7c3fedfe8a5;p=functest.git Return pylint status code for modules rated 10/10 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 --- 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 =