steam-backlog-enforcer/steam_backlog_enforcer
Krzysztof kuhy Rudnicki dd480f3208 Bring _stats.py and scanning.py under the 250-line cap
Leaf-set extraction only, so every new import is one-way and no cycle is
possible:

  _stats.py    523 -> 233   + _stats_types (the shared _GameTimes dataclass,
                              imported by parent and helpers alike),
                              _stats_gathering, _stats_display
  scanning.py  521 -> 248   + _scanning_candidates, _scanning_assign,
                              _scanning_tampering

_GameTimes and the four moved scanning helpers are re-exported from their
original modules via __all__ (mypy --no-implicit-reexport needs them listed),
so callers and tests keep their existing import paths.

Test patch targets were retargeted per file from the pytest failure list —
the target is the module whose source now contains the function under test.
Note TestPrintScenario and TestDoCheck did NOT move, so they keep the
original target while the rest of their files change.

1344 tests, 100.00% coverage. ./run.sh status and ./run.sh stats verified
against the live install; service at 0 restarts.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016A1EYiv7e7HGhET84oa9M3
2026-08-24 16:00:54 +02:00
..
docs Adopt the four markdown namespaces and gate them 2026-08-24 15:54:34 +02:00
main Allow abandoning a manual pick at any time; cap picks at 2 2026-08-24 15:41:32 +02:00
tests Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
__init__.py feat: steam 100 percent extension 2026-03-02 20:29:32 +01:00
_actions.py Allow abandoning a manual pick at any time; cap picks at 2 2026-08-24 15:41:32 +02:00
_allowed_games.py fix(game_install): refuse to delete folders matching an allowed game's name 2026-07-25 15:50:29 +02:00
_cdp.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_cmd_done_finalize.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
_cmd_done.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
_cmd_playtime.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_desktop_env.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_echo.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_enforce_loop.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_enforce_steps.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_game_names.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_hltb_cached.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
_hltb_comp_extract.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_confidence.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
_hltb_detail.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_matching.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_page_parse.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_search_api.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_search.py Bring the HLTB modules under the 250-line cap 2026-08-24 15:23:13 +02:00
_hltb_types.py chore: set up as standalone repo 2026-05-28 07:21:29 +02:00
_hosts_protection.py Split store_blocker along its one-way call boundaries 2026-08-24 15:06:15 +02:00
_manual_pick_lifecycle.py Allow abandoning a manual pick at any time; cap picks at 2 2026-08-24 15:41:32 +02:00
_mcp_actions.py Allow abandoning a manual pick at any time; cap picks at 2 2026-08-24 15:41:32 +02:00
_mcp_gaming_time.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_mcp_query.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_mcp_server.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_mcp.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_owned_apps_cache.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_pacman.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_block.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_budget.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_cutoff.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_kill.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_mountinfo.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_notify.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_playtime_procs.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_run.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime_state.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_playtime.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_polls_reporting.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
_protected_apps.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_scanning_assign.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_scanning_candidates.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_scanning_confidence.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
_scanning_tampering.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_stats_display.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_stats_gathering.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_stats_types.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_stats.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
_steam_api_client.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
_steam_client.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_steam_errors.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_steam_launch.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_steam_models.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
_steam_process.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_steam_state.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
_store_iptables.py Split store_blocker along its one-way call boundaries 2026-08-24 15:06:15 +02:00
_total_block_domains.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_total_block_hosts.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_total_block_iptables.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_total_block_launchers.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_total_block_purge.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_total_block.py Split total-block, playtime and MCP by responsibility 2026-08-23 20:52:08 +02:00
_web_dataset.py feat(enforcer): allow two concurrent manual picks 2026-07-19 17:28:23 +02:00
_web_server.py feat: add interactive web UI for backlog completion planning 2026-05-29 18:35:45 +02:00
_whitelist_locking.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
_whitelist.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
config.py Allow abandoning a manual pick at any time; cap picks at 2 2026-08-24 15:41:32 +02:00
enforcer.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
game_install.py Re-arm the no-library warning before install_game's early return 2026-08-24 14:04:54 +02:00
game_uninstall.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
hltb.py Split _actions, _whitelist, _cmd_done and hltb under the cap 2026-08-24 14:55:57 +02:00
library_hider.py Stop the enforcer launching Steam and notifications as root 2026-08-24 13:55:44 +02:00
protondb.py fix: HLTB count_comp=0 bug, false matches, and ProtonDB log noise 2026-05-28 20:40:51 +02:00
scanning.py Bring _stats.py and scanning.py under the 250-line cap 2026-08-24 16:00:54 +02:00
steam_api.py Split steam_api and _scanning_confidence under the cap 2026-08-24 14:25:43 +02:00
store_blocker.py Split store_blocker along its one-way call boundaries 2026-08-24 15:06:15 +02:00