-
Notifications
You must be signed in to change notification settings - Fork 583
/
Copy pathtox.ini
66 lines (59 loc) · 1.32 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
[tox]
envlist =
flake8
isort
docs
frontend
py{38,39,310}-dj32-{swap,noswap}
py{38,39,310,311}-{dj40,dj41,dj42}-{swap,noswap}
py{310,311}-{dj50}-{swap,noswap}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
skip_missing_interpreters=True
[testenv]
deps =
dj32: -r tests/requirements/django-3.2.txt
dj40: -r tests/requirements/django-4.0.txt
dj41: -r tests/requirements/django-4.1.txt
dj42: -r tests/requirements/django-4.2.txt
dj50: -r tests/requirements/django-5.0.txt
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
setenv =
swap: CUSTOM_IMAGE=custom_image.Image
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort -c --df filer
skip_install = true
[testenv:docs]
changedir = docs
deps =
sphinx
sphinx-autobuild
sphinxcontrib-spelling
sphinx-copybutton
sphinxext-opengraph
sphinxcontrib-images
sphinxcontrib-inlinesyntaxhighlight
furo
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
# sphinx-build -W -b html -d build/doctrees . build/html
skip_install = true
[testenv:frontend]
allowlist_externals =
nvm
npm
gulp
commands =
gulp ci