-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (50 loc) · 1.49 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
[tox]
envlist = django111,lints,django22,django32,django42
[testenv]
usedevelop = True
setenv =
PYTHONPATH = {toxinidir}
deps =
flake8
coverage
isort
black
psycopg2
[testenv:django111]
deps =
django>=1.11,<1.11.99
{[testenv]deps}
commands =
python demo_tests/manage.py test demo_app --noinput
python demo_tests/manage.py test fieldbustier_tests --settings=demo_tests.settings_with_fieldbustier --noinput
[testenv:django22]
deps =
django>=2.2,<2.2.99
{[testenv]deps}
commands =
python demo_tests/manage.py test demo_app --noinput
python demo_tests/manage.py test fieldbustier_tests --settings=demo_tests.settings_with_fieldbustier --noinput
[testenv:django32]
deps =
django>=3.2,<3.2.99
{[testenv]deps}
commands =
python demo_tests/manage.py test demo_app --noinput
python demo_tests/manage.py test fieldbustier_tests --settings=demo_tests.settings_with_fieldbustier --noinput
[testenv:django42]
deps =
django>=4.2,<4.2.99
{[testenv]deps}
commands =
python demo_tests/manage.py test demo_app --noinput
python demo_tests/manage.py test fieldbustier_tests --settings=demo_tests.settings_with_fieldbustier --noinput
[testenv:lints]
deps =
{[testenv]deps}
commands =
black --check -l120 django_fieldbustier
black --check -l120 demo_tests
flake8 --show-source django_fieldbustier
flake8 --show-source demo_tests
isort --atomic --check-only ./django_fieldbustier/
isort --atomic --check-only ./demo_tests/