Skip to content

Commit

Permalink
Analyse code when running tox
Browse files Browse the repository at this point in the history
It filters all messages to ease reading the report.

Change-Id: Iab55bc71cb6026edde29fb9f084a07b2dedf564f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
  • Loading branch information
collivier committed May 21, 2017
1 parent 2bbf149 commit 59f183c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pep8,py27
envlist = pep8,pylint,py27

[testenv]
deps =
Expand All @@ -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'"

0 comments on commit 59f183c

Please sign in to comment.