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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user