undef-engine 2026-03-27
mypy strict compliance across 1189 source files, ruff lint fixes, CI improvements
508 files · 76,435+ · 3,133-

mypy strict compliance across 1189 source files

1 file changed
  • car.py Fixed PDQ car.py type errors
  • Full mypy –strict pass applied to 1189 source files. Fixes include: missing type annotations, incorrect return types, Optional handling, TypedDict usage, and cast() calls. No behavioral changes — pure type annotation compliance. remediate internal

Ruff lint and format compliance

  • All ruff lint and format violations resolved across source and test files in a single pass. Includes import ordering, unused imports, line length, and formatting normalization. remediate errata

CI improvements: integration tests, coverage gate, ty check

1 file changed
  • ci.yml Added integration test step, coverage gate, ty check (informational), and perf smoke test on all CI triggers
  • CI workflow adds: integration test step that runs against a live test database; coverage gate that fails if coverage drops below threshold; ty check step (informational, not blocking) for gradual migration; perf smoke test runs on all triggers not just main. baseline internal

Source bug fixes discovered during test authoring

4 files changed
  • lifecycle.py Fixed three PDQ car.py bugs uncovered by test authoring
  • game_content.py Fixed GAME_CONTENT_SPECS iteration (dict.items() not dict)
  • settings.py Replaced os.getenv calls with pydantic-settings config objects
  • rate_limiting.py Replaced os.getenv with storage_settings.backend config object
  • Three PDQ car.py bugs fixed. GAME_CONTENT_SPECS filesystem import route now iterates .items() correctly. os.getenv calls replaced with pydantic-settings config objects throughout rate_limiting.py and storage settings — removes direct environment variable coupling. remediate behavioral
    3 files
    • lifecycle.py
    • game_content.py
    • rate_limiting.py

Massive test coverage additions

4 files changed
  • test_more_modules_batch9.py 78-line batch test update
  • test_schemas.py 505-line schema test expansion
  • test_server_defaults.py 368-line server defaults tests
  • test_factory.py 37-line storage factory tests
  • 508 files changed primarily due to test additions and mypy/ruff annotation fixes propagated across the full test suite. PDQ exit_interview and escrow hook tests, PDQ persistence hooks and session base tests, xfail tests updated to pass after bug fixes. qualify internal
    2 files
    • test_schemas.py
    • test_server_defaults.py