🚨 Develop: 添加 ruff linter (#2114)

This commit is contained in:
Ju4tCode
2023-06-24 14:47:35 +08:00
committed by GitHub
parent fe21cbfa1d
commit 3d5dd5969c
53 changed files with 813 additions and 758 deletions

View File

@ -166,7 +166,7 @@ async def _apply_event_preprocessors(
for proc in _event_preprocessors
)
)
except IgnoredException as e:
except IgnoredException:
logger.opt(colors=True).info(
f"Event {escape_tag(event.get_event_name())} is <b>ignored</b>"
)
@ -293,7 +293,7 @@ async def _apply_run_postprocessors(
) -> None:
"""运行事件响应器运行后处理。
Args:
参数:
bot: Bot 对象
event: Event 对象
matcher: 事件响应器