-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (108 loc) · 3.04 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
name = "nonebot_plugin_date_name"
version = "2.0.0"
description = "有web的漂流瓶"
authors = [{ name = "Bingyue", email = "bingyuevip@gmail.com" }]
dependencies = [
"nonebot-plugin-localstore>=0.7.1",
"nonebot-adapter-onebot>=2.4.4",
"nonebot2[fastapi]>=2.3.2",
]
requires-python = ">=3.8"
readme = "README.md"
license = { text = "MIT" }
[project.urls]
homepage = "https://github.com/bingqiu456/nonebot-plugin-date-name"
repository = "https://github.com/bingqiu456/nonebot-plugin-date-name"
[tool.poetry.dependencies]
python = "^3.11"
nonebot2 = {extras = ["fastapi"], version = "^2.0.0"}
aiofiles = ">=0.8.0"
nonebot_plugin_localstore = ">=0.7.0"
httpx = ">=0.23.0"
fastapi = ">=0.110.0"
pydantic = ">=1.10.11"
nonebot-adapter-onebot = ">=2.4.4"
[tool.pdm.dev-dependencies]
dev = [
"nonebot2[fastapi,uvicorn]>=2.3.2",
"nonebot-adapter-onebot>=2.4.4",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle errors
'W', # pycodestyle warnings
'C90', # mccabe
'I', # isort
'N', # PEP8-naming
'UP', # pyupgrade
'YTT', # flake8-2020
'ANN', # flake8-annotations
'ASYNC', # flake8-async
'S', # flake8-bandit
'BLE', # flake8-blind-except
'FBT', # flake8-boolean-trap
'B', # flake8-bugbear
'A', # flake8-builtins
'COM', # flake8-commas
'C4', # flake8-comprehensions
'DTZ', # flake8-datetimez
'T10', # flake8-debugger
'EM', # flake8-errmsg
'FA', # flake8-future-annotations
'ISC', # flake8-implicit-str-concat
'ICN', # flake8-import-conventions
'PIE', # flake8-pie
'T20', # flake8-print
'Q', # flake8-quotes
'RSE', # flake8-raise
'RET', # flake8-return
'SLF', # flake8-self
'SIM', # flake8-simplify
'TID', # flake8-tidy-imports
'TCH', # flake8-type-checking
'ARG', # flake8-unused-arguments
'PTH', # flake8-use-pathlib
'ERA', # eradicate
'PD', # pandas-vet
'PGH', # pygrep-hooks
'PL', # pylint
'TRY', # tryceratops
'FLY', # flynt
'PERF', # Perflint
'FURB', # refurb
'RUF', # Ruff-specific rules
]
ignore = [
'E501', # 过长的行由 ruff format 处理, 剩余的都是字符串
'ANN101', # 由 type checker 自动推断
'ANN102', # 由 type checker 自动推断
'ANN202', # 向 NoneBot 注册的函数
'B008', # NoneBot 依赖注入
'TRY003',
'COM812', # 强制尾随逗号
'TID252', # 相对导入
'ISC001', # format warning
'RUF001', # 全角字符
'RUF002', # 全角字符
'RUF003', # 全角字符
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id"]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.format]
quote-style = 'double'
[tool.nonebot]
adapters = [
{ name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
]
plugins = []
plugin_dirs = ["src/plugins"]
builtin_plugins = []