forked from 3YOURMIND/django-add-default-value
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.5 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
[tox]
envlist =
format
lint
py{34,35,36,37}-django{11,20,21,22}-{pgsql,mysql}
py{35,36,37}-django21-{pgsql,mysql}
py{35,36,37,38,39}-django22-{pgsql,mysql,crdb}
py{36,37,38,39}-django{30,31,32}-{pgsql,mysql,crdb}
py27-django11-{pgsql,mysql}
[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 = PGSQL_* MYSQL_* CRDB_*
setenv =
HOME={env:HOME}
USER={env:USER}
pgsql: DJANGO_SETTINGS_MODULE=test_project.settings_pgsql
mysql: DJANGO_SETTINGS_MODULE=test_project.settings_mysql
crdb: DJANGO_SETTINGS_MODULE=test_project.settings_crdb
commands = {envpython} manage.py test tests
deps =
django11: Django>=1.11,<2
django20: Django>=2.0,<2.0.99
django21: Django>=2.1,<2.1.99
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
mysql: mysqlclient>=2.0.1
pgsql,crdb: psycopg2-binary
django22-crdb: django-cockroachdb>=2.2,<2.2.99
django30-crdb: django-cockroachdb>=3.0,<3.0.99
django31-crdb: django-cockroachdb>=3.1,<3.1.99
django32-crdb: django-cockroachdb>=3.2,<3.2.99
[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