Skip to content

Commit 29bc903

Browse files
committed
Server and Client Implementation
Change-Id: I3544006ab5c8a14eab2b38d28abd82bc2fafa088
1 parent 3a49f81 commit 29bc903

31 files changed

+3227
-2553
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ __pycache__
66
.pytest_cache
77
.ruff_cache
88
.venv
9-
coverage.xml
9+
coverage.xml
10+
spec.json

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ convention = "google"
113113

114114
[lint.flake8-annotations]
115115
mypy-init-return = true
116-
allow-star-arg-any = false
116+
allow-star-arg-any = true
117117

118118
[lint.pep8-naming]
119119
ignore-names = ["test_*", "setUp", "tearDown", "mock_*"]

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@
33
"tests"
44
],
55
"python.testing.unittestEnabled": false,
6-
"python.testing.pytestEnabled": true
6+
"python.testing.pytestEnabled": true,
7+
"editor.formatOnSave": true,
8+
"[python]": {
9+
"editor.defaultFormatter": "charliermarsh.ruff",
10+
"editor.formatOnSave": true,
11+
"editor.codeActionsOnSave": {
12+
"source.organizeImports": "true"
13+
},
14+
},
15+
"ruff.importStrategy": "fromEnvironment"
716
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- TODO replace spec.json with the public url so we always get the latest version-->
66

77
```bash
8-
uv run datamodel-codegen --input ./spec.json --input-file-type jsonschema --output ./src/a2a/types.py --target-python-version 3.10 --output-model-type pydantic_v2.BaseModel --disable-timestamp --use-schema-description --use-union-operator --use-field-description --use-default --use-default-kwarg --use-one-literal-as-default --class-name A2A
8+
uv run datamodel-codegen --input ./spec.json --input-file-type jsonschema --output ./src/a2a/types.py --target-python-version 3.10 --output-model-type pydantic_v2.BaseModel --disable-timestamp --use-schema-description --use-union-operator --use-field-description --use-default --use-default-kwarg --use-one-literal-as-default --class-name A2A --use-standard-collections
99
```
1010

1111
## Running tests

0 commit comments

Comments
 (0)