summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 903e9458249988f3e48fb7c8ff801094e66f1a53 (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
33
34
35
[tox]
minversion = 2.4
envlist =
    isort-check,
    lint,
    mypy,
    py{35,36,37,py3}

[testenv]
deps =
    pytest
    coverage: pytest-cov
extras =
    pipfile
    pyproject
    requirements
setenv =
    coverage: PYTEST_ADDOPTS=--cov {env:PYTEST_ADDOPTS:}
commands = pytest {posargs}

[testenv:isort-check]
basepython = python3
commands = python setup.py isort

[testenv:lint]
deps = flake8==3.7.6
commands = flake8
skip_install = True

[testenv:mypy]
basepython = python3
deps = -r{toxinidir}/mypy-requirements.txt
commands =
    mypy .
skip_install = True