-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
65 lines (59 loc) · 1.28 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
[tox]
envlist =
py39-django{22,30,31,40}
py{37,38,39,310}-django32,
flake8,doclint
[testenv]
usedevelop = True
pip_pre = False
extras = dev
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
serve: python3
docs: python3.10
doclint: python3.10
deps =
{env:TOX_EXTRA:}
coverage
-rrequirements-test.pip
# Keeping it here, because we'll probably widen our Django version tests.
django22: Django==2.2.*
django30: Django==3.0.*
django31: Django==3.1.*
django32: Django==3.2.*
django40: Django==4.0.*
serve: Django
commands =
pytest {posargs}
[testenv:flake8]
basepython = python3.6
commands =
flake8 demo
flake8 agnocomplete
deps = flake8
[testenv:doclint]
skip_install = True
usedevelop = False
changedir = docs/
deps = Sphinx
whitelist_externals = make
commands =
make clean html SPHINXOPTS='-W'
python doc_checker.py
# Please do not run this job in non-interactive (CI) mode!
[testenv:serve]
changedir = demo/
commands =
python manage.py migrate --noinput
python manage.py loaddata fixtures/initial_data.yaml
python manage.py runserver {posargs}
# Documentation build job
[testenv:docs]
changedir = docs/
deps = Sphinx
whitelist_externals = make
commands =
make html