forked from jazzband/django-taggit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (51 loc) · 1.04 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
[tox]
minversion = 1.9
envlist =
black
flake8
isort
py{37,38,39,310}-dj32
py{38,39,310,311}-dj{41,42}
py{310,311}-djmain
docs
[gh-actions]
python =
3.7: py37
3.8: py38, black, flake8, isort
3.9: py39
3.10: py310
3.11: py311
[testenv]
deps =
dj32: Django>=3.2,<3.3
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
djmain: https://github.com/django/django/archive/main.tar.gz
coverage
djangorestframework
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=py37 --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