Skip to content

Commit c9cdf47

Browse files
committed
chore: ruff format
1 parent 55ac878 commit c9cdf47

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/code-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v6
1919
with:
20-
python-version: '3.10'
20+
python-version: '3.12'
2121

2222
- name: Install UV
2323
run: pip install uv

astrbot/core/star/star_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,7 @@ async def load(self, specified_module_path=None, specified_dir_name=None):
514514
logger.info(metadata)
515515
metadata.config = plugin_config
516516
p_name = (metadata.name or "unknown").lower().replace("/", "_")
517-
p_author = (
518-
(metadata.author or "unknown").lower().replace("/", "_")
519-
)
517+
p_author = (metadata.author or "unknown").lower().replace("/", "_")
520518
plugin_id = f"{p_author}/{p_name}"
521519

522520
# 在实例化前注入类属性,保证插件 __init__ 可读取这些值

0 commit comments

Comments
 (0)