sts-sponsors team mailing list archive
-
sts-sponsors team
-
Mailing list archive
-
Message #04042
[Merge] ~adam-collard/maas-ci/+git/system-tests:tox-4.0 into ~maas-committers/maas-ci/+git/system-tests:master
Adam Collard has proposed merging ~adam-collard/maas-ci/+git/system-tests:tox-4.0 into ~maas-committers/maas-ci/+git/system-tests:master.
Commit message:
Add support for tox 4.0
Requested reviews:
MAAS Committers (maas-committers)
For more details, see:
https://code.launchpad.net/~adam-collard/maas-ci/+git/system-tests/+merge/434506
--
Your team MAAS Committers is requested to review the proposed merge of ~adam-collard/maas-ci/+git/system-tests:tox-4.0 into ~maas-committers/maas-ci/+git/system-tests:master.
diff --git a/tox.ini b/tox.ini
index aa171e3..6a03382 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-minversion = 3.15
+minversion = 4.0.8
envlist = cog,lint,mypy,env_builder
[testenv]
@@ -34,6 +34,7 @@ description=Generate tox.ini config for machines in config.yaml, update README
deps=
cogapp
PyYAML
+skip_install = true
commands=
cog --verbosity=0 -r tox.ini README.md
@@ -60,6 +61,7 @@ commands=
[testenv:format]
description=Reformat Python code and README.md
deps= -rrequirements.txt
+skip_install = true
commands=
isort --profile black systemtests utils
black systemtests utils
@@ -68,7 +70,8 @@ commands=
[testenv:lint]
description=Lint Python code, YAML and README.md
deps= -rrequirements.txt
-whitelist_externals=sh
+allowlist_externals=sh
+skip_install = true
commands=
isort --profile black --check-only systemtests utils
black --check systemtests utils
@@ -93,10 +96,12 @@ commands=
description=Generate config.yaml
deps=
ruamel.yaml
+skip_install = true
commands=python utils/gen_config.py {posargs}
[testenv:filter_envs]
description=Filter environments by valid tox ones.
+skip_install = true
commands=python utils/filter_envs.py {posargs}
[flake8]
Follow ups