-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
tox.ini
33 lines (30 loc) · 1017 Bytes
/
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
[tox]
envlist =
{py38,py39,py310}-django32-drf3.14-df22.1,
{py38,py39}-{django41,django42}-drf3.14-df22.1,
{py310,py311}-{django41,django42,django50,djangomain}-drf3.14-df22.1,
py312-{django50,djangomain}-drf3.14-df22.1,
py311-lint
[testenv]
commands =
python \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-W "once:Converter 'drf_format_suffix' is already registered:" \
-m coverage run example/manage.py test --noinput
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONPATH = {toxinidir}/example
deps =
coverage
django32: Django>=3.2,<4.0
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangomain: https://github.com/django/django/archive/main.tar.gz
drf3.14: djangorestframework>=3.14,<3.15
df22.1: django-filter>=22.1
[testenv:py311-lint]
commands = pycodestyle rest_framework_datatables
deps =
pycodestyle>=2.9.1