Compare commits

...
2 Commits
Author SHA1 Message Date
AndreyandClaude Opus 5 5bf3d9b572 🔖 release: 1.2.1
Тег на зелёном коммите: в v1.2.0 проверки CI упали на порядке импортов.
Кода релиз не меняет — правка уже в main отдельным коммитом.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 03:36:56 +03:00
AndreyandClaude Opus 5 6d94aa1f9f 🚨 fix(lint): порядок импортов по конфигурации из корня репозитория
Проверка ruff в контейнере шла из /app/apps/backend, где корневого
pyproject.toml нет, — правило I (сортировка импортов) там просто не
применялось, и CI поймал то, что локальный прогон пропустил. Правки чисто
механические: порядок импортов и пустые строки, оставшиеся от удалённых
констант.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 03:20:50 +03:00
8 changed files with 8 additions and 13 deletions

No files matched your search

+1 -1
View File
@@ -1 +1 @@
1.2.0
1.2.1
@@ -21,11 +21,11 @@ at runtime and overrides `AIAgent.model`.
from __future__ import annotations
from chatballs.i18n import t
from chatballs.ai.provider.base import LLMProvider, ProviderError
from chatballs.ai.provider.custom import CustomProvider
from chatballs.ai.provider.demo import DemoProvider
from chatballs.ai.provider.openrouter import OpenRouterProvider
from chatballs.i18n import t
from chatballs.integrations.models import Integration, IntegrationProvider
@@ -14,8 +14,8 @@ from chatballs.calls.models import CallInvite, CallSession, CallStatus, InviteDe
from chatballs.calls.services import CALL_INVITE_SEND
from chatballs.calls.tokens import issue_invite_token
from chatballs.conversations import transports
from chatballs.i18n import customer_language, t
from chatballs.events.handlers import register
from chatballs.i18n import customer_language, t
from chatballs.identity.instance_settings import public_base_url
from chatballs.tenancy.context import TenantContext
@@ -19,11 +19,6 @@ from chatballs.integrations.models import IntegrationProvider
from chatballs.tenancy.context import TenantContext
class ClaimError(Exception):
pass
@@ -8,6 +8,7 @@ foundation → channels/ai → support → conversations → operations.
from __future__ import annotations
from chatballs.i18n import customer_language
from chatballs.identity.demo_seed.loaders import (
channels_ai as channels_ai_loader,
)
@@ -23,7 +24,6 @@ from chatballs.identity.demo_seed.loaders import (
from chatballs.identity.demo_seed.loaders import (
support as support_loader,
)
from chatballs.i18n import customer_language
from chatballs.identity.demo_seed.refs import DemoRefs
from chatballs.tenancy.context import TenantContext
@@ -18,12 +18,12 @@ OpenAI-совместимый сервер или собственный Bot API
from __future__ import annotations
from chatballs.i18n import t
import ipaddress
import socket
from urllib.parse import urlsplit
from chatballs.i18n import t
HTTP_SCHEMES = frozenset({"http", "https"})
PROXY_SCHEMES = frozenset({"http", "https", "socks5", "socks5h"})
+1 -1
View File
@@ -5,9 +5,9 @@ from unittest import mock
from django.core.exceptions import ValidationError
from django.test import TestCase
from chatballs.i18n import tn
from chatballs.identity.bootstrap import bootstrap_owner
from chatballs.identity.models import Organization
from chatballs.i18n import tn
from chatballs.integrations import checks
from chatballs.integrations.models import (
Integration,
@@ -16,8 +16,8 @@ from django.utils import timezone
from chatballs.conversations import transports
from chatballs.conversations.transports.base import InboundMessage
from chatballs.integrations.models import Integration, IntegrationKind, IntegrationProvider
from chatballs.i18n import customer_language, first_chosen, normalize_language, t
from chatballs.integrations.models import Integration, IntegrationKind, IntegrationProvider
from chatballs.notifications.models import MessengerBinding, MessengerBindingCode
logger = logging.getLogger(__name__)