Format four files ruff had drifted from

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H7LwYgJfpkbLCTeiAf8U4A
This commit is contained in:
2026-08-16 16:47:16 +02:00
co-authored by Claude Fable 5
parent 2613fbead4
commit b5949938f0
4 changed files with 27 additions and 13 deletions
+1 -3
View File
@@ -87,9 +87,7 @@ async def publish_message(
detail=body.source_detail,
)
try:
await run_in_threadpool(
controller.publish_message, name, body.value, source
)
await run_in_threadpool(controller.publish_message, name, body.value, source)
except KeyError:
raise HTTPException(
status_code=404, detail=f"No flow declares a message named '{name}'"
+7 -1
View File
@@ -66,7 +66,13 @@ def _transport_security() -> TransportSecuritySettings:
allowed_origins = [f"https://{host}", f"http://{host}"]
if settings.ENVIRONMENT == "local":
# The test client and a direct uvicorn run do not go through Traefik.
allowed_hosts += ["localhost", "localhost:*", "127.0.0.1", "127.0.0.1:*", "testserver"]
allowed_hosts += [
"localhost",
"localhost:*",
"127.0.0.1",
"127.0.0.1:*",
"testserver",
]
allowed_origins += ["http://localhost", "http://127.0.0.1"]
return TransportSecuritySettings(
enable_dns_rebinding_protection=True,