chore(quality): apply ruff autofixes and formatting (223 fixes, regression-free: 118/118 tests pass)

This commit is contained in:
Agent Zero
2026-06-10 21:24:24 +00:00
committed by leocrm-bot
parent 7104335334
commit b5f7a220fe
56 changed files with 459 additions and 528 deletions
+2
View File
@@ -37,6 +37,7 @@ async def test_update_deal_stage_creates_history(
# Verify DealStageHistory row exists in DB
from sqlalchemy import text
async with session_factory() as session:
result = await session.execute(
text("SELECT to_stage FROM deal_stage_history WHERE deal_id = :did ORDER BY id"),
@@ -74,6 +75,7 @@ async def test_db_write_deal(
) -> None:
"""DB roundtrip: read back a seeded deal directly via SQL."""
from sqlalchemy import text
deal_id = seed_data["deal_ids"][2]
async with session_factory() as session:
result = await session.execute(