ruff说他有好点子

This commit is contained in:
SengokuCola
2025-03-08 16:10:55 +08:00
parent 25718c9f1e
commit 140bc1ab91
35 changed files with 257 additions and 248 deletions

View File

@@ -5,4 +5,19 @@ description = "New Bot Project"
[tool.nonebot]
plugins = ["src.plugins.chat"]
plugin_dirs = ["src/plugins"]
plugin_dirs = ["src/plugins"]
[tool.ruff]
# 设置 Python 版本
target-version = "py39"
# 启用的规则
select = [
"E", # pycodestyle 错误
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
# 行长度设置
line-length = 88