aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-05-31 14:21:12 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-31 14:46:51 +0200
commit86aee2dcf004361b1516f28b0137b7c3fedfe8a5 (patch)
treefda61a5cc84d6472dbdfc251dfe34bcc316aba3c
parentf67f9aec8a01f5eafd46953599b545ef43a5085e (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.ini19
1 files 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 =