Add and use pre-commit hooks

This commit is contained in:
Joakim Hellsén 2025-11-28 04:44:07 +01:00
commit b2eef830d8
No known key found for this signature in database
10 changed files with 66 additions and 18 deletions

View file

@ -132,7 +132,7 @@ class Command(BaseCommand):
f"{len(self._organization_cache)} orgs, "
f"{len(self._drop_campaign_cache)} campaigns, "
f"{len(self._channel_cache)} channels, "
f"{len(self._benefit_cache)} benefits."
f"{len(self._benefit_cache)} benefits.",
)
except (FileNotFoundError, OSError, RuntimeError):
# If preload fails for any reason, continue without it