-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
232 lines (214 loc) · 5.43 KB
/
pyproject.toml
File metadata and controls
232 lines (214 loc) · 5.43 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
[build-system]
requires = ["setuptools>=61.0", "versioneer[toml]>=0.29"]
build-backend = "setuptools.build_meta"
[project]
name = "eval-protocol"
dynamic = ["version"]
authors = [
{name = "Fireworks AI", email = "info@fireworks.ai"},
]
description = "The official Python SDK for Eval Protocol (EP.) EP is an open protocol that standardizes how developers author evals for large language model (LLM) applications."
readme = "README.md"
license = "MIT" # SPDX expression
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"requests>=2.25.0",
"pydantic>=2.0.0",
"dataclasses-json>=0.5.7",
"uvicorn>=0.15.0",
"python-dotenv>=0.19.0",
"openai>=1.78.1",
"aiosqlite",
"aiohttp",
"mcp>=1.9.2",
"PyYAML>=5.0",
"hydra-core>=1.3.2",
"omegaconf>=2.3.0",
"httpx>=0.24.0",
"anthropic>=0.59.0",
"litellm<1.75.0",
"pytest>=6.0.0",
"pytest-asyncio>=0.21.0",
"peewee>=3.18.2",
"backoff>=2.2.0",
"fireworks-ai>=1.0.0a20,<2",
"questionary>=2.0.0",
# Dependencies for vendored tau2 package
"toml>=0.10.0",
"loguru>=0.6.0",
"docstring-parser>=0.15",
"rich>=12.0.0",
"psutil>=6.0.0",
"addict>=2.4.0",
"deepdiff>=6.0.0",
"websockets>=15.0.1",
"fastapi>=0.116.1",
]
[project.urls]
Homepage = "https://github.com/fireworks-ai/eval-protocol"
[project.optional-dependencies]
dev = [
"build",
"twine",
"pytest-httpserver",
"werkzeug>=2.0.0",
"ruff>=0.5.0",
"transformers>=4.0.0",
"pandas>=1.5.0",
"types-setuptools",
"types-requests",
"types-PyYAML",
"types-docker",
"versioneer>=0.20",
"openai>=1.78.1",
"pre-commit",
"e2b",
"pytest-cov",
"pytest-xdist",
"docker==7.1.0",
"ipykernel>=6.30.0",
"jupyter>=1.1.1",
"pip>=25.1.1",
"haikus==0.3.8",
"syrupy>=4.0.0",
"gymnasium>=1.2.0",
]
trl = [
"torch>=1.9",
"trl>=0.7.0",
"peft>=0.7.0",
"transformers>=4.0.0",
"accelerate>=0.28.0",
]
openevals = [
"openevals>=0.1.0",
]
box2d = [
"swig",
"gymnasium[box2d]>=0.29.0",
"Pillow",
]
langfuse = [
"langfuse>=2.0.0",
]
huggingface = [
# Keep in sync with core dependency to ensure compatibility with latest pyarrow
"datasets>=3.0.0",
"transformers>=4.0.0",
]
langsmith = [
"langsmith>=0.1.86",
]
bigquery = [
"google-cloud-bigquery>=3.0.0",
"google-auth>=2.0.0",
]
svgbench = [
"selenium>=4.0.0",
]
pydantic = [
"pydantic-ai>=1.0.2",
]
supabase = [
"supabase>=2.18.1",
]
chinook = [
"psycopg2-binary>=2.9.10",
]
langchain = [
"langchain-core>=0.3.0",
]
braintrust = [
"braintrust[otel]",
]
openenv = [
"openenv-core",
]
dspy = [
"dspy>=3.0.0",
]
klavis = [
"klavis>=2.18.0",
]
# Optional deps for LangGraph example/tests
langgraph = [
"langgraph>=0.6.7",
"langchain-core>=0.3.75",
]
langgraph_tools = [
"langgraph>=0.6.7",
"langchain>=0.3.0",
"langchain-fireworks>=0.3.0",
]
proxy = [
"redis>=5.0.0",
"langfuse>=2.0.0",
"uuid6>=2025.0.0",
]
[project.scripts]
fireworks-reward = "eval_protocol.cli:main"
eval-protocol = "eval_protocol.cli:main"
ep = "eval_protocol.cli:main"
[project.entry-points.pytest11]
eval_protocol = "eval_protocol.pytest.plugin"
[tool.setuptools.packages.find]
include = ["eval_protocol*", "development*", "vendor*"]
[tool.setuptools.package-data]
"eval_protocol" = ["../vite-app/dist/**/*"]
"eval_protocol.mcp_servers.tau2" = ["*.md", "tests/system_prompts/*.md"]
"eval_protocol.benchmarks" = ["data/*.jsonl"]
"vendor.tau2" = ["data/**/*.md"]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "eval_protocol/_version.py"
versionfile_build = "eval_protocol/_version.py"
tag_prefix = "v"
parentdir_prefix = "eval-protocol-"
### Black and isort removed; Ruff provides formatting and imports
[tool.uv.sources]
tau2 = { git = "https://github.com/sierra-research/tau2-bench.git" }
[dependency-groups]
dev = [
"basedpyright>=1.31.3",
"fastapi[standard]>=0.116.1",
"fastmcp>=2.10.6",
"haikus==0.3.8",
"pytest>=8.4.1",
]
[tool.ruff]
line-length = 119
target-version = "py310"
exclude = ["vite-app", "vendor", "local_evals"]
[tool.ruff.lint]
# Relax: only enforce core errors (E/F); drop W/I for now
select = ["E", "F"]
# Preserve current flake8 ignore behavior to minimize churn
ignore = ["E203", "E402", "E501", "F401"]
# Suppress noisy rules in tests/examples/vendor where readability patterns differ
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["F841", "E712", "E731", "F821"]
"examples/**/*.py" = ["F841", "E712", "E731", "F821"]
"eval_protocol/pytest/**/*.py" = ["F841", "E712", "E731", "F811"]
"vendor/**" = ["F841", "E712", "E731", "F811"]
"development/**/*.py" = ["F841", "E712", "E731"]
"eval_protocol/**/*.py" = ["F841", "F811", "E731", "E721"]
[tool.ruff.lint.isort]
known-first-party = ["eval_protocol"]
combine-as-imports = true
[tool.pyright]
typeCheckingMode = "basic" # Changed from "standard" to reduce memory usage
pythonVersion = "3.10"
include = ["eval_protocol", "tests"] # Reduced scope to just the main package
exclude = ["vite-app", "vendor", "examples", "development", "local_evals"]
# Ignore diagnostics for vendored generator code
ignore = ["versioneer.py"]
reportUnusedCallResult = "none"
# Memory optimization settings
useLibraryCodeForTypes = false
reportMissingImports = false
reportMissingTypeStubs = false