forked from peeringdb/peeringdb-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
48 lines (44 loc) · 940 Bytes
/
Copy pathtox.ini
File metadata and controls
48 lines (44 loc) · 940 Bytes
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
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312,mypy
3.13: py313
3.14: py314
[pytest]
norecursedirs = .facsimile .tox data gen
[tox]
envlist =
py{310,311,312}-django42
py{310,311,312,313,314}-django52
py{312,313,314}-django60
mypy
isolated_build = True
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
deps =
django42: Django>=4.2,<4.3
django52: Django>=5.2,<5.3
django60: Django>=6.0,<6.1
runner = uv-venv-lock-runner
extras =
commands =
pytest -vv --cov="{toxinidir}/src" --cov-report=term-missing --cov-report=xml tests/
[testenv:mypy]
deps =
mypy>=0.950
types-requests
types-PyYAML
# Core dependencies needed for mypy checking
django>=4.2
django_peeringdb>=3.1.0
confu>=1
munge[toml,tomlkit,yaml]>=1.2.0
twentyc.rpc>=1
pyyaml>=6.0.1
httpx>=0.24.1
extras =
commands =
mypy src/ tests/type_checking/