-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.toml
More file actions
65 lines (60 loc) · 1.03 KB
/
Copy pathtox.toml
File metadata and controls
65 lines (60 loc) · 1.03 KB
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
requires = [
"tox>=4.23.2",
"tox-uv>=1.25",
"uv>=0.8.6",
]
env_list = [
"lint",
"typecheck",
"docs",
]
[env_run_base]
runner = "uv-venv-lock-runner"
[env.lint]
description = "run pre-commit linting"
skip_install = true
pass_env = [
"DISABLE_PRE_COMMIT_UV_PATCH",
]
set_env = [
{ FORCE_PRE_COMMIT_UV_PATCH = "1" },
]
dependency_groups = [ "lint" ]
commands = [
[
"pre-commit",
"run",
"--all-files",
{ replace = "posargs", extend = true },
],
]
[env.typecheck]
description = "typecheck Python code"
dependency_groups = [ "type" ]
commands = [
[ "mypy", "extensions" ],
]
[env.docs]
description = "build the documentation"
skip_install = true
dependency_groups = [ "docs" ]
commands = [
[
"zensical",
"build",
"--clean",
{ replace = "posargs", extend = true },
],
]
[env.autodocs]
description = "serve the documentation locally"
skip_install = true
dependency_groups = [ "docs" ]
commands = [
[
"zensical",
"serve",
"--open",
{ replace = "posargs", extend = true },
],
]