From 76f972a5c8a6fbdb98d007cdbc2a3cc5534dd4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E5=AD=90?= Date: Fri, 16 Jun 2023 13:27:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20#37=20=E6=AD=A3=E5=88=99=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix --- nonebot_plugin_what2eat/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_what2eat/__init__.py b/nonebot_plugin_what2eat/__init__.py index ce01919..bcba772 100644 --- a/nonebot_plugin_what2eat/__init__.py +++ b/nonebot_plugin_what2eat/__init__.py @@ -5,7 +5,7 @@ GroupMessageEvent, Message, MessageEvent, MessageSegment) from nonebot.matcher import Matcher -from nonebot.params import Arg, ArgStr, CommandArg, Depends, RegexMatched +from nonebot.params import Arg, ArgStr, CommandArg, Depends, RegexStr from nonebot.permission import SUPERUSER from nonebot.plugin import PluginMetadata from nonebot.typing import T_State @@ -63,7 +63,7 @@ @what2eat.handle() -async def _(event: MessageEvent, args: str = RegexMatched()): +async def _(event: MessageEvent, args: str = RegexStr()): if args[-2:] == "帮助": await what2eat.finish(__what2eat_usages__) @@ -72,7 +72,7 @@ async def _(event: MessageEvent, args: str = RegexMatched()): @what2drink.handle() -async def _(event: MessageEvent, args: str = RegexMatched()): +async def _(event: MessageEvent, args: str = RegexStr()): if args[-2:] == "帮助": await what2drink.finish(__what2eat_usages__) From 9e4474133b00395fb44953446427076016b83bc9 Mon Sep 17 00:00:00 2001 From: KafCoppelia <69038090+KafCoppelia@users.noreply.github.com> Date: Sun, 18 Jun 2023 17:53:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Revert=20"fix:=20#37=20=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E5=A4=B1=E6=95=88"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_what2eat/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot_plugin_what2eat/__init__.py b/nonebot_plugin_what2eat/__init__.py index bcba772..ce01919 100644 --- a/nonebot_plugin_what2eat/__init__.py +++ b/nonebot_plugin_what2eat/__init__.py @@ -5,7 +5,7 @@ GroupMessageEvent, Message, MessageEvent, MessageSegment) from nonebot.matcher import Matcher -from nonebot.params import Arg, ArgStr, CommandArg, Depends, RegexStr +from nonebot.params import Arg, ArgStr, CommandArg, Depends, RegexMatched from nonebot.permission import SUPERUSER from nonebot.plugin import PluginMetadata from nonebot.typing import T_State @@ -63,7 +63,7 @@ @what2eat.handle() -async def _(event: MessageEvent, args: str = RegexStr()): +async def _(event: MessageEvent, args: str = RegexMatched()): if args[-2:] == "帮助": await what2eat.finish(__what2eat_usages__) @@ -72,7 +72,7 @@ async def _(event: MessageEvent, args: str = RegexStr()): @what2drink.handle() -async def _(event: MessageEvent, args: str = RegexStr()): +async def _(event: MessageEvent, args: str = RegexMatched()): if args[-2:] == "帮助": await what2drink.finish(__what2eat_usages__) From 03673a86bdc7c8570ae467d19c8c6d5c5c4f518d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 20:14:30 +0000 Subject: [PATCH 3/3] :arrow_up: auto update by pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/isort: 5.12.0 → 6.0.0](https://github.com/pycqa/isort/compare/5.12.0...6.0.0) - https://github.com/pre-commit/mirrors-autopep8 → https://github.com/hhatto/autopep8 - [github.com/hhatto/autopep8: v2.0.2 → v2.3.2](https://github.com/hhatto/autopep8/compare/v2.0.2...v2.3.2) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.6 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.6...v4.0.0-alpha.8) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84fed0e..fd54513 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,26 +7,26 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.0 hooks: - id: isort - stages: [commit] + stages: [pre-commit] - - repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v2.0.2 + - repo: https://github.com/hhatto/autopep8 + rev: v2.3.2 hooks: - id: autopep8 - stages: [commit] + stages: [pre-commit] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.6 + rev: v4.0.0-alpha.8 hooks: - id: prettier types_or: [markdown, yaml, json] - stages: [commit] + stages: [pre-commit] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer