@@ -246,22 +246,47 @@ preview = true
246246
247247[tool .tox ]
248248min_version = " 4"
249- env_list = [" 3.13" , " 3.12" , " 3.11" , " 3.10" ]
249+ requires = [" tox-uv>=1" ]
250+ env_list = [" lint" , " test" , " pyright" , " 3.13" , " 3.12" , " 3.11" , " 3.10" ]
250251
251252 [tool .tox .env_run_base ]
252253 description = " Run stubtest under {base_python}"
253- allowlist_externals = [" uv" ]
254254 commands = [
255- [
256- " uv" ,
257- " run" ,
258- " --quiet" ,
259- " --python={base_python}" ,
260- " tool/stubtest.py" ,
261- # "--concise",
262- ],
255+ [" uv" , " run" , " -q" , " -p={base_python}" , " --active" , " tool/stubtest.py" , " --concise" ],
263256 ]
264257
258+ [tool .tox .env .pre-commit ]
259+ description = " pre-commit"
260+ skip_install = true
261+ commands = [[" uvx" , " pre-commit" , " run" , " -a" , " --show-diff-on-failure" ]]
262+
263+ [tool .tox .env .lint ]
264+ description = " lint"
265+ runner = " uv-venv-lock-runner"
266+ dependency_groups = [" dev" ]
267+ commands = [
268+ [" ruff" , " check" , " --show-fixes" ],
269+ [" ruff" , " format" , " --check" ],
270+ ]
271+
272+ [tool .tox .env .test ]
273+ description = " pytest"
274+ runner = " uv-venv-lock-runner"
275+ dependency_groups = [" dev" , " numpy" ]
276+ commands = [[" pytest" ]]
277+
278+ [tool .tox .env .pyright ]
279+ description = " basedpyright"
280+ runner = " uv-venv-lock-runner"
281+ dependency_groups = [" dev" ]
282+ commands = [[" basedpyright" , " --threads=3" ]]
283+
284+ [tool .tox .env .mypy ]
285+ description = " mypy"
286+ runner = " uv-venv-lock-runner"
287+ dependency_groups = [" dev" , " orjson" ]
288+ commands = [[" mypy" , {replace = " posargs" , default = [" ." ], extend = true }]]
289+
265290
266291[tool .typos .default ]
267292extend-ignore-identifiers-re = [' ND|nd' ]
0 commit comments