-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
69 lines (59 loc) · 1.32 KB
/
mise.toml
File metadata and controls
69 lines (59 loc) · 1.32 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
[tools]
uv = "latest"
[env]
CPLUS_INCLUDE_PATH = "{{config_root}}/src/scloop/data"
[settings]
python.uv_venv_auto = true
[tasks.clean]
run = [
"uv cache clean",
"uv cache prune",
"rm -rf .venv",
"rm -rf dist",
"rm -rf ./src/scloop.egg-info",
"rm -f uv.lock",
"find ./src -name '*.so' -type f -delete",
]
[tasks.sync_full]
run = [
"uv cache clean --force",
"uv cache prune --force",
"rm -rf .venv",
"rm -rf dist",
"rm -rf ./src/scloop.egg-info",
"rm -f uv.lock",
"find ./src -name '*.so' -type f -delete",
"make build-m4ri",
"make build-sanity",
"uv sync"
]
[tasks.sync]
run = [
"uv sync",
]
[tasks.format]
run = [
"pyproject-fmt pyproject.toml || true",
"uv run ruff format",
"uv run ruff check --fix"
]
[tasks.info]
run = [
"uv --version",
"python --version",
"echo $CPLUS_INCLUDE_PATH",
"tree -L 3 -I '__pycache__|include|pkgconfig|#*#|*.a|*.la|*.pyc|*.so|archive|m4ri|*~' src/scloop/"
]
[tasks.bump]
run = [
"uv version --bump patch",
"git add uv.lock pyproject.toml",
'git commit -m "new tag"',
"git tag v$(uv version --short)",
"git push --tags",
"git push"
]
[tasks.lint]
run = "pyright src || uv run ruff check || uv run ty check"
[tasks.kernel]
run = "uv run ipython kernel install --name 'scloop' --user"