From 72bb4c56680526e7081955cc7ec07a7565b0ebd6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:36:51 +0000 Subject: [PATCH 1/2] chore: auto update by pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.14.10) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From c29a629dc1504e71e66aca6c9d4087b37d758999 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 21:37:12 +0000 Subject: [PATCH 2/2] style: auto fix by pre-commit hooks --- README.md | 2 +- nonebot_plugin_memes_api/matchers/image_operations.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) ) )