Format four files ruff had drifted from

This commit is contained in:
2026-08-16 16:47:16 +02:00
parent 996c0a167f
commit 2746f579e1
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,