-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
84 lines (71 loc) · 1.84 KB
/
Taskfile.yaml
File metadata and controls
84 lines (71 loc) · 1.84 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
version: '3'
tasks:
sync:
desc: "Sync all extras and packages for the dev group"
cmds:
- uv sync --all-extras --all-packages --group dev
format:
aliases: [fmt]
desc: "Run ruff format and check with fix"
cmds:
- uv run ruff format
- uv run ruff check --fix
lint:
desc: "Run ruff check"
cmds:
- uv run ruff check
pyright:
desc: "Run pyright"
cmds:
- uv run pyright
tests:
aliases: [test]
desc: "Run pytest"
cmds:
- uv run pytest
coverage:
desc: "Run coverage tests and reports"
cmds:
- uv run coverage run -m pytest
- uv run coverage xml -o coverage.xml
- uv run coverage report -m --fail-under=95
snapshots-fix:
desc: "Run pytest with inline-snapshot fix"
cmds:
- uv run pytest --inline-snapshot=fix
snapshots-create:
desc: "Run pytest with inline-snapshot create"
cmds:
- uv run pytest --inline-snapshot=create
old-version-tests:
desc: "Run tests with Python 3.9"
env:
UV_PROJECT_ENVIRONMENT: ".venv_39"
cmds:
- uv run --python 3.9 -m pytest
- uv run --python 3.9 -m pyright .
build-docs:
desc: "Build documentation with mkdocs"
cmds:
- uv run mkdocs build
serve-docs:
desc: "Serve documentation with mkdocs"
cmds:
- uv run mkdocs serve --dev-addr 0.0.0.0:8000
deploy-docs:
desc: "Deploy documentation to GitHub Pages with mkdocs"
cmds:
- uv run mkdocs gh-deploy --force --verbose
protogen:
desc: "Generate protobuf"
vars:
OUT_DIR: src
cmds:
- >
uv run -m grpc_tools.protoc \
--python_out={{.OUT_DIR}} \
--mypy_out={{.OUT_DIR}} \
--grpc_python_out={{.OUT_DIR}} \
--mypy_grpc_out={{.OUT_DIR}} \
-I proto \
proto/redpanda/runtime/v1alpha1/*.proto