-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
45 lines (42 loc) · 1.12 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
[tox]
PYTHONDONTWRITEBYTECODE = true
envlist =
flake8,
isort,
py27-{1.11}-drf{3.5,3.6,3.7,3.8,3.9},
py36-{1.11}-drf{3.5,3.6},
py36-{2.0,2.1}-drf{3.7,3.8,3.9},
py37-{2.0,2.1}-drf{3.7,3.8,3.9},
[testenv]
basepython =
py27: python2.7
py36: python3.6
py37: python3.7
usedevelop = true
commands =
{envpython} -R -Wonce {envbindir}/coverage run -m django test -v2 --settings=tests.settings {posargs}
coverage report
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
coverage
factory-boy
jsonmask
1.11: Django>=1.11,<2.0
2.0: Django>=2.0,<2.1
2.1: Django>=2.1,<2.2
drf3.5: djangorestframework>=3.5,<3.6
drf3.6: djangorestframework>=3.6,<3.7
drf3.7: djangorestframework>=3.7,<3.8
drf3.8: djangorestframework>=3.8,<3.9
drf3.9: djangorestframework>=3.9,<3.10
[testenv:flake8]
usedevelop = false
basepython = python2.7
commands = flake8
deps = flake8
[testenv:isort]
usedevelop = false
basepython = python2.7
commands = isort --recursive --check-only --diff rest_framework_jsonmask tests
deps = isort