-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (48 loc) · 1015 Bytes
/
pyproject.toml
File metadata and controls
59 lines (48 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[project]
name = "NachoBotNapcatAdapter"
version = "0.5.5"
description = "A NachoBot adapter for Napcat"
requires-python = ">=3.11,<3.14"
dependencies = [
"aiohttp>=3.13.3",
"cryptography>=41.0.0",
"fastapi>=0.135.1",
"loguru>=0.7.3",
"pillow>=12.1.1",
"requests>=2.32.5",
"rich>=14.3.3",
"sqlmodel>=0.0.37",
"starlette>=0.52.1",
"tomlkit>=0.14.0",
"uvicorn>=0.41.0",
"websockets>=16.0",
]
[tool.ruff]
include = ["*.py"]
# 行长度设置
line-length = 120
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = []
# 启用的规则
select = [
"E", # pycodestyle 错误
"F", # pyflakes
"B", # flake8-bugbear
]
ignore = ["E711","E501"]
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
# 使用双引号表示字符串
quote-style = "double"
# 尊重魔法尾随逗号
# 例如:
# items = [
# "apple",
# "banana",
# "cherry",
# ]
skip-magic-trailing-comma = false
# 自动检测合适的换行符
line-ending = "auto"