-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
69 lines (59 loc) · 1.14 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
66
67
68
69
[tox]
envlist =
clean
py37_black
py37_mypy
py37_django22
py37_django30
py37_django31
coverage
isolated_build = True
[tox:.package]
basepython = python3
[testenv]
commands = coverage run -m pytest . --junit-xml=.tox/junit.{envname}.xml
install_command = pip install --pre {opts} {packages}
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
depends =
{py37_django22,py37_django-30,py37_django31}: clean
coverage: py37_django22,py37_django-30,py37_django31
[base]
deps =
pytest
coverage
pytest-django
[testenv:py37_black]
deps =
black==20.8b1
commands =
black --check --diff django_faucet_pipeline
[testenv:py37_mypy]
deps =
django-stubs==1.5.0
mypy==0.770
commands =
mypy django_faucet_pipeline
[testenv:py37_django22]
deps =
Django>=2.2.0,<2.3.0
{[base]deps}
[testenv:py37_django30]
deps =
Django>=3.0.0,<3.1.0
{[base]deps}
[testenv:py37_django31]
deps =
Django>=3.1.0,<3.2.0
{[base]deps}
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage xml
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase