Fix vfc-ztevnamdriver pep8 issues
[vfc/nfvo/driver/vnfm/svnfm.git] / zte / vmanager / tox.ini
index 4e62baf..2d18a62 100644 (file)
@@ -1,7 +1,22 @@
 [tox]
-envlist = py27
+envlist = py27,pep8,cov
 skipsdist = true
  
 [testenv]
 deps = -r{toxinidir}/requirements.txt
 commands = coverage run --branch manage.py test
+
+[flake8]
+ignore =  E501,E722
+max-complexity = 12
+
+[testenv:pep8]
+deps = flake8
+commands = flake8
+
+[testenv:py27]
+commands =
+  {[testenv]commands}
+
+[testenv:cov]
+commands = coverage html --omit="*test_*,*__init__.py,*site-packages*" -d htmlcov
\ No newline at end of file