Add pep8 check for vfc-nfvo-lcm 01/16301/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 28 Sep 2017 09:06:32 +0000 (17:06 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 28 Sep 2017 09:06:32 +0000 (17:06 +0800)
Change-Id: I10889fead2d58f4e2f5520d8c3d11bb77d53a0c5
Issue-Id: VFC-470
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
tox.ini

diff --git a/tox.ini b/tox.ini
index baf2214..ba77d2f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,22 @@
 [tox]
-envlist = py27
+envlist = py27,pep8
 skipsdist = true
 
 [tox:jenkins]
 downloadcache = ~/cache/pip
 
+[flake8]
+ignore =  E501
+exclude =  ./venv-tox,./.tox
+
 [testenv]
 deps = -r{toxinidir}/requirements.txt
 commands = coverage run --branch manage.py test lcm
+
+[testenv:pep8]
+deps = flake8
+commands = flake8
+
+[testenv:py27]
+commands =
+  {[testenv]commands}