testsAndMisc/python_pkg/articles
Krzysztof kuhy Rudnicki ee27d10fef Reduce per-file-ignores by fixing lint violations across codebase
Fix ruff violations in ~15 source files and ~60+ test files to minimize
per-file-ignores in pyproject.toml. Remaining ignores are justified with
comments explaining why each suppression is necessary.

Source fixes: FBT003 (keyword args), S310 (URL validation), SLF001
(private access), T201 (print→logging), C901 (complexity), E501 (line
length), E402 (import order).

Test fixes: SIM117 (combined with), FBT (boolean args), PERF203 (try in
loop), S310/S607 (URLs/executables), E402/E501 (imports/lines), S108
(tmp paths), PLR0913 (too many args), ARG (unused args), ANN (type
annotations), RUF059 (unused unpacked vars), PT019 (fixture naming).

Remaining per-file-ignores (with justifications):
- Tests: ARG, D, PLC0415, PLR2004, S101, SLF001
- music_gen sources: PLC0415 (heavy ML lazy imports)
- moviepy_showcase: PLC0415 (circular dependency)
- generate_images: PLR0913 (matplotlib helpers need many params)
- praca_magisterska_video: E501, E402 (long paths, mpl.use)
2026-03-25 18:58:05 +01:00
..
data refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
tests Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
tools refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
__init__.py refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
.clang-format refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
.gitignore refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
cppcheck.txt refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
index.html refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
Makefile refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
README.md refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
run_tests.sh refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
run.sh refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
server_c.c refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +01:00
sw.js refactor: move Python packages under python_pkg/ 2026-03-18 22:54:45 +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.