diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-31 14:21:12 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-31 14:46:51 +0200 |
commit | 86aee2dcf004361b1516f28b0137b7c3fedfe8a5 (patch) | |
tree | fda61a5cc84d6472dbdfc251dfe34bcc316aba3c | |
parent | f67f9aec8a01f5eafd46953599b545ef43a5085e (diff) |
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 <cedric.ollivier@orange.com>
-rw-r--r-- | tox.ini | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 = |