-
Notifications
You must be signed in to change notification settings - Fork 296
/
tox.ini
49 lines (43 loc) · 1.28 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
[tox]
envlist =
py{38,39,310,311,312}-django42-drf{314,315,master},
py{310,311,312}-django{50,51}-drf{314,315,master},
py313-django51-drf{master},
black,
docs,
lint
[testenv]
deps =
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
drf314: djangorestframework>=3.14,<3.15
drf315: djangorestframework>=3.15,<3.16
drfmaster: https://github.com/encode/django-rest-framework/archive/master.zip
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE=example.settings.test
commands =
pytest --cov --no-cov-on-fail --cov-report xml {posargs}
[testenv:black]
basepython = python3.10
deps =
-rrequirements/requirements-codestyle.txt
commands = black --check .
[testenv:lint]
basepython = python3.10
deps =
-rrequirements/requirements-codestyle.txt
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
commands = flake8
[testenv:docs]
# keep in sync with .readthedocs.yml
basepython = python3.10
deps =
-rrequirements/requirements-optionals.txt
-rrequirements/requirements-documentation.txt
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html