Update the Django version to 2.2.27
[vfc/nfvo/driver/vnfm/svnfm.git] / zte / vmanager / tox.ini
index 46bc1dc..0086ffc 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py27,pep8
+envlist = py36,pep8,cov
 skipsdist = true
  
 [testenv]
@@ -7,12 +7,18 @@ deps = -r{toxinidir}/requirements.txt
 commands = coverage run --branch manage.py test
 
 [flake8]
-ignore =  E501,W291,E121,F401,W391,E302,E265,E231,F841,E127,E128,E122,E126,E303
+ignore =  E501,E722
+exclude = ./venv-tox,./.tox,./venv
+max-complexity = 12
 
 [testenv:pep8]
 deps = flake8
 commands = flake8
 
-[testenv:py27]
+[testenv:py36]
 commands =
-  {[testenv]commands}
\ No newline at end of file
+  {[testenv]commands}
+
+[testenv:cov]
+deps = coverage==4.2
+commands = coverage xml --omit="*test*,*__init__.py,*site-packages*"
\ No newline at end of file