fix: Corregir todos los warnings de linting (ruff, black)

- Corregir import ordering (TC002) moviendo User a TYPE_CHECKING
- Corregir type hints implícitos (RUF013) usando | None
- Corregir boolean traps (FBT001/FBT002) usando keyword-only args
- Corregir logging warnings (G201) usando logger.exception()
- Formatear código con ruff format y black

Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-12 13:17:08 +00:00
parent 2d7345f0bc
commit 8a5ece9e2b
3 changed files with 38 additions and 26 deletions

View file

@ -14,9 +14,11 @@ According to agents.md requirements:
from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from typing import Any
from django.contrib.auth.models import User
if TYPE_CHECKING:
from django.contrib.auth.models import User
logger = logging.getLogger("paperless.ai_deletion")