🚨 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
+3 -1
View File
@@ -1 +1,3 @@
assert False
import pytest
pytest.fail("should not be imported")
-1
View File
@@ -1,6 +1,5 @@
from pathlib import Path
import nonebot
from nonebot.plugin import PluginManager, _managers
manager = PluginManager(
@@ -1 +1 @@
from .nested_subplugin2 import a # nopycln: import
from .nested_subplugin2 import a # noqa: F401
+1 -1
View File
@@ -1,4 +1,4 @@
from nonebot.adapters import Event, Message
from nonebot.adapters import Message
from nonebot.params import Arg, ArgStr, ArgPlainText
+1 -1
View File
@@ -1 +1 @@
from . import matchers
from . import matchers as matchers
+2 -1
View File
@@ -4,4 +4,5 @@ test_require = require("export").test
from plugins.export import test
assert test is test_require and test() == "export", "Export Require Error"
assert test is test_require, "Export Require Error"
assert test() == "export", "Export Require Error"