-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
62 lines (49 loc) · 1.61 KB
/
pyproject.toml
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
60
61
62
[tool.poetry]
name = "nonebot-adapter-tailchat"
version = "0.1.0b13"
description = "NoneBot2 Tailchat 适配器 / Tailchat adapter for nonebot2"
authors = ["eya46 <61458340+eya46@users.noreply.github.com>"]
license = "Apache-2.0"
readme = "README.md"
packages = [{ include = "nonebot_adapter_tailchat" }]
keywords = ["bot", "tailchat", "nonebot2"]
repository = "https://github.com/eya46/nonebot-adapter-tailchat"
[tool.poetry.urls]
"Tailchat" = "https://tailchat.msgbyte.com/"
[tool.poetry.dependencies]
python = "^3.9"
nonebot2 = ">=2.3.0"
pydantic = ">=2.0.0"
python-socketio = { extras = ["asyncio-client"], version = "^5.11.2" }
msgpack = "^1.0.8"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.6.3"
nonebot2 = { extras = ["httpx"], version = "^2.3.0" }
pyyaml = "^6.0.1"
[tool.poetry.group.test.dependencies]
nonebug = ">=0.3.7,<0.5.0"
pytest-asyncio = ">=0.23.6,<0.26.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q", "I"]
ignore = [
"E402", # 导包位置
"E722", # 空except
"C901", # 复杂函数名
"PYI048", # Function body must contain exactly one statement
"PYI021", # Docstrings should not be included in stubs
# "T201", # no print
"E742", # I
]
[tool.ruff.lint.per-file-ignores]
"codegen/*" = ["T201"]
"plugins/*" = ["T201"]
"test/*" = ["PT011"] # `pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true