🚨 Develop: 完全使用 ruff 替代 isort 与 black (#3151)

This commit is contained in:
Ju4tCode
2024-12-01 12:31:11 +08:00
committed by GitHub
parent 6dad4d2a74
commit 081dc8352d
83 changed files with 1815 additions and 1769 deletions

View File

@ -4,18 +4,18 @@ import pytest
import nonebot
from nonebot.adapters import Event
from nonebot.typing import T_RuleChecker
from nonebot.matcher import Matcher, matchers
from nonebot.rule import (
RegexRule,
IsTypeRule,
CommandRule,
EndswithRule,
KeywordsRule,
FullmatchRule,
StartswithRule,
IsTypeRule,
KeywordsRule,
RegexRule,
ShellCommandRule,
StartswithRule,
)
from nonebot.typing import T_RuleChecker
@pytest.mark.parametrize(
@ -109,12 +109,12 @@ def test_on(
import plugins.plugin.matchers as module
from plugins.plugin.matchers import (
TestEvent,
expire_time,
handler,
permission,
priority,
rule,
state,
handler,
priority,
permission,
expire_time,
)
matcher = getattr(module, matcher_name)