Modernized development tooling and added CI pipeline.
CI / Formatting (push) Successful in 10s
CI / Linting (push) Successful in 10s
CI / Tests (push) Successful in 14s
CI / Type Checking (push) Successful in 20s

This commit is contained in:
2026-02-18 13:47:06 -05:00
parent b065c3dd05
commit 3a93a56f88
13 changed files with 380 additions and 81 deletions
+2 -3
View File
@@ -19,6 +19,7 @@ Uses aiosqlite for native async access. All methods are async def.
"""
import asyncio
import contextlib
import logging
from typing import Self
@@ -125,10 +126,8 @@ class Database:
"""Cancels the flush timer, commits any pending writes, then closes the database connection."""
if self._flush_task is not None:
self._flush_task.cancel()
try:
with contextlib.suppress(asyncio.CancelledError):
await self._flush_task
except asyncio.CancelledError:
pass
self._flush_task = None
if self._pending_writes > 0:
await self._connection.commit()