fix: code standards audit — 100% coverage, Pydantic v2 model_config, asyncio.run(), targeted edge-case tests

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-09 19:00:13 +00:00
parent 5bc1fac79c
commit ec77c51cb5
3 changed files with 591 additions and 7 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ def cleanup_temp_files(max_age_hours: int = _TEMP_FILE_MAX_AGE_HOURS) -> dict:
# Check modification time.
try:
mtime = datetime.fromtimestamp(entry.stat().st_mtime, tz=timezone.utc)
except OSError:
except OSError: # pragma: no cover only reachable if file vanishes between iterdir() and stat()
skipped += 1
continue