X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=modules%2Flibjuju%2Ftox.ini;fp=modules%2Flibjuju%2Ftox.ini;h=ce421d6d3696ed55085b23747fdf9a81ac7e4f00;hp=789bbebdecabf8f09702a6ccac257b36367427ab;hb=1a15d1c84fc826fa7996c1c9d221a324edd33432;hpb=fd577a36aaf408c845f3bb8b3f28ecbbf3332107 diff --git a/modules/libjuju/tox.ini b/modules/libjuju/tox.ini index 789bbeb..ce421d6 100644 --- a/modules/libjuju/tox.ini +++ b/modules/libjuju/tox.ini @@ -4,11 +4,14 @@ # and then run "tox" from this directory. [tox] -envlist = py35 +envlist = lint,py35 skipsdist=True [testenv] +basepython=python3 usedevelop=True +# for testing with other python versions +commands = py.test -ra -v -s -x -n auto {posargs} passenv = HOME deps = @@ -23,6 +26,15 @@ deps = # default tox env excludes integration tests commands = py.test -ra -v -s -x -n auto -k 'not integration' {posargs} +[testenv:lint] +envdir = {toxworkdir}/py35 +commands = + flake8 --ignore E501 {posargs} juju +deps = + flake8 + [testenv:integration] -basepython=python3 -commands = py.test -ra -v -s -x -n auto {posargs} +envdir = {toxworkdir}/py35 + +[flake8] +exclude = juju/client/_*