tox: remove unused environments, add black,isort

All the existing environments were unused and broken. Remove them.
Add black and isort environments to help run a consistent version.
This commit is contained in:
Dan Bungert 2023-07-21 14:14:07 -06:00
parent 6b37ba4c55
commit da4df7a725
1 changed files with 10 additions and 39 deletions

49
tox.ini
View File

@ -1,47 +1,18 @@
[tox] [tox]
envlist = envlist =
coverage black
flake8 isort
recreate = True recreate = True
[testenv] [testenv]
basepython = python3 basepython = python3
setenv =
SUBIQUITY_NO_I18N = 1
FAKE_TRANSLATE = always
PYTHONPATH = {toxinidir}/fake_deps
deps = [testenv:black]
urwid==1.2.1 deps = black ~= 23.0
PyYAML commands = {envpython} -m black \
attrs {posargs:console_conf subiquity subiquitycore system_setup}
jsonschema
pyudev
requests
requests-unixsocket
[testenv:flake8] [testenv:isort]
deps = deps = isort == 5.12.0
flake8==3.5.0 commands = {envpython} -m isort \
pycodestyle==2.3.1 {posargs:console_conf subiquity subiquitycore system_setup}
pyflakes==1.6.0
commands = {envpython} -m flake8 \
{posargs:console_conf/ subiquity/ subiquitycore/}
[testenv:py3]
deps =
{[testenv]deps}
nose
commands = {envpython} -m nose \
{posargs:console_conf/ subiquity/ subiquitycore/}
[testenv:coverage]
deps = {[testenv:py3]deps}
nose-timer
coverage
commands = {envpython} -m nose \
--with-timer --timer-top-n 10 \
--with-coverage --cover-erase --cover-branches --cover-inclusive \
--cover-package=subiquity --cover-package=subiquitycore \
{posargs:console_conf subiquity/ subiquitycore/}