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:18:18 -07:00
commit ec4866bea4
2 changed files with 4 additions and 3 deletions

View file

@ -304,7 +304,7 @@ class AsgiLifespan:
try:
for fn in self.on_startup:
await fn()
except Exception as e:
except Exception as e: # noqa: BLE001
await send(
{"type": "lifespan.startup.failed", "message": str(e)}
)
@ -314,7 +314,7 @@ class AsgiLifespan:
try:
for fn in self.on_shutdown:
await fn()
except Exception as e:
except Exception as e: # noqa: BLE001
await send(
{"type": "lifespan.shutdown.failed", "message": str(e)}
)

View file

@ -11,9 +11,10 @@ These exercise Datasette._startup_sequence() via three different callers:
import asyncio
import contextlib
import sqlite3
import httpx
import pytest
import sqlite3
from datasette import hookimpl
from datasette.app import Datasette