testsAndMisc/python_pkg
Krzysztof kuhy Rudnicki da6271c438 refactor(stockfish_analysis): reduce complexity of main() function
Break down monolithic main() into smaller, focused functions:
- _build_argument_parser(): CLI argument setup
- _load_game(): PGN file loading and parsing
- _configure_threads/hash/multipv/nnue(): Engine configuration helpers
- _setup_engine(): Engine initialization orchestration
- _get_best_move(): Engine best move extraction
- _evaluate_position(): Position evaluation wrapper
- _classify_mate_move(): Mate score classification logic
- _analyze_single_move(): Single move analysis
- _log_move_analysis(): Move analysis logging
- _run_analysis(): Analysis loop orchestration
- _analyze_last_move/all_moves(): Specific analysis modes

Add dataclasses MoveAnalysis and AnalysisContext to bundle related
parameters, improving code organization and reducing function signatures.

This removes the need for C901, PLR0912, PLR0915 per-file ignores
as all functions now comply with complexity limits.
2025-11-30 23:23:10 +01:00
..
download_cats fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
extract_links fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
keyboard_coop fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
lichess_bot fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
mock_server refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
pdfCentered refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
random_jpg fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
randomize_numbers fix(lint): LOG015 - replace root logger with module loggers 2025-11-30 21:59:24 +01:00
scrape_website fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
screen_locker fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
split refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
stockfish_analysis refactor(stockfish_analysis): reduce complexity of main() function 2025-11-30 23:23:10 +01:00
tag_divider fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
__init__.py refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
.gitignore refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00