-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.toml
79 lines (72 loc) · 1.44 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
requires = [
"tox>=4.23.2",
]
env_list = [
"lint",
"type",
"3.12",
]
[env_run_base]
description = "Run tests under {env_name}."
package = "skip"
dependency_groups = ["tests"]
commands = [
["pytest", { replace = "posargs", extend = true }],
]
[env.lint]
description = "Run all linters."
dependency_groups = ["lint"]
commands = [
[
"pre-commit",
"run",
"--all-files",
"--show-diff-on-failure",
{ replace = "posargs", extend = true },
],
]
[env.type]
description = "Type check Python code."
base_python = ["3.12"]
dependency_groups = ["type"]
commands = [
["mypy", "hooks"],
]
[env.docs]
description = "Build the documentation."
base_python = ["3.12"]
dependency_groups = ["docs"]
commands = [
[
"mkdocs",
"build",
"--clean",
"--strict",
{ replace = "posargs", extend = true },
],
]
[env.autodocs]
description = "Serve the documentation locally."
base_python = ["3.12"]
dependency_groups = ["docs"]
commands = [
[
"mkdocs",
"serve",
"--strict",
"--open",
{ replace = "posargs", extend = true },
],
]
[env.changelog]
description = "Render news fragments to standard output."
dependency_groups = ["release"]
commands = [
["towncrier", "build", "--draft"],
]
[env.docstrings]
description = "Check documentation coverage."
dependency_groups = ["docstrings"]
commands = [
["interrogate", "--verbose"],
]