From e344d58be1184dd1ff97f67fc8649f95a14b1928 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:41:46 +0800 Subject: [PATCH] :arrow_up: auto update by pre-commit hooks (#122) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- nonebot/adapters/onebot/v11/event.py | 30 +++++++++++------------ nonebot/adapters/onebot/v11/permission.py | 8 +++--- nonebot/adapters/onebot/v12/permission.py | 2 +- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b12ccdf3..b66dc784 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.8.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/nonebot/adapters/onebot/v11/event.py b/nonebot/adapters/onebot/v11/event.py index 712d1f9d..b6ca9899 100644 --- a/nonebot/adapters/onebot/v11/event.py +++ b/nonebot/adapters/onebot/v11/event.py @@ -570,26 +570,26 @@ class HeartbeatMetaEvent(MetaEvent): __all__ = [ "Event", - "MessageEvent", - "PrivateMessageEvent", - "GroupMessageEvent", - "NoticeEvent", - "GroupUploadNoticeEvent", + "FriendAddNoticeEvent", + "FriendRecallNoticeEvent", + "FriendRequestEvent", "GroupAdminNoticeEvent", + "GroupBanNoticeEvent", "GroupDecreaseNoticeEvent", "GroupIncreaseNoticeEvent", - "GroupBanNoticeEvent", - "FriendAddNoticeEvent", + "GroupMessageEvent", "GroupRecallNoticeEvent", - "FriendRecallNoticeEvent", + "GroupRequestEvent", + "GroupUploadNoticeEvent", + "HeartbeatMetaEvent", + "HonorNotifyEvent", + "LifecycleMetaEvent", + "LuckyKingNotifyEvent", + "MessageEvent", + "MetaEvent", + "NoticeEvent", "NotifyEvent", "PokeNotifyEvent", - "LuckyKingNotifyEvent", - "HonorNotifyEvent", + "PrivateMessageEvent", "RequestEvent", - "FriendRequestEvent", - "GroupRequestEvent", - "MetaEvent", - "LifecycleMetaEvent", - "HeartbeatMetaEvent", ] diff --git a/nonebot/adapters/onebot/v11/permission.py b/nonebot/adapters/onebot/v11/permission.py index 0b6b8bc6..519bc5cb 100644 --- a/nonebot/adapters/onebot/v11/permission.py +++ b/nonebot/adapters/onebot/v11/permission.py @@ -67,12 +67,12 @@ async def _group_owner(event: GroupMessageEvent) -> bool: """匹配任意群主群聊消息类型事件""" __all__ = [ + "GROUP", + "GROUP_ADMIN", + "GROUP_MEMBER", + "GROUP_OWNER", "PRIVATE", "PRIVATE_FRIEND", "PRIVATE_GROUP", "PRIVATE_OTHER", - "GROUP", - "GROUP_MEMBER", - "GROUP_ADMIN", - "GROUP_OWNER", ] diff --git a/nonebot/adapters/onebot/v12/permission.py b/nonebot/adapters/onebot/v12/permission.py index 45f562fa..2d83641f 100644 --- a/nonebot/adapters/onebot/v12/permission.py +++ b/nonebot/adapters/onebot/v12/permission.py @@ -25,4 +25,4 @@ async def _group(event: GroupMessageEvent) -> bool: GROUP: Permission = Permission(_group) """匹配任意群聊消息类型事件""" -__all__ = ["PRIVATE", "GROUP"] +__all__ = ["GROUP", "PRIVATE"]