Add vfc-svnfm-driver tox coverge check
[vfc/nfvo/driver/vnfm/svnfm.git] / zte / vmanager / tox.ini
1 [tox]
2 envlist = py27,pep8,cov
3 skipsdist = true
4  
5 [testenv]
6 deps = -r{toxinidir}/requirements.txt
7 commands = coverage run --branch manage.py test
8
9 [flake8]
10 ignore =  E501,W291,E121,F401,W391,E302,E265,E231,F841,E127,E128,E122,E126,E303
11 max-complexity = 12
12
13 [testenv:pep8]
14 deps = flake8
15 commands = flake8
16
17 [testenv:py27]
18 commands =
19   {[testenv]commands}
20
21 [testenv:cov]
22 commands = coverage html --omit="*test_*,*__init__.py,*site-packages*" -d htmlcov