X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=c065e39d3fb5f13f6082381ebd3d2bd693c41bb4;hb=96fcfa9343e15e58aa3d99e4bae34564f8adbf25;hp=9ef083e45b26ec7de352d1dabd108d123ccfd0d2;hpb=693446af400ffe827fd412ad55872c17c954ae95;p=netvirt.git diff --git a/tox.ini b/tox.ini index 9ef083e45b..c065e39d3f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6.0 -envlist = coala,docs +envlist = coala,docs,pre-commit skipsdist = true [testenv:coala] @@ -8,13 +8,20 @@ basepython = python3 deps = coala==0.11.0 coala-bears==0.11.0 + detox~=0.18 pygments~=2.3.1 requests~=2.21.0 commands = - python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger coala --non-interactive [testenv:docs] deps = -rdocs/requirements.txt commands = sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html + +[testenv:pre-commit] +basepython = python3 +deps = pre-commit +commands = + pre-commit install --hook-type commit-msg + pre-commit run --all-files