Skip to content

Commit 29e61b3

Browse files
committed
fix: add ruff format post-generation step and apply formatting
- Add 'ruff format' to gen_proto.sh after buf generate - Apply formatting to a2a_pydantic.py (line-length wrapping for long Field() descriptions, consistent blank lines)
1 parent fb8a0fa commit 29e61b3

2 files changed

Lines changed: 576 additions & 201 deletions

File tree

scripts/gen_proto.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ go install github.com/protocgen/proto2pydantic@v0.5.2
88
# Run buf generate to regenerate protobuf code and OpenAPI spec
99
npx --yes @bufbuild/buf generate
1010

11+
# Format generated Pydantic models (line-length wrapping for long Field() descriptions)
12+
echo "Formatting generated Pydantic models..."
13+
ruff format src/a2a/types/a2a_pydantic.py
14+
1115
# The OpenAPI generator produces a file named like 'a2a.swagger.json' or similar.
1216
# We need it to be 'a2a.json' for the A2A SDK.
1317
# Find the generated json file in the output directory

0 commit comments

Comments
 (0)