-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (39 loc) · 1.02 KB
/
Taskfile.yml
File metadata and controls
47 lines (39 loc) · 1.02 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
version: "3"
tasks:
generate:
desc: "Regenerate CDP types from protocol definitions"
cmds:
- uv run python -m cdp_use.generator
build:
desc: "Build the distribution package"
cmds:
- uv build
install:
desc: "Install package in development mode"
cmds:
- uv pip install -e .
lint:
desc: "Run ruff linter"
cmds:
- uv run ruff check cdp_use/ --statistics
format:
desc: "Format code with ruff"
cmds:
- uv run ruff format cdp_use/
format-json:
desc: "Format JSON protocol files"
cmds:
- |
for file in cdp_use/custom_protocols/*.json; do
[ -f "$file" ] || continue
python3 -m json.tool "$file" "$file.tmp" && mv "$file.tmp" "$file"
done
example:
desc: "Run the simple example"
cmds:
- uv run python simple.py
clean:
desc: "Clean generated files and build artifacts"
cmds:
- rm -rf dist/ build/ *.egg-info
- find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true