chore(lint): удалить неиспользуемые импорты (ruff F401)

- 11 файлов, 16 unused imports удалено
- pip 24.0 → 26.2.1, urllib3 2.7.0 → 2.8.0 (CVE fix)
- pip-audit: 0 vulnerabilities
- Логика не затронута, только imports
- Проверено: systemctl restart OK, /health 200
This commit is contained in:
2026-10-05 11:16:24 +00:00
parent a730ef87f5
commit b0308acb1f
11 changed files with 4 additions and 15 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import logging
from fastapi import APIRouter, Request, HTTPException
from fastapi import APIRouter, Request
from auth import require_auth
from database import get_pool
-1
View File
@@ -11,7 +11,6 @@ Admin AI Router — универсальный AI-помощник в админ
import logging
import time
from collections import defaultdict
from typing import Optional
import httpx
from fastapi import APIRouter, Request, HTTPException
-1
View File
@@ -71,7 +71,6 @@ topic_id теперь: {level}_{track}_{slug}.
принимаем и сохраняем options_language ('pl' или 'user').
"""
import logging
import re
from typing import Optional
from fastapi import APIRouter, Request, HTTPException
-1
View File
@@ -5,7 +5,6 @@ AI Assistant Router — чат-помощник с историей, конте
"""
import logging
import time
import json
import httpx
from fastapi import APIRouter, Request, HTTPException
from auth import require_auth
-1
View File
@@ -1,5 +1,4 @@
import random
import time
import hashlib # 🔧 НОВОЕ: импорт hashlib для стабильного хэширования
from fastapi import APIRouter, Request, HTTPException
from auth import require_auth
+1 -2
View File
@@ -23,9 +23,8 @@ import logging
import json
import re
import uuid
import os
from pathlib import Path
from typing import Optional, Any
from typing import Optional
import httpx
from fastapi import APIRouter, Request, HTTPException, UploadFile, File, Form
-1
View File
@@ -13,7 +13,6 @@ from fastapi import APIRouter, Request, HTTPException
from auth import require_auth
from database import get_pool
from config import TOGETHER_API_KEY
from .learning_data import init_learning_data
from .learning_profile import get_weak_skills, get_strong_skills
logger = logging.getLogger(__name__)
-1
View File
@@ -1,4 +1,3 @@
import random
from fastapi import APIRouter, Request, HTTPException
from auth import require_auth
from database import get_pool
-1
View File
@@ -3,7 +3,6 @@ Typing Router — раздел "Печать".
Пользователь печатает польские предложения, система проверяет.
Без AI — просто сравнение с правильным ответом из БД.
"""
import random
from fastapi import APIRouter, Request, HTTPException
from auth import require_auth
from database import get_pool