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,coverageThis will configure three envlists:
- test, which runs the environments
py36,py37andpy38 - qa, which runs the environments
mypyandlint - cov, which runs the environments
py36andcoverage
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-envlisttox-envlist requires Python 3.7 or later to run,
but can be used to configure envlists which use earlier Python version.