Allows selection of a different tox envlist.
Tests | |
---|---|
PyPI | |
Activity | |
QA | |
Other |
In your tox.ini
file, add the following:
[envlists]
test = py36, py37, py38
qa = mypy,lint
cov = py36,coverage
This will configure three envlists:
- test, which runs the environments
py36
,py37
andpy38
- qa, which runs the environments
mypy
andlint
- cov, which runs the environments
py36
andcoverage
You are free to customise these envlists and add new ones.
Run tox using the -n
/ --envlist-name [name]
option, where name
is the name of the envlist.
tox-envlist
can be installed from PyPI.
To install with pip
:
$ python -m pip install tox-envlist
tox-envlist
requires Python 3.7 or later to run,
but can be used to configure envlists which use earlier Python version.