-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
67 lines (57 loc) · 1.62 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
63
64
65
66
67
[tool.poetry]
name = "nonebot-plugin-dcqq-relay"
version = "1.0.3"
description = "在QQ群与 Discord 之间同步消息的 nonebot2 插件"
authors = ["Autuamn_End <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
nonebot2 = {extras = ["aiohttp", "fastapi"], version = "^2.2.1"}
nonebot-adapter-onebot = "^2.4.3"
nonebot-adapter-discord = "^0.1.8"
nonebot-plugin-orm = {extras = ["default"], version = "^0.7.3"}
pillow = "^10.3.0"
filetype = "^1.2.0"
pydub = "^0.25.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.0"
black = "^24.3.0"
nonemoji = "^0.1.2"
pre-commit = "^3.1.0"
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = ["F", "W", "E", "UP", "ASYNC", "B", "C4", "T10", "T20", "PYI", "PT", "Q", "SIM", "TID", "RUF",]
ignore = ["E402", "B008", "B030", "RUF001", "RUF002", "RUF003",]
[tool.ruff.lint.isort]
force-sort-within-sections = true
extra-standard-library = ["typing_extensions"]
combine-as-imports = true
order-by-type = true
relative-imports-order = "closest-to-furthest"
section-order = [
"future",
"standard-library",
"first-party",
"third-party",
"local-folder",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.pyright]
typeCheckingMode = "standard"
reportPrivateImportUsage = false
reportShadowedImports = false
disableBytesTypePromotions = true
pythonPlatform = "All"
pythonVersion = "3.9"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"