Run updated pre-commit, see if it breaks anything

This commit is contained in:
shamoon 2024-11-26 10:43:54 -08:00
parent fb0ea25cfc
commit ed02609b6f
5 changed files with 7 additions and 7 deletions

View File

@ -317,7 +317,7 @@ class Command(BaseCommand):
# Check the files against the timeout # Check the files against the timeout
still_waiting = {} still_waiting = {}
for filepath in notified_files: for filepath in notified_files.items():
# Time of the last inotify event for this file # Time of the last inotify event for this file
last_event_time = notified_files[filepath] last_event_time = notified_files[filepath]

View File

@ -294,7 +294,7 @@ class Command(CryptMixin, BaseCommand):
manifest_dict = {} manifest_dict = {}
# Build an overall manifest # Build an overall manifest
for key in manifest_key_to_object_query: for key in manifest_key_to_object_query.items():
manifest_dict[key] = json.loads( manifest_dict[key] = json.loads(
serializers.serialize("json", manifest_key_to_object_query[key]), serializers.serialize("json", manifest_key_to_object_query[key]),
) )
@ -370,7 +370,7 @@ class Command(CryptMixin, BaseCommand):
# 4.1 write primary manifest to target folder # 4.1 write primary manifest to target folder
manifest = [] manifest = []
for key in manifest_dict: for key in manifest_dict.items():
manifest.extend(manifest_dict[key]) manifest.extend(manifest_dict[key])
manifest_path = (self.target / "manifest.json").resolve() manifest_path = (self.target / "manifest.json").resolve()
self.check_and_write_json( self.check_and_write_json(

View File

@ -160,7 +160,7 @@ class SetPermissionsMixin:
}, },
} }
if set_permissions is not None: if set_permissions is not None:
for action in permissions_dict: for action in permissions_dict.items():
if action in set_permissions: if action in set_permissions:
users = set_permissions[action]["users"] users = set_permissions[action]["users"]
permissions_dict[action]["users"] = self._validate_user_ids(users) permissions_dict[action]["users"] = self._validate_user_ids(users)

View File

@ -5,9 +5,9 @@ from paperless.checks import paths_check
from paperless.checks import settings_values_check from paperless.checks import settings_values_check
__all__ = [ __all__ = [
"celery_app", "audit_log_check",
"binaries_check", "binaries_check",
"celery_app",
"paths_check", "paths_check",
"settings_values_check", "settings_values_check",
"audit_log_check",
] ]

View File

@ -2,4 +2,4 @@
from paperless_tesseract.checks import check_default_language_available from paperless_tesseract.checks import check_default_language_available
from paperless_tesseract.checks import get_tesseract_langs from paperless_tesseract.checks import get_tesseract_langs
__all__ = ["get_tesseract_langs", "check_default_language_available"] __all__ = ["check_default_language_available", "get_tesseract_langs"]