tox.ini: Refine "pre" commands and passenv usage.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2023-07-07 14:27:26 -04:00 committed by Chris PeBenito
parent 893cdd5477
commit ceedee4c57

View File

@ -13,20 +13,22 @@ commands = pycodestyle setools/ setoolsgui/ tests/ tests-gui/ seinfo sein
[testenv:coverage] [testenv:coverage]
setenv = SETOOLS_COVERAGE = 1 setenv = SETOOLS_COVERAGE = 1
passenv = {[testenv]passenv}
deps = {[testenv]deps} deps = {[testenv]deps}
coverage>=5.0 coverage>=5.0
extras = toml extras = toml
commands_pre = coverage --version commands_pre = coverage --version
coverage erase coverage erase
{envpython} setup.py build_ext -i {[testenv]commands_pre}
commands = coverage run -m pytest tests tests-gui commands = coverage run -m pytest tests tests-gui
coverage report coverage report
[testenv:lint] [testenv:lint]
passenv = {[testenv]passenv}
deps = {[testenv]deps} deps = {[testenv]deps}
pylint>=2.8.0 pylint>=2.8.0
commands_pre = pylint --version 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 commands = pylint -E setools setoolsgui tests tests-gui seinfo seinfoflow sedta sesearch sediff sechecker apol
[testenv:mypy] [testenv:mypy]