fix: 修复nonebot无法加载项目的问题
This commit is contained in:
@@ -1,9 +1,20 @@
|
|||||||
|
[project]
|
||||||
|
name = "MaiMaiBot"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "MaiMaiBot"
|
||||||
|
|
||||||
|
[tool.nonebot]
|
||||||
|
plugins = ["src.plugins.chat"]
|
||||||
|
plugin_dirs = ["src/plugins"]
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
|
||||||
include = ["*.py"]
|
include = ["*.py"]
|
||||||
|
|
||||||
# 行长度设置
|
# 行长度设置
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
[lint]
|
[tool.ruff.lint]
|
||||||
fixable = ["ALL"]
|
fixable = ["ALL"]
|
||||||
unfixable = []
|
unfixable = []
|
||||||
|
|
||||||
@@ -19,7 +30,7 @@ select = [
|
|||||||
|
|
||||||
ignore = ["E711"]
|
ignore = ["E711"]
|
||||||
|
|
||||||
[format]
|
[tool.ruff.format]
|
||||||
docstring-code-format = true
|
docstring-code-format = true
|
||||||
indent-style = "space"
|
indent-style = "space"
|
||||||
|
|
||||||
Reference in New Issue
Block a user