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