mirror of
https://github.com/SELinuxProject/setools
synced 2025-05-04 09:10:22 +00:00
tox.ini: Refine "pre" commands and passenv usage.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
893cdd5477
commit
ceedee4c57
6
tox.ini
6
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]
|
||||
|
Loading…
Reference in New Issue
Block a user