blob: 81ea06e8e52222c1b22332f836dc6b1fa4e93f4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py37, py38, py39, py310, pypy3.7, flake8
minversion = 3.3.0
skip_missing_interpreters = true
isolated_build = true
[testenv]
commands = {envpython} -b -m pytest -W always {posargs}
extras = test
[testenv:black]
basepython = python3
deps = black
commands = black src tests
skip_install = true
[testenv:isort]
basepython = python3
deps = isort
commands = isort src tests
skip_install = true
[testenv:flake8]
basepython = python3
deps = pyproject-flake8
commands = pflake8 src tests
skip_install = true
|