Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (46 loc) · 1.39 KB
/
Copy pathtox.ini
File metadata and controls
52 lines (46 loc) · 1.39 KB
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
[tox]
envlist =
py311-django{52}-drf{317,318,main},
py312-django{52,60}-drf{317,318,main},
py313-django{52,60}-drf{317,318,main},
py314-django{52,60}-drf{317,318,main},
# DRF 3.17 does not support Django 6.1
py{312,313,314,315}-django{61}-drf{318,main},
black,
docs,
lint
[testenv]
deps =
django52: Django>=5.2,<5.3
django60: Django>=6.0,<6.1
django61: Django>=6.1,<6.2
drf317: djangorestframework>=3.17,<3.18
drf318: djangorestframework>=3.18,<3.19
drfmain: https://github.com/encode/django-rest-framework/archive/main.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.12
deps =
-rrequirements/requirements-codestyle.txt
commands = black --check .
[testenv:lint]
basepython = python3.12
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.12
deps =
-rrequirements/requirements-optionals.txt
-rrequirements/requirements-documentation.txt
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html