From c9cdf4760339673b0ea8b4cbc80b9fad236468af Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 17 Feb 2026 14:33:27 +0800 Subject: [PATCH] chore: ruff format --- .github/workflows/code-format.yml | 2 +- astrbot/core/star/star_manager.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-format.yml b/.github/workflows/code-format.yml index a183f1bb2..3de1bea55 100644 --- a/.github/workflows/code-format.yml +++ b/.github/workflows/code-format.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.10' + python-version: '3.12' - name: Install UV run: pip install uv diff --git a/astrbot/core/star/star_manager.py b/astrbot/core/star/star_manager.py index c6b0f5ac4..51f50aedf 100644 --- a/astrbot/core/star/star_manager.py +++ b/astrbot/core/star/star_manager.py @@ -514,9 +514,7 @@ class PluginManager: logger.info(metadata) metadata.config = plugin_config p_name = (metadata.name or "unknown").lower().replace("/", "_") - p_author = ( - (metadata.author or "unknown").lower().replace("/", "_") - ) + p_author = (metadata.author or "unknown").lower().replace("/", "_") plugin_id = f"{p_author}/{p_name}" # 在实例化前注入类属性,保证插件 __init__ 可读取这些值