-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (139 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
153 lines (139 loc) · 2.49 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "fastapi-openai-compat"
dynamic = ["version"]
description = "FastAPI router factory for OpenAI-compatible Chat Completions, Responses, and Files endpoints"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
keywords = ["haystack", "openai", "fastapi", "chat-completion", "responses-api", "streaming", "sse"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"fastapi",
"pydantic",
"python-multipart",
]
[project.optional-dependencies]
haystack = ["haystack-ai"]
[project.urls]
Source = "https://github.com/deepset-ai/fastapi-openai-compat"
Issues = "https://github.com/deepset-ai/fastapi-openai-compat/issues"
[tool.hatch.version]
source = "vcs"
[dependency-groups]
dev = [
"ruff",
"ty",
"pytest",
"pytest-asyncio",
"pytest-cov",
"httpx",
"openai",
"haystack-ai",
]
[tool.ty.environment]
python-version = "3.10"
[tool.ty.rules]
unused-ignore-comment = "warn"
[tool.ty.src]
exclude = ["tests/**/*"]
[tool.ruff]
line-length = 120
exclude = ["tests", "examples"]
[tool.ruff.lint]
isort.split-on-trailing-comma = false
flake8-tidy-imports.ban-relative-imports = "all"
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
"ASYNC",
"C4",
"C90",
"EXE",
"F",
"INT",
"PERF",
"PL",
"Q",
"SIM",
"SLOT",
"T10",
"W",
"YTT",
"D209",
"D205",
"D213",
"D419",
]
ignore = [
"FBT001",
"FBT002",
"N806",
"PERF203",
"PLC0415",
"S101",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
"B017",
"ARG001",
"ARG002",
"D102",
"D103",
"D205",
"FBT003",
"PLR2004",
"S101",
]
[tool.coverage.run]
source_pkgs = ["fastapi_openai_compat"]
branch = true
parallel = true
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
addopts = "--strict-markers"
asyncio_mode = "auto"
log_cli = true
markers = [
"unit: unit tests",
"integration: integration tests",
"asyncio: mark a test as an asyncio coroutine",
]