Skip to content

Commit 05221b9

Browse files
committed
style: ruff format
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
1 parent 13e4882 commit 05221b9

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

a2a/weather_service/src/weather_service/agent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ async def execute(self, context: RequestContext, event_queue: EventQueue):
145145
config = Configuration()
146146
if not config.has_valid_api_key:
147147
await event_emitter.emit_event(
148-
"Error: No LLM API key configured. Set the LLM_API_KEY "
149-
"environment variable.",
148+
"Error: No LLM API key configured. Set the LLM_API_KEY environment variable.",
150149
failed=True,
151150
)
152151
return

tests/a2a/test_weather_secret_redaction.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,13 @@ def setup_method(self):
7070

7171
def _make_record(self, msg: str, args=None) -> logging.LogRecord:
7272
return logging.LogRecord(
73-
name="test", level=logging.INFO, pathname="", lineno=0,
74-
msg=msg, args=args, exc_info=None,
73+
name="test",
74+
level=logging.INFO,
75+
pathname="",
76+
lineno=0,
77+
msg=msg,
78+
args=args,
79+
exc_info=None,
7580
)
7681

7782
def test_redacts_bearer_token(self):

0 commit comments

Comments
 (0)