[fix] Version 2.80.1 synchronisee + corrections ruff (60 erreurs CI) #26

Merged
bruno merged 31 commits from fix/version-2.80.1-ruff into main 2026-10-27 23:00:14 -04:00
Showing only changes of commit 90da0ac990 - Show all commits
+2 -2
View File
@@ -7,7 +7,7 @@ Reuses the application audit log (``data/audit.log``, JSON lines) and adds an
from __future__ import annotations
from datetime import datetime, timezone
from datetime import UTC, datetime
from typing import Any
from backend.audit import _write_entry
@@ -41,7 +41,7 @@ def log_tool_call(
) -> None:
"""Append an ``ai_tool_call`` entry to the audit log."""
_write_entry({
"timestamp": datetime.now(timezone.utc).isoformat(),
"timestamp": datetime.now(UTC).isoformat(),
"action": "ai_tool_call",
"username": username,
"ip": ip or "unknown",