mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 18:23:07 +02:00
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. |
||
|---|---|---|
| .. | ||
| data | ||
| tools | ||
| __init__.py | ||
| .clang-format | ||
| .gitignore | ||
| cppcheck.txt | ||
| index.html | ||
| Makefile | ||
| README.md | ||
| run_tests.sh | ||
| run.sh | ||
| server_c.c | ||
| sw.js | ||
| test_server_api.py | ||
| test_site_size.py | ||
Mini Articles (<=14KB)
- Single-file site:
index.htmlwith inline CSS & JS - Features:
- List of articles with thumbnails (cards)
- Read view: thumbnail, title, body (supports inline images/videos)
- Create view: title, thumbnail picker/drag-drop, rich body via contenteditable
- Drag/drop or choose images/videos anywhere in the body
- Local persistence via localStorage (no server required)
How to open
- Open
site/index.htmlin a browser.
Tests
pytestincludes a test to enforce the 14KB budget forindex.html.