-
Notifications
You must be signed in to change notification settings - Fork 23
/
tox.ini
65 lines (58 loc) · 1.36 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 =
black
flake8
codecov
docs
{py38,py39}-django{32}-drf{312,313,314,315}
{py38,py39,py310,py311,py312}-django{42}-drf{314,315}
{py310,py311,py312}-django{50}-drf{314,315}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312,black,flake8,docs
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
commands = pytest {posargs}
deps =
django32: Django==3.2
django42: Django==4.2
django50: Django==5.0
drf312: djangorestframework==3.12
drf313: djangorestframework==3.13
drf314: djangorestframework==3.14
drf315: djangorestframework==3.15
extras = test
[testenv:black]
commands = black rest_framework_serializer_extensions tests --check --diff
skip_install = true
deps =
-crequirements-dev.txt
black
[testenv:flake8]
commands = flake8 rest_framework_serializer_extensions tests
skip_install = true
deps =
-crequirements-dev.txt
flake8
[testenv:isort]
commands = isort rest_framework_serializer_extensions tests setup.py --check-only
skip_install = true
deps =
-crequirements-dev.txt
isort
[testenv:codecov]
commands =
pytest --cov --cov-report=xml # Run the tests and generate coverage report
codecov -e TOX_ENV # Post coverage stats to codecov.io
extras =
test
coverage
[testenv:docs]
commands = mkdocs build
deps =
mkdocs>=1.5.3