diff options
author | valentin boucher <valentin.boucher@orange.com> | 2017-05-22 13:11:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 13:11:45 +0000 |
commit | e47af47ac514d41e4b86085a2ba7b6d664b1cdd5 (patch) | |
tree | cbe555ab931b6b75c7419a4ddd5e41a36cc271f9 | |
parent | 7c902200886f72f8a5868d1e40c9b34f9160d6ce (diff) | |
parent | 59f183c9573e4ae59beaadc94e4cc52660029d37 (diff) |
Merge "Analyse code when running tox"
-rw-r--r-- | test-requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index b284591b9..1874bb1f6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,3 +9,4 @@ coverage==4.1 mock==1.3.0 nose==1.3.7 flake8>=2.5.4,<2.6.0 # MIT +pylint==1.4.5 # GPLv2 @@ -1,5 +1,5 @@ [tox] -envlist = pep8,py27 +envlist = pep8,pylint,py27 [testenv] deps = @@ -18,3 +18,11 @@ basepython = python2.7 deps = {[testenv]deps} commands = flake8 + +[testenv:pylint] +basepython=python2.7 +deps= + {[testenv]deps} +whitelist_externals = bash +commands=bash -c \ + "pylint --persistent=n functest | sed -ne '/Raw metrics/,//p'" |