X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=tox.ini;h=a0f0503d425292417ff8f1770da47ff12cb0c8e1;hp=bd8924103d199f7ca7deee6b0b1c126eadb5c69e;hb=b78b3e0963c1fbe31daaf71dabac5362588bb88b;hpb=f52cb7cfeb4e24febe7c66af3d5bb275a50d7f99 diff --git a/tox.ini b/tox.ini index bd89241..a0f0503 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,8 @@ # limitations under the License. [tox] -envlist = cover, flake8, pylint +envlist = cover, flake8, pylint, pylint-tests +skipsdist=True [testenv] @@ -26,9 +27,9 @@ deps = commands = coverage erase nose2 -C --coverage n2vc --plugin nose2.plugins.junitxml -s n2vc - coverage report --omit='*tests*' - coverage html -d ./cover --omit='*tests*' - coverage xml -o coverage.xml --omit='*tests*' + coverage report --omit='*n2vc/tests*' + coverage html -d ./cover --omit='*n2vc/tests*' + coverage xml -o coverage.xml --omit='*n2vc/tests*' [testenv:pylint] basepython = python3 @@ -36,7 +37,16 @@ deps = pylint -rrequirements.txt commands = - pylint -E n2vc + pylint -E n2vc --ignore=tests + +[testenv:pylint-tests] +basepython = python3 +deps = + pylint + -rrequirements.txt + -rtest-requirements.txt +commands = + pylint -E n2vc.tests [testenv:black] basepython = python3 @@ -55,7 +65,7 @@ commands = [flake8] # W503 is invalid PEP-8 -max-line-length = 88 +max-line-length = 100 show-source = True ignore = W503,E203 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,devops_stages/*,.rst