aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini12
1 files changed, 8 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 017ee04..1a518d9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,7 +7,7 @@ isolated_build = true
[testenv:test]
description = Run the unit tests.
deps =
- pytest==7.1.1
+ pytest==7.2.0
commands =
pytest {posargs:tests/}
@@ -15,7 +15,7 @@ commands =
description = Run the code coverage of the unit tests.
deps =
{[testenv:test]deps}
- pytest-cov==3.0.0
+ pytest-cov==4.0.0
commands =
pytest --cov=mlia --cov-report term-missing --cov-fail-under=95 tests/
@@ -26,8 +26,12 @@ description = Run and setup the pre-commit hooks.
envdir={toxworkdir}/lint
extras =
dev
-# Workaround to resolve an issue with markdownlint in a docker environment
-passenv = HOME
+# Pass the following environment variables:
+# - HOME: Workaround for an issue with markdownlint in a docker environment
+# - SKIP: Allows skipping of pre-commit hooks, e.g. "SKIP=reuse tox -e lint"
+passenv =
+ HOME
+ SKIP
commands =
lint_setup: pre-commit install-hooks
lint: pre-commit run --all-files --hook-stage=push {posargs}