feat: add pre-commit hooks for local CI checks

- Black (auto-fix formatting on commit)
- Flake8 (block on syntax errors and undefined names)
- Bandit (security scan, non-blocking to match CI)
- Tests (run on pre-push only)
- Apply Black formatting fixes caught by the new hooks
This commit is contained in:
Vito Sansevero
2026-02-08 05:27:03 -08:00
parent ed40be066c
commit be205f3dcc
6 changed files with 110 additions and 39 deletions
+3 -1
View File
@@ -780,7 +780,9 @@ class ImageRoutesMixin:
self.logger.warning(
f"Failed to generate thumbnail for {media_file.name}: {e}"
)
error_msg = f"Failed to generate thumbnail for {media_file.name}"
error_msg = (
f"Failed to generate thumbnail for {media_file.name}"
)
errors.append(error_msg)
if len(errors) <= 5: