Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
258 lines (239 loc) · 8.53 KB
/
Copy pathpyproject.toml
File metadata and controls
258 lines (239 loc) · 8.53 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "verifiers"
authors = [
{name = "William Brown", email = "williambrown97@gmail.com"},
]
dynamic = ["version"] # derived from git tags via hatch-vcs
description = "Verifiers: Environments for LLM Reinforcement Learning"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11,<3.15"
keywords = ["reinforcement-learning", "llm", "rl", "grpo", "environments", "multi-turn", "agents", "agentic-rl", "tool-use", "train", "eval", "harness", "verifiers", "rlvr"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"anthropic>=1.0.0",
"numpy>=2.1.0",
"math-verify>=0.8.0",
"openai>=2.54.0,<3.0.0",
"prime-tunnel>=0.1.17",
"prime-sandboxes>=0.5.9",
"pydantic>=2.12.3",
"tenacity>=8.5.0",
"orjson>=3.10.0",
"httpx>=0.27.0",
"httpx2>=2.12.0",
"h11>=0.16.0",
"uvicorn>=0.52.0",
"aiohttp>=3.14.1",
"prime-pydantic-config[toml]>=0.4.3",
"loguru>=0.7.0",
"tomli-w>=1.0.0",
"renderers[multimodal]>=0.2.1.dev12",
"typing_extensions>=4.12.2",
"mcp==2.2.0",
]
[dependency-groups]
dev = [
"ruff>=0.16.0",
"pre-commit>=2.19.0",
"ty>=0.0.63",
"pytest>=7.0.0,<9.1.0",
"pytest-asyncio>=0.21.0",
"pytest-xdist>=3.8.0",
]
# V1 examples and support packages, resolved from their local sources below.
# Installed by default (tool.uv.default-groups) so the v1 CLIs (eval <id>, validate) run straight
# from this repo. The built-in tasksets/harnesses ship inside verifiers (verifiers/v1/...).
examples = [
"compact",
"gsm8k",
"glossary",
"deepwiki",
"wiki-search",
"code-golf",
"proposer-solver",
"reverse-text",
"color-codeword",
"wordle",
"openenv-wordle",
"alphabet-sort",
"scratchpad",
"kuhn-poker",
"interception",
"grayscale-interception",
"bash-interception",
"web-search-interception",
]
[project.optional-dependencies]
ta = [
"textarena==0.7.4",
"nltk>=3.9.2",
]
harbor = [
# Harbor currently publishes Python 3.12+ packages; keep core verifiers installable on 3.11.
"harbor==0.24.0 ; python_full_version >= '3.12'",
]
openenv = [
"openenv>=0.4.1",
]
[tool.uv]
constraint-dependencies = ["brotli>=1.2.1", "brotlicffi>=1.2.1.0"]
# gradio (via the openenv extra) caps pillow<13, which has unfixed advisories.
override-dependencies = ["pillow>=13.0.0"]
preview = true
required-version = ">=0.11.1"
exclude-newer = "7 days"
default-groups = ["dev", "examples"]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true
[tool.uv.sources]
compact = { path = "environments/compact", editable = true }
glossary = { path = "environments/glossary", editable = true }
deepwiki = { path = "environments/deepwiki", editable = true }
wiki-search = { path = "environments/wiki_search", editable = true }
gsm8k = { path = "environments/gsm8k", editable = true }
code-golf = { path = "environments/code_golf", editable = true }
proposer-solver = { path = "environments/proposer_solver", editable = true }
reverse-text = { path = "environments/reverse_text", editable = true }
wordle = { path = "environments/wordle", editable = true }
openenv-wordle = { path = "environments/openenv_wordle", editable = true }
color-codeword = { path = "environments/color_codeword", editable = true }
alphabet-sort = { path = "environments/alphabet_sort", editable = true }
scratchpad = { path = "environments/scratchpad", editable = true }
kuhn-poker = { path = "environments/kuhn_poker", editable = true }
interception = { path = "environments/interception", editable = true }
grayscale-interception = { path = "environments/grayscale_interception", editable = true }
bash-interception = { path = "environments/bash_interception", editable = true }
web-search-interception = { path = "environments/web_search_interception", editable = true }
[tool.uv.exclude-newer-package]
# Admit the reviewed CVE-2026-111497 fixes without exempting future uploads.
brotli = "2026-10-23T00:00:00Z"
brotlicffi = "2026-10-23T00:00:00Z"
# CA bundle: security fixes (e.g. 2026.10.19 for the eMudhra compromise) must not wait out the cooldown
certifi = false
# Bounded cutoffs for the explicitly requested tool upgrades.
# Full UTC timestamps: bare dates resolve to local-tz midnight and churn the
# lockfile across timezones.
harbor = "2026-10-08T00:00:00Z"
ruff = "2026-07-28T00:00:00Z"
ty = "2026-07-28T00:00:00Z"
# PrimeIntellect-published on PyPI (trusted publisher)
prime-tunnel = false
prime-sandboxes = false
prime-pydantic-config = false
renderers = false
[project.scripts]
vf-run = "verifiers.v1.cli.run:main"
vf-validate = "verifiers.v1.cli.validate:main"
vf-debug = "verifiers.v1.cli.debug:main"
# hatchling configuration
[tool.hatch.version]
source = "vcs"
# Resolve a version when building without VCS metadata (e.g. the prime-rl
# Docker build copies the source but not a usable .git for the submodule).
# Mirrors renderers; without it hatch-vcs raises LookupError and the editable
# build fails.
fallback-version = "0.0.0"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
git_describe_command = [
"git",
"describe",
"--tags",
"--long",
"--match",
"v[0-9]*.[0-9]*.[0-9]*",
"--exclude",
"*dev*",
]
[tool.hatch.build.targets.sdist]
include = [
"/verifiers",
"/tests",
"/README.md",
"/LICENSE",
]
exclude = [
"/wandb",
"/scratch",
"/environments",
]
[tool.hatch.build.targets.wheel]
packages = ["verifiers"]
[project.urls]
Homepage = "https://github.com/primeintellect-ai/verifiers"
Documentation = "https://github.com/primeintellect-ai/verifiers"
Repository = "https://github.com/primeintellect-ai/verifiers.git"
Issues = "https://github.com/primeintellect-ai/verifiers/issues"
[tool.ruff.lint.isort]
known-first-party = ["verifiers"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
pythonpath = ["tests/integration", "tests/integration/fixtures"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--tb=short",
"-ra",
"--quiet",
]
markers = [
# Integration grid axes — select subsets with `-m` (see tests/integration/grid.py). A mark
# is applied per axis, so it matches every cell touching that value on any axis.
"subprocess: integration cells touching the subprocess (host) runtime",
"docker: integration cells touching the docker runtime",
"prime: integration cells touching the prime runtime (real sandbox + tunnel)",
"service: integration cells with a tool server in a Compose service beside the harness",
"null: integration cells on the null harness",
"bash: integration cells on the bash harness",
"claude_code: integration cells on the claude-code harness",
"openclaw: integration cells on the OpenClaw harness",
"hermes_agent: integration cells on the hermes-agent harness",
"stirrup: integration cells on the Stirrup harness",
"deepseek: integration cells on the DeepSeek minimal harness",
"rlm: integration cells on the rlm harness",
"kimi_code: integration cells on the kimi-code harness",
"pi: integration cells on the pi harness",
"codex: integration cells on the codex harness",
"mini_swe_agent: integration cells on the mini-swe-agent harness",
"prime_agent: integration cells on the prime-agent harness",
"asyncio: marks tests as async tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::UserWarning:transformers.*",
"ignore:The 'repr' attribute.*:UserWarning:pydantic.*",
"ignore:The 'frozen' attribute.*:UserWarning:pydantic.*",
]
asyncio_mode = "auto"
norecursedirs = [".git", ".tox", "dist", "build", "*.egg", "__pycache__"]
[tool.ty.environment]
python-version = "3.13"
[tool.ty.rules]
unknown-argument = "warn"
redundant-cast = "ignore"
[tool.ty.src]
# verifiers/v1 is vendored (heavily typed upstream for a different checker); it is not part
# of verifiers' ty gate. environments/ are user-authored envs, also out of scope.
exclude = ["environments", "verifiers/v1"]