style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import logging
import sys
import threading
from collections.abc import Callable
from datetime import datetime, timedelta, timezone
from datetime import UTC, datetime, timedelta
import pytest
from aiohttp import web
@@ -326,7 +326,7 @@ async def test_dashboard_log_read_does_not_touch_the_session() -> None:
store = SessionStore()
entry = await store.create("EXAMPLE", object())
stale = datetime.now(timezone.utc) - timedelta(seconds=1)
stale = datetime.now(UTC) - timedelta(seconds=1)
entry.last_accessed = stale
assert store.peek(entry.session_id) is entry
assert entry.last_accessed == stale