style: auto-format with black + isort + ruff + prettier [skip ci-format-check]
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m43s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m51s
AI Code Review / AI Code Review (pull_request) Successful in 6m32s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 13s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 10s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 9m55s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 9m10s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 10m9s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 10m59s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 13m35s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 39m34s
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 16h58m24s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 17h11m17s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 17h10m35s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 17h10m45s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 17h10m58s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 17h36m2s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 16h31m8s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 16h57m37s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 16h57m47s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 17h10m35s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 17h10m58s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m43s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m51s
AI Code Review / AI Code Review (pull_request) Successful in 6m32s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 13s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 10s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 9m55s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 9m10s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 10m9s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 10m59s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 13m35s
CI/CD Pipeline / Validate - Security (pull_request) Failing after 39m34s
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 16h58m24s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 17h11m17s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 17h10m35s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 17h10m45s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 17h10m58s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 17h36m2s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 16h31m8s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 16h57m37s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 16h57m47s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 17h10m35s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 17h10m58s
This commit is contained in:
@@ -41,8 +41,6 @@ from sqlalchemy.orm import Session
|
||||
from packages.adapters.sqlalchemy_impl.tts_job_repository import (
|
||||
SQLAlchemyTTSJobRepository,
|
||||
)
|
||||
from packages.domain.points_rules import calculate_points_cost
|
||||
from packages.domain.points_service import PointsService
|
||||
from packages.application.cosyvoice_service import CosyVoiceError, CosyVoiceService
|
||||
from packages.application.tts_job.streaming_service import TTSStreamingService
|
||||
from packages.application.tts_job.use_cases import (
|
||||
@@ -55,6 +53,8 @@ from packages.application.tts_job.use_cases import (
|
||||
)
|
||||
from packages.application.tts_job.workflow import TTSWorkflowService
|
||||
from packages.domain import Asset, AssetLibrary, AssetLibraryKind, AssetStatus, ClassificationStatus
|
||||
from packages.domain.points_rules import calculate_points_cost
|
||||
from packages.domain.points_service import PointsService
|
||||
from packages.domain.voice_presets import list_voices
|
||||
from packages.ports.asset_library_repository import AssetLibraryRepository
|
||||
from packages.ports.asset_repository import AssetRepository
|
||||
|
||||
@@ -25,6 +25,7 @@ from app.schemas.voice_clone import (
|
||||
VoiceCloneStatusResponse,
|
||||
)
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query, Response, status
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from packages.adapters.sqlalchemy_impl.voice_clone_profile_repository import (
|
||||
SQLAlchemyVoiceCloneProfileRepository,
|
||||
@@ -43,7 +44,6 @@ from packages.application.voice_clone.workflow import (
|
||||
)
|
||||
from packages.domain.points_rules import calculate_points_cost
|
||||
from packages.domain.points_service import PointsService
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
# remove duplicate
|
||||
_DUMMY_DELETED = ()
|
||||
|
||||
@@ -81,10 +81,10 @@ def points_gate(
|
||||
return decorator
|
||||
|
||||
|
||||
|
||||
def _filter_kwargs(func: Callable, kwargs: dict) -> dict:
|
||||
"""过滤掉目标函数签名不接受的 kwargs(避免 TypeError)。"""
|
||||
import inspect
|
||||
|
||||
try:
|
||||
sig = inspect.signature(func)
|
||||
params = sig.parameters
|
||||
@@ -95,6 +95,7 @@ def _filter_kwargs(func: Callable, kwargs: dict) -> dict:
|
||||
except (ValueError, TypeError):
|
||||
return kwargs
|
||||
|
||||
|
||||
def _extract_kwargs(func: Callable, args: tuple, kwargs: dict) -> dict:
|
||||
"""将位置参数映射到函数签名中的参数名,便于统一按 kwargs 提取。"""
|
||||
sig = inspect.signature(func)
|
||||
|
||||
Reference in New Issue
Block a user