mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 16:23:04 +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
da6271c438
commit
8aeee0d55a