Skip to content

python-coincidence/tox-envlist

Repository files navigation

tox-envlist

Allows selection of a different tox envlist.

Tests Linux Test Status Windows Test Status macOS Test Status Coverage
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Activity GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements Status

Configuration

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 and py38
  • qa, which runs the environments mypy and lint
  • cov, which runs the environments py36 and coverage

You are free to customise these envlists and add new ones.

Usage

Run tox using the -n / --envlist-name [name] option, where name is the name of the envlist.

Installation

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.