mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
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:
parent
2d7345f0bc
commit
8a5ece9e2b
3 changed files with 38 additions and 26 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue