-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
41 lines (35 loc) · 801 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
[tox]
skip_missing_interpreters = True
envlist =
py37-dj{2x,3x}
py38-dj{2x,3x,4x}
py39-dj{2x,3x,4x}
py310-dj{3x,4x}
flake8,isort,docs
[testenv]
commands = python runtests.py {posargs}
usedevelop = True
pip_pre = True
setenv = PYTHONDONTWRITEBYTECODE=1
passenv = DJANGO_SETTINGS_MODULE DATABASE_URL
deps =
-rrequirements-test.txt
dj2x: Django~=2.2.17
dj3x: Django~=3.2.9
dj4x: Django~=4.0.0
postgres: psycopg2
mysql: mysqlclient
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 enumchoicefield/
[testenv:isort]
basepython = python3
deps = isort
commands = isort --check-only --diff enumchoicefield/
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
changedir = docs
whitelist_externals = make
commands = make SPHINXOPTS=-nW clean html