Return pylint status code for modules rated 10/10 69/35569/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 31 May 2017 12:21:12 +0000 (14:21 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 31 May 2017 12:46:51 +0000 (14:46 +0200)
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>
tox.ini

diff --git a/tox.ini b/tox.ini
index a944464..6c2734d 100644 (file)
--- 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 =