refactor: Enable G logging rules and comprehensive ruff improvements (#35081)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-09-15 12:42:49 -07:00
committed by GitHub
parent e1a2e4843a
commit 088ecdd0bf
47 changed files with 340 additions and 184 deletions

View File

@@ -572,7 +572,7 @@ class AuditMixinNullable(AuditMixin):
humanize.i18n.deactivate()
return result
except Exception as e:
logger.warning(f"Locale '{locale}' is not supported in humanize: {e}")
logger.warning("Locale '%s' is not supported in humanize: %s", locale, e)
return humanize.naturaltime(time_diff)
@property