forked from tfranzel/drf-spectacular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (39 loc) · 1.13 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
[tox]
envlist =
lint,docs,
{py36,py37,py38}-django{2.2,3.0}-drf{3.10,3.11},
{py36,py37,py38}-djmaster
skip_missing_interpreters = true
[coverage:report]
exclude_lines =
pragma: no cover
except ImportError
raise NotImplementedError
if __name__ == .__main__.:
[flake8]
ignore =
W503 # line break before binary operator
max-line-length = 120
[testenv]
commands = ./runtests.py --fast --cov=drf_spectacular --cov=tests
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv =
CI TRAVIS TRAVIS_*
deps =
django2.2: Django==2.2
django3.0: Django==3.0
drf3.10: djangorestframework==3.10
drf3.11: djangorestframework==3.11
djmaster: https://github.com/django/django/archive/master.tar.gz
djmaster: https://github.com/encode/django-rest-framework/archive/master.tar.gz
-r requirements/testing.txt
-r requirements/optionals.txt
[testenv:lint]
commands = ./runtests.py --lintonly
deps =
-r requirements/testing.txt
[testenv:docs]
commands = sphinx-build -WEa -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
deps =
-r requirements/docs.txt