From ceedee4c57cf7d533bd02a0ddc8e60e969e03071 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Fri, 7 Jul 2023 14:27:26 -0400 Subject: [PATCH] tox.ini: Refine "pre" commands and passenv usage. Signed-off-by: Chris PeBenito --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index a879aa6..2e7c6f3 100644 --- a/tox.ini +++ b/tox.ini @@ -13,20 +13,22 @@ commands = pycodestyle setools/ setoolsgui/ tests/ tests-gui/ seinfo sein [testenv:coverage] setenv = SETOOLS_COVERAGE = 1 +passenv = {[testenv]passenv} deps = {[testenv]deps} coverage>=5.0 extras = toml commands_pre = coverage --version coverage erase - {envpython} setup.py build_ext -i + {[testenv]commands_pre} commands = coverage run -m pytest tests tests-gui coverage report [testenv:lint] +passenv = {[testenv]passenv} deps = {[testenv]deps} pylint>=2.8.0 commands_pre = pylint --version - {envpython} setup.py build_ext -i + {[testenv]commands_pre} commands = pylint -E setools setoolsgui tests tests-gui seinfo seinfoflow sedta sesearch sediff sechecker apol [testenv:mypy]