forked from taverntesting/tavern
/
tox.ini
49 lines (42 loc) · 975 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
41
42
43
44
45
46
47
48
49
[tox]
envlist = py37,py38,py39,py310,py39lint,py39black,py39mypy,py39-pytest6
skip_missing_interpreters = true
[testenv]
deps =
py
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 =
black -t py39 --check tavern
black -t py39 --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:py39mypy]
basepython = python3.9
setenv =
MYPYPATH = {toxinidir}
deps =
types-PyYAML
types-requests
commands =
mypy -p tavern --config-file {toxinidir}/mypy.ini
[testenv:py39-pytest6]
basepython = python3.9
deps =
pytest>=6.2,<7