testsAndMisc/python_pkg
Krzysztof kuhy Rudnicki c23eb4d1a9 perf(pre-commit): batch+parallelize pytest on commit; kill 15s sleeps in steam_backlog_enforcer tests
- meta/.pre-commit-config.yaml: move pytest-coverage hook to pre-commit stage
- scripts/pytest_changed_packages.py: single batched pytest -n auto invocation
  with one --cov flag per affected python_pkg subpackage, wrapped in
  systemd-run --user --scope -p MemoryMax=4G -p MemorySwapMax=0 when available
- python_pkg/steam_backlog_enforcer/tests/conftest.py: new autouse
  _no_real_sleep fixture patches time.sleep across game_install /
  library_hider / steam_api / _enforce_loop. Removes 3x 15s real sleeps
  in TestFinalizeCompletion that fired through _ensure_steam_running

steam_backlog_enforcer test wall time: 33.97s -> 5.61s (xdist, no-cov)
5-package batched run: 732 tests in 1.37s @ 668% CPU
Coverage stays at 100% on all affected packages.

Evidence: docs/superpowers/evidence/pre-commit-pytest-batch-2026-05-14.json
2026-05-14 21:52:52 +02:00
..
brother_printer Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
random_jpg feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00
screen_locker feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
shared Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
steam_backlog_enforcer perf(pre-commit): batch+parallelize pytest on commit; kill 15s sleeps in steam_backlog_enforcer tests 2026-05-14 21:52:52 +02:00
tests refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
wake_alarm Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
__init__.py feat(screen_locker): harden table tennis verification, remove running option 2026-02-02 21:38:52 +01:00
.gitignore screen_locker: enhance workout logging and UI 2025-12-02 23:22:13 +01:00
conftest.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00