Check style when running tox 99/35099/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 21 May 2017 08:42:48 +0000 (10:42 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 21 May 2017 08:45:10 +0000 (10:45 +0200)
Change-Id: Idedf823a1572c40692e445694461b4196b75275d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
test-requirements.txt
tox.ini

index b0d4ff8..b284591 100644 (file)
@@ -8,3 +8,4 @@
 coverage==4.1
 mock==1.3.0
 nose==1.3.7
+flake8>=2.5.4,<2.6.0 # MIT
diff --git a/tox.ini b/tox.ini
index d7da122..88d720c 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py27
+envlist = pep8,py27
 
 [testenv]
 deps =
@@ -12,3 +12,9 @@ commands = nosetests --with-xunit \
   --cover-xml \
   --cover-html \
   functest/tests/unit
+
+[testenv:pep8]
+basepython = python2.7
+deps =
+  {[testenv]deps}
+commands = flake8