Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

修复代码格式问题,使代码符合项目的 linting 规范。

Changes / 改动

  • Import ordering: 修正了 astrbot/cli/commands/cmd_init.pyastrbot/core/star/context.py 中的导入顺序
  • Auto-formatting: 对所有文件运行 ruff formatruff check --fix

Before / 之前

# astrbot/cli/commands/cmd_init.py
import anyio
from pathlib import Path
import click

After / 之后

# astrbot/cli/commands/cmd_init.py
from pathlib import Path

import anyio
import click

Note: 仍有 4 个 ASYNC109 警告(关于 async 函数中的 timeout 参数),这些需要手动重构使用 anyio.fail_after,不影响功能。


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Refactor main.py for anyio compatibility layer style: 代码格式化 (ruff format & check --fix) Nov 2, 2025
Copilot AI requested a review from LIghtJUNction November 2, 2025 11:10
Copilot finished work on behalf of LIghtJUNction November 2, 2025 11:10
@LIghtJUNction LIghtJUNction deleted the copilot/sub-pr-3272 branch November 2, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants