Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
106 lines (88 loc) · 2.51 KB
/
Copy pathmise.toml
File metadata and controls
106 lines (88 loc) · 2.51 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
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
min_version = "2026.10.3"
[hooks]
postinstall = [
"uv sync",
"[ -e .git ] && prek --quiet install || { echo \"No git repository found.\"; }",
]
[tools]
betterleaks = "latest"
jactionlint = "latest"
"pipx:copier" = "latest"
prek = "latest"
taplo = "latest"
uv = "latest"
[tasks.audit]
description = "Run dependencies security audit"
raw_args = true
run = "uv run pysentry-rs"
[tasks.build]
description = "Build distribution package"
raw_args = true
run = "uv build"
[tasks.docs]
description = "Run documentation site locally"
depends = ["docs-build"]
run = 'uv run zensical serve -a "${usage_host:-localhost}:${usage_port:-8000}"'
usage = '''
flag "--host <host>" help="Bind IP" default="localhost"
arg "[port]" help="Bind port" default="8000"
'''
[tasks.docs-build]
description = "Build documentation site"
raw_args = true
run = "uv run zensical build -c"
[tasks.lint]
description = "Run all formatters and static checks"
raw_args = true
run = "prek run --all-files"
[tasks.lt]
description = "Run all formatters, static checks, and tests"
run = [{ task = "lint" }, { task = "test" }]
[tasks.release]
description = "Create and push a release tag (patch/minor/major)"
raw_args = true
run = "uv run bump-my-version bump -v"
[tasks.secretscan]
description = "Scan git history for secrets"
raw_args = true
run = "betterleaks git . --redact --config .betterleaks.toml"
[tasks.snapup]
description = "Update test snapshots"
raw_args = true
run = "uv run pytest --snapshot-update --numprocesses 0"
[tasks.test]
description = "Run tests"
raw_args = true
run = "uv run pytest"
[tasks.test-versions]
description = "Run tests across all Python versions"
run = [
{ task = "test-py311" },
{ task = "test-py312" },
{ task = "test-py313" },
{ task = "test-py314" },
]
[tasks.test-py311]
description = "Run tests using Python 3.11"
env = { UV_PROJECT_ENVIRONMENT = ".venv-py311" }
raw_args = true
run = "uv run --python 3.11 pytest"
[tasks.test-py312]
description = "Run tests using Python 3.12"
env = { UV_PROJECT_ENVIRONMENT = ".venv-py312" }
raw_args = true
run = "uv run --python 3.12 pytest"
[tasks.test-py313]
description = "Run tests using Python 3.13"
env = { UV_PROJECT_ENVIRONMENT = ".venv-py313" }
raw_args = true
run = "uv run --python 3.13 pytest"
[tasks.test-py314]
description = "Run tests using Python 3.14"
env = { UV_PROJECT_ENVIRONMENT = ".venv-py314" }
raw_args = true
run = "uv run --python 3.14 pytest"
[tasks.ti]
description = "Run tests with debug friendly options"
raw_args = true
run = "uv run pytest --numprocesses 0 --no-cov -vv"