Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist =
3 {py39, py310, py311, py312}-django42,
4 {py310, py311, py312}-django50,
5 {py310, py311, py312, py313}-django51,
6 {py310, py311, py312, py313}-django52,
7 {py312, py313}-latest,
8 isort,lint,docs,warnings,
9 isolated_build = true
10
11
12 [latest]
13 deps =
14 https://github.com/django/django/archive/main.tar.gz
15 https://github.com/encode/django-rest-framework/archive/master.tar.gz
16
17 [testenv]
18 commands = coverage run --parallel-mode --source django_filters ./runtests.py --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner {posargs}
19 setenv =
20 PYTHONDONTWRITEBYTECODE=1
21 deps =
22 django42: Django>=4.2,<5.0
23 django50: Django>=5.0,<5.1
24 django51: Django>=5.1,<5.2
25 django52: Django>=5.2a1,<6.0
26 !latest: djangorestframework
27 latest: {[latest]deps}
28 -r requirements/test-ci.txt
29
30 [testenv:isort]
31 commands = isort --check-only --diff django_filters tests {posargs}
32 deps = isort
33
34 [testenv:lint]
35 commands = flake8 django_filters tests {posargs}
36 deps = flake8
37
38 [testenv:docs]
39 commands = sphinx-build -WE docs _docs
40 deps =
41 -rrequirements/docs.txt
42
43 [testenv:warnings]
44 ignore_outcome = True
45 unignore_outcomes = True
46 commands = python -Werror ./runtests.py --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner {posargs}
47 deps =
48 {[latest]deps}
49 -rrequirements/test-ci.txt