Skip to content

feat: Add agent card as a route in rest adapter #1432

feat: Add agent card as a route in rest adapter

feat: Add agent card as a route in rest adapter #1432

Triggered via pull request August 12, 2025 19:50
@holtskinnerholtskinner
synchronize #386
ae_routes
Status Failure
Total duration 51s
Artifacts

linter.yaml

on: pull_request
Lint Code Base
49s
Lint Code Base
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 6 notices
Lint Code Base
Process completed with exit code 1.
Ruff (TRY301): src/a2a/server/request_handlers/jsonrpc_handler.py#L190
src/a2a/server/request_handlers/jsonrpc_handler.py:190:13: TRY301 Abstract `raise` to an inner function
Ruff (FIX002): src/a2a/server/request_handlers/jsonrpc_handler.py#L100
src/a2a/server/request_handlers/jsonrpc_handler.py:100:11: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/server/request_handlers/default_request_handler.py#L310
src/a2a/server/request_handlers/default_request_handler.py:310:19: FIX002 Line contains TODO, consider resolving the issue
Ruff (TRY301): src/a2a/server/request_handlers/default_request_handler.py#L296
src/a2a/server/request_handlers/default_request_handler.py:296:17: TRY301 Abstract `raise` to an inner function
Ruff (FIX002): src/a2a/server/request_handlers/default_request_handler.py#L235
src/a2a/server/request_handlers/default_request_handler.py:235:11: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/server/request_handlers/default_request_handler.py#L101
src/a2a/server/request_handlers/default_request_handler.py:101:11: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/server/apps/jsonrpc/starlette_app.py#L138
src/a2a/server/apps/jsonrpc/starlette_app.py:138:11: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/server/apps/jsonrpc/starlette_app.py#L128
src/a2a/server/apps/jsonrpc/starlette_app.py:128:15: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/server/apps/jsonrpc/fastapi_app.py#L148
src/a2a/server/apps/jsonrpc/fastapi_app.py:148:15: FIX002 Line contains TODO, consider resolving the issue
Ruff (FIX002): src/a2a/client/transports/rest.py#L73
src/a2a/client/transports/rest.py:73:11: FIX002 Line contains TODO, consider resolving the issue
Lint Code Base
repository contains 21 duplications. 5 duplications were part of this PR and were annotated
Copy/pasted code: src/a2a/server/apps/rest/rest_adapter.py#L55
see src/a2a/server/apps/jsonrpc/fastapi_app.py (69-97)
Copy/pasted code: src/a2a/server/apps/rest/rest_adapter.py#L55
see src/a2a/server/apps/jsonrpc/jsonrpc_app.py (154-182)
Copy/pasted code: src/a2a/server/apps/rest/rest_adapter.py#L55
see src/a2a/server/apps/jsonrpc/starlette_app.py (51-62)
Copy/pasted code: src/a2a/server/apps/rest/rest_adapter.py#L55
see src/a2a/server/apps/rest/fastapi_app.py (44-72)
Copy/pasted code: src/a2a/server/apps/rest/fastapi_app.py#L44
see src/a2a/server/apps/rest/rest_adapter.py (55-83)