Skip to content

Commit

Permalink
⬆️ auto update by pre-commit hooks (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 3, 2024
1 parent 38a0341 commit e344d58
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
30 changes: 15 additions & 15 deletions nonebot/adapters/onebot/v11/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
8 changes: 4 additions & 4 deletions nonebot/adapters/onebot/v11/permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
2 changes: 1 addition & 1 deletion nonebot/adapters/onebot/v12/permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ async def _group(event: GroupMessageEvent) -> bool:
GROUP: Permission = Permission(_group)
"""匹配任意群聊消息类型事件"""

__all__ = ["PRIVATE", "GROUP"]
__all__ = ["GROUP", "PRIVATE"]

0 comments on commit e344d58

Please sign in to comment.