-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
56 lines (52 loc) · 1.2 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
[tox]
requires =
tox>=4.2
env_list =
py313-django40-drf{315, 314}
py313-django50-drf{315, 314}
py313-django51-drf{315, 314}
py312-django40-drf{315, 314}
py312-django50-drf{315, 314}
py312-django51-drf{315, 314}
py311-django40-drf{315, 314}
py311-django50-drf{315, 314}
py311-django51-drf{315, 314}
py310-django40-drf{315, 314}
py310-django50-drf{315, 314}
py310-django51-drf{315, 314}
py39-django40-drf{315, 314}
[testenv]
description = Run Pytest tests with multiple django and drf versions
deps =
pytest
pytest-cov
pytest-django
django40: django<5.0,>=4.2
django50: django<5.1,>=5
django51: django<5.2,>=5.1
drf314: djangorestframework<3.15,>=3.14
drf315: djangorestframework<3.16,>=3.15
commands =
pytest --cov=response_shaper --cov-report=html
develop = True
[testenv:bandit]
description = Run security checks
skip_install = true
deps =
bandit
commands =
bandit -r response_shaper
[testenv:pre-commit]
description = Run pre-commit hooks
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313