provide-testkit 2025-12-30
Comprehensive type annotation fixes and code quality improvements
31 files · 182+ · 126-

Type annotation fixes across source modules

9 files changed
  • _blocker.py Changed stub_path to str() for SourceFileLoader argument
  • _early_init.py Imported Any from typing, fixed _get_logger return type from bare any to Any
  • strategies.py Added explicit SearchStrategy type annotations to strategy lists, typed draw results
  • time_strategies.py Added SearchStrategy type to timeout strategy list, typed draw result
  • testing.py Added list/dict types to MockContext tracking attributes, fixed temp_config_file return type to Generator, added positional-only param to CLI context
  • fixtures.py Added intermediate typed variables for cert/key PEM returns, fixed tmp_path type from any to Path
  • fixtures.py Added explicit Mock type annotations for patch results
  • conftest.py Added list[str] type to pytest_plugins
  • temp.py Added type: ignore for untyped yaml import
  • Fixed over 30 type annotation issues across chaos strategies, CLI testing, crypto fixtures, mocking, and other modules to comply with strict mypy and ruff rules harden internal
    4 files
    • strategies.py
    • testing.py
    • fixtures.py
    • fixtures.py

Coverage threshold adjustment

1 file changed
  • pyproject.toml Removed TODO comment from coverage fail_under = 40 setting
  • Accepted 40% coverage threshold as current baseline rather than a temporary measure baseline internal
    1 file
    • pyproject.toml