X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=tox.ini;h=1e9b8581633ec103385e7da0f4b4fd1dffb22064;hb=33d8d18e8981751af8602f497e53512478ee2696;hp=7611fe665f78e2f5bcf2305c2916e1430f7df272;hpb=55721000132cef01ff9fe2141adfd6079c2f8857;p=releng%2Fglobal-jjb.git diff --git a/tox.ini b/tox.ini index 7611fe66..1e9b8581 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} @@ -17,8 +18,13 @@ basepython = python3 deps = coala coala-bears + pygments~=2.3.1 + # request-2.22.0 does not work with python-3.4.9 + 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 @@ -59,6 +65,11 @@ commands = python {toxinidir}/check_jjb_version.py deps = lftools commands = lftools license check-dir -r '.+' shell +[testenv:pre-commit] +deps = pre-commit +commands = + pre-commit run --all-files + ######### # Tools # #########