mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
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:
parent
09a74deab8
commit
dc12f22c3e