-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.toml
41 lines (37 loc) · 880 Bytes
/
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
requires = [
"tox>=4.21",
"tox-uv",
]
env_list = [
"lint", "type",
"3.13", "3.12", "3.11", "3.10", "3.9", "3.8",
]
[gh.python]
"3.13" = ["3.13", "lint", "type"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]
"3.8" = ["3.8"]
[env_run_base]
package = "wheel"
wheel_build_env = ".pkg"
extras = ["test"]
commands = [
["pytest", "-p", "no:faulthandler", { replace = "posargs", default = ["tests"], extend = true }],
]
[env.lint]
package = "skip"
deps = [
"ruff",
]
commands = [
["ruff", "format", "--check", { replace = "posargs", default = ["."], extend = true }],
["ruff", "check", "--no-fix", { replace = "posargs", default = ["."], extend = true }],
]
[env.type]
package = "wheel"
extras = ["type"]
commands = [
["mypy", "--install-types", "--non-interactive", { replace = "posargs", default = [], extend = true }],
]