-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
53 lines (43 loc) · 1.35 KB
/
Taskfile.yaml
File metadata and controls
53 lines (43 loc) · 1.35 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
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
---
version: '3'
silent: true
set: [pipefail]
shopt: [globstar]
vars:
UV_ARGS: '{{.UV_ARGS | default ""}}'
tasks:
generate-v0:
desc: "Generate v0.3 SlimRPC bindings from A2A proto"
cmds:
- buf generate --template buf.gen.v0.yaml
generate-v1:
desc: "Generate v1.0 SlimRPC bindings from A2A proto"
cmds:
- buf generate --template buf.gen.v1.yaml
generate:
desc: "Generate all SlimRPC bindings (v0.3 and v1.0)"
cmds:
- task: generate-v0
- task: generate-v1
fix-lint:
desc: "Lint and fix (where possible) code style and formatting issues using ruff and mypy"
cmds:
- uv run {{.UV_ARGS}} ruff check --fix
- uv run {{.UV_ARGS}} mypy --explicit-package-bases .
- uv run {{.UV_ARGS}} ruff format
lint:
desc: "Check code style, formatting, and type hints without making changes"
cmds:
- uv run {{.UV_ARGS}} ruff check
- uv run {{.UV_ARGS}} mypy --explicit-package-bases .
- uv run {{.UV_ARGS}} ruff format --check
test:
desc: "Run pytest test suite with optional test path specification"
cmds:
- uv run {{.UV_ARGS}} pytest -s {{.TESTS}}
packaging:
desc: "Build Python package and generate distribution artifacts"
cmds:
- uv build {{.UV_ARGS}}