-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
47 lines (40 loc) · 918 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
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist =
format
lint
django{22,30,31,32,40}-postgresql
[flake8]
exclude =
__pycache__
*.pyc
*.pyo
max-complexity = 5
max-line-length = 88
select = C,E,F,W,B,B950
ignore = E501
[testenv]
changedir = {toxinidir}/test_project
passenv = POSTGRES_*
setenv =
HOME={env:HOME}
USER={env:USER}
DJANGO_SETTINGS_MODULE=test_project.settings
commands = {envpython} manage.py test --keepdb --noinput tests
deps =
django22: Django>=2.2,<2.2.99
django30: Django>=3.0,<3.0.99
django31: Django>=3.1,<3.1.99
django32: Django>=3.2,<3.2.99
django40: Django>=4.0,<4.0.99
postgresql: psycopg2-binary==2.8.*
[testenv:lint]
deps = flake8
changedir = {toxinidir}
commands = flake8 django_add_default_value
[testenv:format]
deps = black
changedir = {toxinidir}
commands =
- black django_add_default_value
- black test_project/tests
- black test_project/dadv