diff options
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 37 |
1 files changed, 32 insertions, 5 deletions
@@ -5,10 +5,12 @@ envlist = py # needed by PEP-517 projects: isolated_build = True -minversion = 3.24.5 +minversion = 4.0.2 requires = + tox>=4.0.2 + # temporary disabled due to problem with tox v4 # fail build if git reports dirty after test run - tox-extra + # tox-extra>=1.0.1a0 [testenv] deps = @@ -30,19 +32,44 @@ passenv = # Pass HOME to the test environment as it is required by # vagrant. Otherwise error happens due to missing HOME env variable. HOME + PYTEST_* setenv = - COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} + COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}} + PIP_CONSTRAINT = requirements.txt allowlist_externals = - sh + git + sh + */create_dummy_box.sh [testenv:dev] commands = {posargs} +[testenv:deps] +description = Bump all test dependencies +# we reuse the lint environment +envdir = {toxworkdir}/lint +skip_install = true +deps = + {[testenv:lint]deps} +setenv = + # without his upgrade would likely not do anything + PIP_CONSTRAINT = /dev/null +commands_pre = +commands = + pre-commit run --all-files --show-diff-on-failure --hook-stage manual up + # Update pre-commit hooks + pre-commit autoupdate + # We fail if files are modified at the end + git diff --exit-code + [testenv:lint] description = Run all linters deps = pre-commit>=2.6.0 +setenv = + PIP_CONSTRAINT = /dev/null skip_install = true +commands_pre = commands = {envpython} -m pre_commit run --all-files --show-diff-on-failure {posargs:} @@ -50,7 +77,7 @@ commands = description = Build package, verify metadata, install package and assert behavior when ansible is missing. deps = - build >= 0.7.0 + build >= 0.9.0 twine skip_install = true # Ref: https://twitter.com/di_codes/status/1044358639081975813 |
