From 7680247a2579227ca5924c9b3ed3b1e01146e9d1 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Fri, 24 Jul 2026 00:20:47 +0000 Subject: [PATCH] style: auto-format with black + isort + prettier --- packages/application/recipe/use_cases.py | 2 +- packages/application/template/use_cases.py | 2 -- packages/application/tts_job/use_cases.py | 3 +-- packages/application/video_share/use_cases.py | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/application/recipe/use_cases.py b/packages/application/recipe/use_cases.py index acdb81a32..e28e6c331 100644 --- a/packages/application/recipe/use_cases.py +++ b/packages/application/recipe/use_cases.py @@ -11,8 +11,8 @@ from packages.application.recipe.commands import ( CreateRecipeCommand, UpdateRecipeCommand, ) -from packages.domain.recipe import Recipe, RecipeItem from packages.domain.exceptions import NotFoundError +from packages.domain.recipe import Recipe, RecipeItem from packages.infrastructure.feature_flags import FeatureScope, feature_flags diff --git a/packages/application/template/use_cases.py b/packages/application/template/use_cases.py index ecb1a61b0..4b3f2202e 100755 --- a/packages/application/template/use_cases.py +++ b/packages/application/template/use_cases.py @@ -19,8 +19,6 @@ from packages.domain.exceptions import NotFoundError, ValidationError from packages.domain.template import Template, TemplateCategory, TemplateSegment from packages.ports.template_repository import TemplateRepositoryPort - - VALID_MODES = {m.value for m in EditingMode} VALID_MATERIAL_TYPES = {"人物", "场景"} diff --git a/packages/application/tts_job/use_cases.py b/packages/application/tts_job/use_cases.py index e1fae68f6..07cf9dd98 100644 --- a/packages/application/tts_job/use_cases.py +++ b/packages/application/tts_job/use_cases.py @@ -4,12 +4,11 @@ from __future__ import annotations from typing import List, Optional -from packages.domain.tts_job import TTSJob from packages.application.tts_job.exceptions import TTSJobNotFoundError +from packages.domain.tts_job import TTSJob from packages.ports.tts_job_repository import TTSJobRepository - class CreateTTSJobUseCase: """创建 TTS 合成任务。""" diff --git a/packages/application/video_share/use_cases.py b/packages/application/video_share/use_cases.py index a4f9f8bc5..01a8fe5d5 100755 --- a/packages/application/video_share/use_cases.py +++ b/packages/application/video_share/use_cases.py @@ -10,10 +10,10 @@ from packages.application.video_share.commands import ( CreateShareCommand, UpdateShareCommand, ) +from packages.domain.exceptions import NotFoundError from packages.domain.generated_video import GeneratedVideo from packages.domain.video_share import VideoShare from packages.ports.generated_video_repository import GeneratedVideoRepository -from packages.domain.exceptions import NotFoundError from packages.ports.video_share_repository import VideoShareRepositoryPort