-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
100 lines (76 loc) · 1.77 KB
/
Copy pathmise.toml
File metadata and controls
100 lines (76 loc) · 1.77 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
[tools]
python = "3.14"
uv = "latest"
###### Shell aliases ######
[shell_alias]
m = "mise run"
i = "mise run install"
u = "mise run update"
l = "mise run lint"
t = "mise run test"
d = "mise run local-docs"
ll = "ls -l"
la = "ls -a"
g = "git"
gco = "git checkout"
gb = "git branch"
gd = "git diff"
gs = "git status"
ga = "git add"
gc = "git commit"
gp = "git push"
###### Settings ######
[settings]
python.uv_venv_auto = "create|source"
###### Setup ######
[tasks.dev]
description = "Setup the dev environment"
depends = ["precommit", "install"]
[tasks.precommit]
description = "Install pre-commit hooks"
run = "pre-commit autoupdate && pre-commit install"
[tasks.install]
description = "Install dependencies"
alias = "i"
run = "uv sync"
[tasks.update]
description = "Update dependencies"
alias = "u"
run = "uv lock --upgrade"
##### Common Tasks #####
[tasks.lint]
description = "Lint and format code"
alias = "l"
run = "ruff check --fix . && ruff format ."
[tasks.test]
description = "Run tests with coverage"
alias = "t"
run = "coverage run -m pytest . && coverage report -m && coverage xml"
[tasks.all]
description = "Full setup from scratch"
depends = ["install", "lint", "test"]
##### Docs #####
[tasks.install-docs]
description = "Install documentation dependencies"
run = "uv sync --group docs"
hide = true
[tasks.docs]
description = "Build and deploy documentation to GitHub pages"
depends = ["install-docs"]
run = "mkdocs gh-deploy --force"
[tasks.local-docs]
description = "Serve documentation on a local server"
alias = "d"
depends = ["install-docs"]
run = "mkdocs serve"
###### Scripts ######
[tasks.app]
description = "Run the app"
alias = "a"
run = "app"
[tasks.rename]
description = "Rename project (run once)"
alias = "r"
run = "rename"
[tasks.project]
alias = ["rename", "p"]