testsAndMisc/articles
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
..
data fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
tools feat: more functions fixed 2025-09-08 15:32:55 +02:00
__init__.py Enable INP001: add __init__.py to 11 packages 2025-11-30 14:55:20 +01:00
.clang-format feat: more functions fixed 2025-09-08 15:32:55 +02:00
.gitignore fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
cppcheck.txt fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
index.html chore: removed unecessary text 2025-09-08 12:08:10 +02:00
Makefile feat: more functions fixed 2025-09-08 15:32:55 +02:00
README.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
run_tests.sh feat: 14kB articles site 2025-09-07 21:26:55 +02:00
run.sh Revert "feat: live reload" 2025-09-07 22:09:22 +02:00
server_c.c chore: more lint fixes 2025-09-08 16:10:08 +02:00
sw.js feat: cache specific articles fetched 2025-09-08 07:54:18 +02:00
test_server_api.py fix(lint): BLE001 - replace blind except with specific exceptions 2025-11-30 21:37:47 +01:00
test_site_size.py fix: correct mypy ignore comment for attr-defined error 2025-11-30 15:49:40 +01:00

Mini Articles (<=14KB)

  • Single-file site: index.html with 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.html in a browser.

Tests

  • pytest includes a test to enforce the 14KB budget for index.html.