chore: ruff format

This commit is contained in:
Soulter committed 2026-02-17 14:33:27 +08:00
1 parent 55ac878648
commit c9cdf47603
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -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
+1 -3
View File
@@ -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__ 可读取这些值