generated from john/python-template
style: apply ruff formatting sweep
Co-authored-by: Copilot App <[email protected]>
This commit is contained in:
co-authored by
Copilot App
parent
4aaa9bd581
commit
2a56365847
@@ -35,9 +35,7 @@ async def _document_ids(settings: Settings) -> set[str]:
|
||||
|
||||
async def _source_counts_by_document(settings: Settings) -> dict[str, int]:
|
||||
async with session_scope(settings=settings) as session:
|
||||
rows = await session.exec(
|
||||
select(Source.document_id, func.count(Source.id)).group_by(Source.document_id)
|
||||
)
|
||||
rows = await session.exec(select(Source.document_id, func.count(Source.id)).group_by(Source.document_id))
|
||||
return {str(document_id): int(count) for document_id, count in rows}
|
||||
|
||||
|
||||
@@ -93,9 +91,7 @@ async def assert_storage_reconciliation(*, upload_dir: Path, settings: Settings)
|
||||
if mismatches:
|
||||
report = "\n".join(f"- {item}" for item in mismatches)
|
||||
raise AssertionError(
|
||||
"Storage reconciliation mismatch(es) detected.\n"
|
||||
f"Reconciling item count: {len(mismatches)}\n"
|
||||
f"{report}"
|
||||
f"Storage reconciliation mismatch(es) detected.\nReconciling item count: {len(mismatches)}\n{report}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user