-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtox.ini
104 lines (93 loc) · 3.29 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[tox]
requires =
tox>=4
env_list =
flake8
isort
py{38,39,310,311,312,313}-starlite
py{38,39,310,311}-fastapi{092,093,094,095,096,097,098,099}-pydantic{1}
py{38,39,310,311}-fastapi{0100,0101}-pydantic{1,2}
py{311,312,313}-fastapi{0102,0103,0104,0105,0106,0107,0108,0109,0111,0112,0113,0114,0115}-pydantic{2}
[gh]
python =
3.13 = flake8, isort, py313-starlite, py313-fastapi{0102,0103,0104,0105,0106,0107,0108,0109,0111,0112,0113,0114,0115}-pydantic{2}
3.12 = flake8, isort, py312-starlite, py312-fastapi{0102,0103,0104,0105,0106,0107,0108,0109,0111,0112,0113,0114,0115}-pydantic{2}
3.11 = flake8, isort, py311-starlite, py311-fastapi{092,093,094,095,096,097,098,099}-pydantic{1}, py311-fastapi{0100,0101}-pydantic{1,2}, py311-fastapi{0102,0103,0104,0105,0106,0107,0108,0109,0111,0112,0113,0114,0115}-pydantic{2}
3.10 = py310-starlite, py310-fastapi{092,093,094,095,096,097,098,099}-pydantic{1}, py310-fastapi{0100,0101}-pydantic{1,2}
3.9 = py39-starlite, py39-fastapi{092,093,094,095,096,097,098,099}-pydantic{1}, py39-fastapi{0100,0101}-pydantic{1}
3.8 = py38-starlite, py38-fastapi{092,093,094,095,096,097,098,099}-pydantic{1}, py38-fastapi{0100,0101}-pydantic{1}
[base]
deps =
pytest>=8.3.4
pytest-asyncio>=0.24.0
pytest-env>=1.1.5
pytest-mock>=3.14.0
moto[sqs]>=4.2.14,<5
mypy>=0.971
pytest-mypy>=0.9.1
.[aws]
.[google]
.[otel]
opentelemetry-test-utils>=0.33b0
opentelemetry-sdk>=1.12.0
httpx>=0.23.0,<0.28
[testenv:flake8]
description = run flake8
deps = flake8>=3.9.2
commands =
flake8 ./fastapi_events ./tests
[testenv:isort]
description = run isort
deps = isort>=5.10.1
commands =
isort --check-only ./fastapi_events ./tests
[testenv:py{38,39,310,311,312}-starlite]
description : run test for starlite
deps =
{[base]deps}
pydantic>=1.0,<2.0
starlite>=1.38.0,<=2
commands =
pytest tests/middleware/test_starlite.py
[testenv:py{313}-starlite]
description : run test for starlite
deps =
; see: https://github.com/jcrist/msgspec/issues/698
git+https://github.com/jcrist/msgspec.git@main
{[base]deps}
pydantic>=1.0,<2.0
starlite>=1.38.0,<=2
commands =
pytest tests/middleware/test_starlite.py
[testenv]
description = run pytest for fastapi
deps =
{[base]deps}
fastapi092: fastapi>=0.92,<0.93
fastapi093: fastapi>=0.93,<0.94
fastapi094: fastapi>=0.94,<0.95
fastapi095: fastapi>=0.95,<0.96
fastapi096: fastapi>=0.96,<0.97
fastapi097: fastapi>=0.97,<0.98
fastapi098: fastapi>=0.98,<0.99
fastapi099: fastapi>=0.99,<0.100
fastapi0100: fastapi>=0.100,<0.101
fastapi0101: fastapi>=0.101,<0.102
fastapi0102: fastapi>=0.102,<0.103
fastapi0103: fastapi>=0.103,<0.104
fastapi0104: fastapi>=0.104,<0.105
fastapi0105: fastapi>=0.105,<0.106
fastapi0106: fastapi>=0.106,<0.107
fastapi0107: fastapi>=0.107,<0.108
fastapi0108: fastapi>=0.108,<0.109
fastapi0109: fastapi>=0.109,<0.110
fastapi0110: fastapi>=0.110,<0.111
fastapi0111: fastapi>=0.111,<0.112
fastapi0112: fastapi>=0.112,<0.113
fastapi0113: fastapi>=0.113,<0.114
fastapi0114: fastapi>=0.114,<0.115
fastapi0115: fastapi>=0.115
pydantic1: pydantic[email]>=1.0,<2
pydantic2: pydantic[email]>=2.0,<3
commands =
pytest tests --ignore-glob=*starlite*