-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.toml
108 lines (101 loc) · 1.71 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
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
requires = [
"tox>=4.23.2",
"tox-uv>=1.25",
]
env_list = [
"lint",
"type",
"type-tests",
"docstrings",
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
]
labels.tests = [
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
]
[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 pre-commit hooks"
pass_env = [
"DISABLE_PRE_COMMIT_UV_PATCH",
]
set_env = [
{ FORCE_PRE_COMMIT_UV_PATCH = "1" },
]
dependency_groups = [ "lint" ]
commands = [
[
"pre-commit",
"run",
"--all-files",
"--show-diff-on-failure",
{ replace = "posargs", extend = true },
],
]
[env.type]
description = "Type check Cookiecutter hooks"
base_python = [ "3.13" ]
dependency_groups = [ "type" ]
commands = [
[ "mypy", "hooks" ],
]
[env.type-tests]
description = "Type check Python tests"
base_python = [ "3.13" ]
dependency_groups = [
"tests",
"type",
]
commands = [
[ "mypy", "tests" ],
]
[env.docstrings]
description = "Check docstring coverage"
skip_install = true
dependency_groups = [ "docstrings" ]
commands = [
[
"interrogate",
"--verbose",
{ replace = "posargs", extend = true },
],
]
[env.docs]
description = "Generate documentation"
base_python = [ "3.13" ]
dependency_groups = [ "docs" ]
commands = [
[
"mkdocs",
"build",
"--clean",
"--strict",
{ replace = "posargs", extend = true },
],
]
[env.autodocs]
description = "Serve documentation locally"
base_python = [ "3.13" ]
dependency_groups = [ "docs" ]
commands = [
[
"mkdocs",
"serve",
"--strict",
"--open",
{ replace = "posargs", extend = true },
],
]