refactor(lichess_bot): reduce complexity with dataclasses and extracted functions

- Add GameState, GameMeta, BotContext dataclasses for state bundling
- Extract 20+ helper functions from nested closures to module level
- Fix C901, PLR0912, PLR0915 complexity violations
- Fix mypy type errors with proper type annotations
- Add noqa for intentional S603 (subprocess call to trusted internal script)
This commit is contained in:
Krzysztof kuhy Rudnicki 2025-11-30 23:40:53 +01:00
parent 09a74deab8
commit dc12f22c3e

File diff suppressed because it is too large Load Diff