paper-dynasty-discord/command_logic
Cal Corum 740ea93b34
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m26s
fix: batch cleanup — dead code, bare excepts, empty stubs (#25, #32, #37, #38)
Fixes #25, Fixes #32, Fixes #37, Fixes #38

- Remove unused PLAYER_CACHE = {} from api_calls.py (issue #37)
- Remove dead select_speed_testing() and select_all_testing() functions
  with their debug print() statements from gameplay_models.py (issue #32)
- Remove empty if-pass stubs after db_post calls in logic_gameplay.py (issue #38)
- Replace 10 bare except: clauses with except Exception: in gameplay_queries.py (issue #25)
- Add ruff.toml to configure pre-commit hook for existing codebase patterns
  (F403/F405 from intentional star imports, F541/F401/F841/E712 cosmetic)
- Fix E713 in logic_gameplay.py (not x in [...] -> x not in [...]) required
  by the pre-commit hook on the file already being touched

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 23:23:09 -05:00
..
__init__.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
logic_gameplay.py fix: batch cleanup — dead code, bare excepts, empty stubs (#25, #32, #37, #38) 2026-03-22 23:23:09 -05:00
play_context.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00