summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 956a193c3b942f98dad7542f2f295e4437e66c2a (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
[tox]
minversion = 3.7.0
envlist = lint, py37, py38, py39, py310, flake8
skip_missing_interpreters = true
isolated_build = true

[testenv]
commands = coverage run -m pytest {posargs}
extras = test

[testenv:lint]
deps =
    isort
    autopep8
commands =
    autopep8 -r -i src tests
    isort src tests
skip_install = true

[testenv:flake8]
basepython = python3.7
depends = lint
deps = pyproject-flake8
commands = pflake8 src tests
skip_install = true

[testenv:mypy]
deps = mypy
commands = mypy {posargs} src tests
skip_install = true