forked from django-extensions/django-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
116 lines (104 loc) · 2.94 KB
/
tox.ini
File metadata and controls
116 lines (104 loc) · 2.94 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Tox (https://tox.wiki/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
precommit
safety
mypy
{py37,py38,py39,py310,py311}-flake8
{py36,py37,py38,py39,py310,pypy}-dj32
{py38,py39,py310,pypy}-dj40
{py38,py39,py310,py311,pypy}-dj41
{py38,py39,py310,py311,pypy}-dj42
{py38,py39,py310,pypy}-djmaster
py310-dj32-postgres
py310-dj40-postgres
py310-dj41-postgres
py310-dj42-postgres
py310-dj42-postgres3
py310-dj32-mysql
py310-dj40-mysql
py310-dj41-mysql
py310-dj42-mysql
py310-djmaster-postgres
py310-djmaster-postgres3
[testenv]
commands = make test
allowlist_externals = make
passenv =
DJANGO_EXTENSIONS_DATABASE_ENGINE
DJANGO_EXTENSIONS_DATABASE_NAME
DJANGO_EXTENSIONS_DATABASE_USER
DJANGO_EXTENSIONS_DATABASE_PASSWORD
DJANGO_EXTENSIONS_DATABASE_HOST
DJANGO_EXTENSIONS_DATABASE_PORT
setenv =
postgres: DJANGO_EXTENSIONS_DATABASE_ENGINE = {env:DJANGO_EXTENSIONS_DATABASE_ENGINE:django.db.backends.postgresql}
postgres: DJANGO_EXTENSIONS_DATABASE_NAME = {env:DJANGO_EXTENSIONS_DATABASE_NAME:django_extensions_test}
postgres3: DJANGO_EXTENSIONS_DATABASE_ENGINE = {env:DJANGO_EXTENSIONS_DATABASE_ENGINE:django.db.backends.postgresql}
postgres3: DJANGO_EXTENSIONS_DATABASE_NAME = {env:DJANGO_EXTENSIONS_DATABASE_NAME:django_extensions_test}
mysql: DJANGO_EXTENSIONS_DATABASE_ENGINE = {env:DJANGO_EXTENSIONS_DATABASE_ENGINE:django.db.backends.mysql}
mysql: DJANGO_EXTENSIONS_DATABASE_NAME = {env:DJANGO_EXTENSIONS_DATABASE_NAME:django_extensions_test}
deps =
pip >= 21.1
-rrequirements-dev.txt
dj32: Django>=3.2,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
djmaster: https://github.com/django/django/archive/refs/heads/main.zip
postgres: psycopg2-binary
postgres3: psycopg[binary,pool]
mysql: mysqlclient
[testenv:precommit]
deps =
pip >= 21.1
pre-commit
commands = pre-commit run -a
[testenv:safety]
deps =
pip >= 21.1
safety
commands = safety check --full-report
[testenv:mypy]
allowlist_externals=
echo
deps =
pip >= 21.1
mypy
types-requests
types-boto
types-PyYAML
types-Werkzeug
-rrequirements-dev.txt
commands = mypy --ignore-missing-imports django_extensions
[testenv:compile-catalog]
allowlist_externals =
make
deps =
pip >= 21.1
Babel
commands =
make compile-catalog
[testenv:py37-flake8]
deps =
pip >= 21.1
flake8
commands = flake8 django_extensions tests
[testenv:py38-flake8]
deps =
pip >= 21.1
flake8
commands = flake8 django_extensions tests
[testenv:py39-flake8]
deps =
pip >= 21.1
flake8
commands = flake8 django_extensions tests
[testenv:py310-flake8]
deps =
pip >= 21.1
flake8
commands = flake8 django_extensions tests