Feature: 更新 NB-CLI 新版插件加载格式与文档 (#3614)

This commit is contained in:
worldmozara
2025-10-08 17:39:11 +08:00
committed by GitHub
parent 67e5126f6a
commit 29720bada8
8 changed files with 104 additions and 8 deletions

View File

@@ -0,0 +1,3 @@
[tool.nonebot]
plugins = []
plugin_dirs = []

View File

@@ -1,3 +1,5 @@
[tool.nonebot]
plugins = []
plugin_dirs = []
[tool.nonebot.plugins]
"@local" = []

View File

@@ -93,6 +93,8 @@ def test_load_json():
@_recover
def test_load_toml():
nonebot.load_from_toml("./plugins.legacy.toml")
nonebot.load_from_toml("./plugins.toml")
with pytest.raises(ValueError, match="Cannot find"):