-
-
Notifications
You must be signed in to change notification settings - Fork 625
/
tox.ini
59 lines (53 loc) · 1.08 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
[tox]
minversion = 1.9
envlist =
black
flake8
isort
py{39,310,311,312}-dj{41,42}
py{310,311,312}-dj{50}
py{310,311,312}-djmain
docs
[gh-actions]
python =
3.9: py39, black, flake8, isort
3.10: py310
3.11: py311
3.12: py312
[testenv]
deps =
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
coverage
djangorestframework
unidecode
setenv =
PYTHONWARNINGS=all
commands =
coverage run -m django test --settings=tests.settings {posargs}
coverage report
coverage xml
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
[testenv:black]
basepython = python3
skip_install = true
deps = black
commands = black --target-version=py38 --check --diff .
[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
commands = flake8
[testenv:isort]
basepython = python3
skip_install = true
deps = isort>=5.0.2
commands = isort --check-only --diff .
[testenv:docs]
deps = sphinx
commands = sphinx-build -n -W docs docs/_build