X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Ftox.ini;h=7474134ea1d9c0c879bd9995348c80dfa3a4fae8;hb=3b4fa8c009b1a575a076648dea086d2b6da77d90;hp=4022b75d8fa1cc8b6298eda976184b125d0478ec;hpb=fb961baab613a906011f3a0d705c8fca604a5f60;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/tox.ini b/lcm/tox.ini index 4022b75d..7474134e 100644 --- a/lcm/tox.ini +++ b/lcm/tox.ini @@ -1,11 +1,25 @@ [tox] -envlist = py27 +envlist = py27,pep8,cov skipsdist = true [tox:jenkins] downloadcache = ~/cache/pip +[flake8] +ignore = E501,E722 +max-complexity = 27 + [testenv] deps = -r{toxinidir}/requirements.txt commands = coverage run --branch manage.py test lcm - coverage html --omit="*test*,*__init__.py" -d htmlcov + +[testenv:pep8] +deps = flake8 +commands = flake8 + +[testenv:py27] +commands = + {[testenv]commands} + +[testenv:cov] +commands = coverage html --omit="*test_*,*__init__.py,*site-packages*" -d htmlcov