-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
54 lines (50 loc) · 1.08 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
[tox]
envlist =
py{35}-dj{18,19,110}
py{35,36}-dj{111}
py{35,36,37}-dj{20}
py{35,36,37}-dj{21}
py{35,36,37,38}-dj{22}
py{36,37,38,39}-dj{30,32}
py{38,39,310}-dj{32,40}
py{310}-dj{32,40,41,42,50,main}
py{311}-dj{41,42,50,main}
py{312}-dj{42,50,main}
flake8
isort
[testenv]
deps =
dj18: Django>=1.8,<1.9
dj19: Django>=1.9,<1.10
dj110: Django>=1.10,<1.11
dj111: Django>=1.11,<2
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4,<4.1
dj50: Django>=5,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
python run_tests.py
[testenv:flake8]
extras = lint
basepython = python3
commands =
flake8 baipw
[testenv:isort]
extras = lint
basepython = python3
usedevelop = false
changedir = {toxinidir}
commands =
isort --check-only --diff baipw
[testenv:black]
extras = lint
basepython = python3
usedevelop = false
changedir = {toxinidir}
commands =
black --check --diff ./