-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
103 lines (84 loc) · 1.88 KB
/
Taskfile.yaml
File metadata and controls
103 lines (84 loc) · 1.88 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
version: "3"
tasks:
activate:
desc: Activate a Hatch-managed development shell.
cmds:
- hatch shell
clean:
desc: Remove Python caches and generated docs artifacts.
cmds:
- hatch run clean_pyc
- hatch run clean_pyi
- hatch run clean_pycache
- hatch run docs:clean
lint:
desc: Run Ruff lint checks.
cmds:
- hatch run lint
format:
desc: Format and auto-fix with Ruff.
cmds:
- hatch run format
ty:
desc: Run ty type checking (legacy alias).
cmds:
- task: typecheck
typecheck:
desc: Run ty type checks.
cmds:
- hatch run check_types
test:
desc: Run test suite.
cmds:
- hatch test {{ .ARGS }}
coverage:
desc: Run tests with coverage output.
cmds:
- hatch test --cover {{ .ARGS }}
docs:
desc: Build documentation site.
cmds:
- hatch run docs:build
"docs:serve":
desc: Serve documentation with live refresh.
cmds:
- hatch run docs:serve
check:
desc: Run CI-grade local checks (lint + typecheck + tests).
cmds:
- task: lint
- task: typecheck
- task: test
# Compatibility aliases for existing workflows
docs_prepare:
desc: Prepare docs source expansion.
cmds:
- hatch run docs:prepare
docs_clean:
desc: Clean docs artifacts only.
cmds:
- hatch run docs:clean
docs_build:
desc: Build docs (legacy alias).
cmds:
- task: docs
docs_serve:
desc: Serve docs (legacy alias).
cmds:
- task: "docs:serve"
build:
desc: Build docs (legacy alias).
cmds:
- task: docs
serve:
desc: Serve docs (legacy alias).
cmds:
- task: "docs:serve"
serve_dev:
desc: Serve docs in development mode.
cmds:
- hatch run docs:dev
release_checks:
desc: Run full quality checks (legacy alias).
cmds:
- task: check