-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.toml
56 lines (51 loc) · 1.3 KB
/
tox.toml
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
min_version = "4"
requires = ["tox-uv>=1"]
env_list = ["lint", "pyright", "mypy", "3.13", "3.12", "3.11", "3.10"]
[env_run_base]
description = "stubtest with {base_python}"
runner = "uv-venv-lock-runner"
dependency_groups = ["type"]
uv_sync_flags = ["--no-editable"]
commands = [
[
"stubtest",
"--ignore-unused-allowlist",
"--allowlist=.mypyignore",
"--mypy-config-file=pyproject.toml",
"--concise",
{replace = "posargs", default = ["scipy"], extend = true},
],
]
[env.pre-commit]
description = "pre-commit"
skip_install = true
deps = ["pre-commit-uv>=4.1.4"]
allowlist_externals = ["pre-commit"]
commands = [["pre-commit", "run", "--all-files"]]
[env.lint]
description = "lint"
runner = "uv-venv-lock-runner"
dependency_groups = ["lint"]
commands = [
["repo-review", "."],
["ruff", "check", "--show-fixes"],
["ruff", "format", "--check"],
]
[env.pyright]
description = "basedpyright"
runner = "uv-venv-lock-runner"
dependency_groups = ["type"]
commands = [["basedpyright"]]
[env.mypy]
description = "basedmypy"
runner = "uv-venv-lock-runner"
dependency_groups = ["type"]
commands = [
[
"mypy",
"--tb",
"--hide-error-context",
"--hide-error-code-links",
{replace = "posargs", default = ["."], extend = true},
]
]