diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c830917..4db76f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: autoupdate_commit_msg: "chore: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.14.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/README.md b/README.md index 0f9d7f6..8fa14de 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ _✨ [Nonebot2](https://github.com/nonebot/nonebot2) 表情包制作插件 调 > 本插件自 v0.5.0 版本起与 rust 版 [meme-generator-rs](https://github.com/MemeCrafters/meme-generator-rs) 对接 > > 之前的版本与 python 版 [meme-generator](https://github.com/MemeCrafters/meme-generator) 对接 -> +> > 请注意区分!!! ### 安装 diff --git a/nonebot_plugin_memes_api/matchers/image_operations.py b/nonebot_plugin_memes_api/matchers/image_operations.py index 740bc52..f06b699 100644 --- a/nonebot_plugin_memes_api/matchers/image_operations.py +++ b/nonebot_plugin_memes_api/matchers/image_operations.py @@ -199,7 +199,8 @@ async def _(matcher: Matcher): await matcher.finish( "简单图片操作,支持的操作:\n" + "\n".join( - f"{i+1}、{'/'.join(command.keywords)}" for i, command in enumerate(commands) + f"{i + 1}、{'/'.join(command.keywords)}" + for i, command in enumerate(commands) ) )