testsAndMisc/docs/superpowers/contracts/steam-backlog-module-split-2026-05.json
Krzysztof kuhy Rudnicki 0c1e395008 Split modules, fix tests, fix pre-commit batching
- steam_backlog_enforcer: extract _hltb_search.py and _scanning_confidence.py;
  split oversized test files into *_part2/3/4.py
- screen_locker: extract _early_bird.py and _window_setup.py from screen_lock.py;
  fix patch targets in tests (screen_lock.* -> _window_setup.*)
- wake_alarm: use shutil.which('xset') to avoid S607; add TestDisplayHelpers tests
- linux_configuration/usage_report: split into _parsing.py and _types.py;
  add bin/__init__.py (INP001); fix RUF002 (× -> x)
- pre-commit: add require_serial: true to pytest-coverage hook to prevent
  file batching across 24 CPU cores (was causing 12 parallel partial-coverage runs)
2026-05-22 22:48:28 +02:00

18 lines
1.1 KiB
JSON

{
"title": "steam_backlog_enforcer: split hltb/scanning helpers into private submodules",
"objective": "Reduce hltb.py and scanning.py below the 500-line budget by extracting private helper functions into _hltb_search.py and _scanning_confidence.py respectively. Fix all 23 test failures introduced by the split (broken imports and stale patch targets in tests).",
"acceptance_criteria": [
"hltb.py and scanning.py are each under 500 lines",
"_hltb_search.py and _scanning_confidence.py contain the extracted helpers",
"All 622 tests pass with 100% branch coverage",
"ruff, mypy, pylint, bandit all pass with zero suppressions",
"No behavioral change to the running bot"
],
"out_of_scope": [
"Public API changes to steam_backlog_enforcer",
"Refactoring of other modules (main.py, library_hider.py, etc.)",
"Performance improvements"
],
"verifier": "python -m pytest python_pkg/steam_backlog_enforcer/tests/ --cov=python_pkg.steam_backlog_enforcer --cov-branch --cov-fail-under=100 && pre-commit run --files $(git diff --cached --name-only | tr '\\n' ' ')"
}