Apply ruff 0.16 and black fixes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012U7coQfVu8nK2R4q2mCULA
This commit is contained in:
Alex Garcia 2026-08-31 13:20:55 -07:00 committed by Simon Willison
commit 74c898ab3c

View file

@ -283,10 +283,9 @@ async def test_asgi_wrapper_runs_after_startup_fallback_path():
def wrap(app):
async def check_startup(scope, receive, send):
if scope["type"] == "http":
assert datasette._startup_invoked is True, (
"asgi_wrapper saw an http scope before startup "
"completed"
)
assert (
datasette._startup_invoked is True
), "asgi_wrapper saw an http scope before startup completed"
await app(scope, receive, send)
return check_startup