X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=tox.ini;h=4ce9e319830b9fd4f38eceb2eb90e6ac02449692;hb=7c19696eca2a3ae35e0ff26015adde74654b72c1;hp=fa58f859a3238000a205d94c6b57f8393d6308db;hpb=c36acacf22c4e6708ae6bb13b74fec2d09e3dbf4;p=releng%2Fglobal-jjb.git diff --git a/tox.ini b/tox.ini index fa58f859..4ce9e319 100644 --- a/tox.ini +++ b/tox.ini @@ -6,8 +6,9 @@ envlist = jjb, jjb-compare-xml, jjb-latest, - jjb-version - license + jjb-version, + license, + pre-commit skipsdist = true passenv = TOX_WORK_DIR toxworkdir = {env:TOX_WORK_DIR:/tmp/v} @@ -22,6 +23,8 @@ deps = requests~=2.21.0 # Markdown lint requires nodejs nodeenv + # numpy-1.17.0 requires python 3.5 + numpy~=1.16.4 commands = nodeenv -p npm install --global remark-cli remark-lint write-good @@ -62,6 +65,13 @@ commands = python {toxinidir}/check_jjb_version.py deps = lftools commands = lftools license check-dir -r '.+' shell +[testenv:pre-commit] +deps = + more-itertools~=5.0.0 + pre-commit +commands = + pre-commit run --all-files + ######### # Tools # #########