modify: 脚本 ruff F541 清理

This commit is contained in:
2026-08-14 16:33:04 +08:00
parent d51633db4d
commit b89881ce64
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -72,13 +72,13 @@ class BuildReport:
"""打印结构化的构建总结"""
sep = "=" * 60
print(f"\n{sep}")
print(f" 🏗️ CHONGMING 构建报告")
print(" 🏗️ CHONGMING 构建报告")
print(f"{sep}")
print(f" 构建模式 : {self.mode}")
print(f" 总耗时 : {self.total_duration:.2f}s")
print(f" 构建状态 : {'✅ 成功' if self.all_success else '❌ 失败'}")
print(f"{sep}")
print(f" 步骤明细:")
print(" 步骤明细:")
for i, step in enumerate(self.steps, 1):
icon = "✅" if step.success else "❌"
msg = f" ({step.message})" if step.message else ""
+1 -1
View File
@@ -310,7 +310,7 @@ def main():
init_file.write_text(init_code, encoding="utf-8")
print(f"✅ 生成: {init_file}")
print(f"\n📋 生成的模型:")
print("\n📋 生成的模型:")
for route in routes:
method = route["method"]
name = route["name"]
+1 -1
View File
@@ -299,7 +299,7 @@ def generate_plugin(name: str, operations: list[str]) -> int:
print(f"\n📋 插件 '{name}' 已就绪,下一步:")
print(f" 1. uv run gen_models config/workers/{name} src/plugins/{name}")
print(f" 2. 编辑 src/plugins/{name}/router/ 实现业务逻辑")
print(f" 3. uv run serve")
print(" 3. uv run serve")
return 0