-
Notifications
You must be signed in to change notification settings - Fork 428
/
tox.ini
72 lines (66 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
args_are_paths = false
envlist =
py39-{4.2},
py310{4.2,5.0,5.1,master},
py311{4.2,5.0,5.1,master},
py312{5.0,5.1,master},
; py313{master},
docs,
flake8,
isort,
[testenv]
basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
usedevelop = true
pip_pre = true
setenv =
PYTHONPATH={toxinidir}
PYTHONWARNINGS=all
commands =
coverage run --source=django_tables2 manage.py test {posargs}
deps =
4.2: Django==4.2.*
5.0: Django==5.0.*
5.1: Django==5.1.*
master: https://github.com/django/django/archive/master.tar.gz
coverage
-r{toxinidir}/requirements/common.pip
[testenv:docs]
basepython = python3.11
whitelist_externals = make
changedir = docs
setenv =
PYTHONWARNINGS=default
commands =
make html
make spelling
deps =
-r{toxinidir}/docs/requirements.txt
[testenv:flake8]
basepython = python3.11
deps = flake8==3.7.9
commands = flake8
[flake8]
ignore = E731,W503,E203
exclude = .git,__pycache__,.tox,example/app/migrations
max-line-length = 120
[testenv:isort]
basepython = python3.11
deps =
-r requirements/common.pip
isort==5.6.4
commands = isort --diff --check django_tables2 test
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
combine_as_imports = True
line_length = 100
skip = migrations
known_third_party=django,django_filters,pytest,fudge,lxml,pytz
known_first_party=django_tables2