forked from taverntesting/tavern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (34 loc) · 889 Bytes
/
tox.ini
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
36
37
38
39
40
[tox]
envlist = py37,py38,py39,py39lint,py39black,py39mypy
skip_missing_interpreters = true
[testenv]
extras =
tests
commands =
{envbindir}/python -m pytest --cov-report term-missing --cov tavern
[testenv:py39lint]
basepython = python3.9
commands =
pylint tavern/ -j 4
[testenv:py39flakes]
skip_install = true
basepython = python3.9
commands =
flake8 tavern
[testenv:py39black]
basepython = python3.9
commands =
; TODO: Set to py39 once support is in a release of black
black -t py38 --check tavern
black -t py38 --check tests/unit
[testenv:py39isort]
basepython = python3.9
commands =
isort . --check --settings-path={toxinidir}/.isort.cfg --diff
isort . --check --settings-path={toxinidir}/.isort.cfg
[testenv:py37mypy]
basepython = python3.7
setenv =
MYPYPATH = {toxinidir}
commands =
mypy -p tavern --config-file {toxinidir}/mypy.ini