Add homelab CI with hard ruff/pytest gates

Adds .gitea/workflows/ci.yml (python-ci with tesseract + libgl for the OCR/opencv tests, plus gitleaks secret-scan) and ruff.toml (E4/E7/E9/F/I, line-length 120). Cleans up the remaining unused-variable findings so the lint gate is green.
This commit is contained in:
2026-07-26 15:37:45 -04:00
parent 2ac7638e31
commit 17be9cef33
4 changed files with 48 additions and 3 deletions
-2
View File
@@ -1,4 +1,3 @@
import numpy as np
import pytest
from PIL import Image
@@ -32,7 +31,6 @@ def test_images_to_pdf_multi_page(tmp_path):
images_to_pdf(paths, out)
data = out.read_bytes()
# img2pdf writes one xobject image per page; a 3-page PDF should be
# meaningfully larger than a 1-page PDF of the same-size images.
single = tmp_path / "single.pdf"