Add vfc-gvnfm-driver tox pep8 check setting 81/16581/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 05:12:52 +0000 (13:12 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 29 Sep 2017 05:12:52 +0000 (13:12 +0800)
Change-Id: Ifeddbff7c8b608404732d7c5771d6eee7a50b5f3
Issue-ID: VFC-479
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
gvnfmadapter/tox.ini

index 4e62baf..e70d504 100644 (file)
@@ -1,7 +1,19 @@
 [tox]
-envlist = py27
+envlist = py27,pep8
 skipsdist = true
  
 [testenv]
 deps = -r{toxinidir}/requirements.txt
 commands = coverage run --branch manage.py test
+
+[flake8]
+ignore =  E501,E121,W191,E101,W293,E302,E231,E201,E202,F841,E225,E241,E126
+max-complexity = 12
+
+[testenv:pep8]
+deps = flake8
+commands = flake8
+
+[testenv:py27]
+commands =
+  {[testenv]commands}
\ No newline at end of file