-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
72 lines (65 loc) · 1.31 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
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
envlist =
py{35,36,37,38,39}-django{22,30,31}-{mysql,oracle,postgres,sqlite},
flake8,isort,dist
[gh-actions]
python =
3.5: py35-django22
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[gh-actions:env]
DB_BACKEND =
mysql: mysql
oracle: oracle
postgresql: postgres
sqlite3: sqlite
[testenv]
deps =
coverage
coveralls
# Prevent upgrading distutils to a version that deprecates LooseVersion used by Django
setuptools<=59.5.0
django22: Django~=2.2.0
django30: Django~=3.0.0
django31: Django~=3.1.0
mysql: mysqlclient
oracle: cx_Oracle
postgres: psycopg2~=2.8.6
commands =
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run manage.py test {posargs}
coverage combine
coveralls --rcfile=setup.cfg
envdir={toxworkdir}/v/{envname}
passenv =
COVERALLS_REPO_TOKEN
DB_BACKEND
DB_NAME
DB_USER
DB_PASSWORD
DB_HOST
DB_PORT
GITHUB_*
usedevelop = True
[testenv:black]
commands =
black -l 99 -t py35 --check --diff {posargs}
deps =
black
[testenv:flake8]
commands =
flake8 {posargs}
deps =
flake8
[testenv:isort]
commands =
isort --check-only --diff {posargs}
deps =
isort
[testenv:dist]
commands =
twine check .tox/dist/*
deps =
twine
usedevelop = False