Captures the lock-file generation work (audit #9) and the core/images.py dead-code cleanup (audit #15) as explicit follow-ups so they don't get lost between branches.
1.0 KiB
1.0 KiB
booru-viewer follow-ups
Items deferred from the 2026-04-10 security audit remediation that weren't safe or in-scope to fix in the same branch.
Dependencies / supply chain
- Lock file (audit #9): runtime deps now have upper bounds in
pyproject.toml, but there is still no lock file pinning exact versions + hashes. Generating one needspip-tools(oruv) as a new dev dependency, which was out of scope for the security branch. Next pass: addpip-toolsto a[project.optional-dependencies] devextra and commit arequirements.lockproduced bypip-compile --generate-hashes. Hook into CI as apip-auditjob.
Code quality
- Dead code in
core/images.py(audit #15):make_thumbnailandimage_dimensionsare unreferenced. The library's actual thumbnailing happens ingui/library.py:312-321(PIL inline) andgui/library.py:323-338(ffmpeg subprocess). Delete the two unused functions next time the file is touched. Out of scope here under the "no refactors" constraint.