testsAndMisc/python_pkg
Krzysztof kuhy Rudnicki 5573435b7d fix(lint): BLE001 - replace blind except with specific exceptions
Replace bare 'except Exception' with specific exception types:
- ValueError for move parsing (chess.Move.from_uci, board.push_uci)
- json.JSONDecodeError for JSON parsing
- OSError for file operations
- ImportError for optional imports
- AttributeError for attribute access
- TypeError for type-related operations
- requests.RequestException for HTTP operations
- subprocess.SubprocessError for subprocess failures
- selenium.NoSuchElementException for element finding

Also fixes:
- pytest hook signature issue in conftest.py (_config -> _)
- Missing file handling in test_puzzles.py
- Line length in stockfish_analysis.py

Removes all BLE001 per-file ignores from pyproject.toml.
2025-11-30 21:37:47 +01:00
..
download_cats fix: resolve PERF203 try-except in loop violations 2025-11-30 21:29:03 +01:00
extract_links refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
keyboard_coop refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
lichess_bot fix(lint): BLE001 - replace blind except with specific exceptions 2025-11-30 21:37:47 +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 refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
randomize_numbers fix: resolve PERF203 try-except in loop violations 2025-11-30 21:29:03 +01:00
scrape_website fix(lint): BLE001 - replace blind except with specific exceptions 2025-11-30 21:37:47 +01:00
screen_locker refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
split refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
stockfish_analysis fix(lint): BLE001 - replace blind except with specific exceptions 2025-11-30 21:37:47 +01:00
tag_divider refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +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