forked from taverntesting/tavern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
65 lines (57 loc) · 1.26 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tox]
envlist = py27,py34,py35,py36,py37,pypy,pypy3,py27lint,py36lint
skip_missing_interpreters = true
[testenv]
extras =
tests
commands =
{envbindir}/python -m pytest --cov-report term-missing --cov tavern
[testenv:py27lint]
basepython = python2.7
deps =
prospector[with_pyroma]
commands =
prospector
[testenv:py36lint]
basepython = python3.6
deps =
prospector[with_pyroma,with_mypy]
commands =
prospector
; Enable mypy for py3
; There are some false positives here so this is disabled until we fully move to python3 and can fix all the type errors
; prospector --tool mypy
[testenv:py27flakes]
basepython = python2.7
deps =
prospector
commands =
prospector --tool pyflakes --test-warnings
[testenv:py37flakes]
basepython = python3.7
deps =
prospector
commands =
prospector --tool pyflakes --test-warnings
[testenv:py37black]
basepython = python3.7
deps =
black
commands =
black --check tavern
black --check tests/unit
[testenv:py37mypy]
basepython = python3.7
deps =
mypy
setenv =
MYPYPATH = {toxinidir}
commands =
mypy -p tavern --config-file {toxinidir}/mypy.ini
# [testenv:docs]
# deps =
# pytest
# -rrequirements.txt
# -rdocs/source/requirements.txt
# commands =
# python setup.py docs