-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (164 loc) · 5.41 KB
/
Copy pathpyproject.toml
File metadata and controls
183 lines (164 loc) · 5.41 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[project]
name = "coolqbot"
version = "0.29.5"
description = "基于 NoneBot2 的聊天机器人"
authors = [{ name = "uy_sun", email = "hmy0119@gmail.com" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.14"
dependencies = [
"pydantic>=2.13.4",
"eorzeaenv>=2.2.11",
"matplotlib>=3.11.1",
"uvicorn[standard]>=0.52.1",
"uvicorn-worker>=0.4.0",
"gunicorn>=26.0.0",
"nonebot2[aiohttp,fastapi,httpx,websockets]>=2.5.0",
"nb-cli>=1.7.4",
"nonebot-adapter-discord>=1.1.9",
"nonebot-adapter-dodo>=0.2.1",
"nonebot-adapter-kaiheila>=0.3.4",
"nonebot-adapter-onebot>=2.4.6",
"nonebot-adapter-qq>=1.7.2",
"nonebot-adapter-red>=0.9.0",
"nonebot-adapter-satori>=1.3.0",
"nonebot-adapter-telegram>=0.1.0b20",
"nonebot-adapter-feishu>=2.7.2",
"nonebot-plugin-wordcloud>=0.11.1",
"nonebot-plugin-treehelp>=0.5.0",
"nonebot-plugin-user[inspect]>=0.6.1",
"nonebot-plugin-alisten>=0.4.3",
"nonebot-plugin-orm[default]>=0.8.3",
"nonebot-plugin-apscheduler>=0.5.0",
"nonebot-plugin-send-anything-anywhere>=0.7.1",
"nonebot-plugin-uninfo>=0.11.1",
"nonebot-plugin-alconna>=0.62.1",
"nonebot-plugin-datastore>=1.3.1",
"nonebot-plugin-localstore>=0.7.4",
"nonebot-plugin-permission>=0.3.1",
"nonebot-session-to-uninfo>=0.0.2",
"nonebot-plugin-sentry>=2.0.0",
"nonebot-plugin-memes==0.8.1",
"nonebot-bison==0.9.14",
"nonebot-plugin-status==0.9.0",
"nonebot-plugin-prometheus==0.4.1",
"nonebot-plugin-abs==1.1.0",
"nonebot-plugin-parser[htmlkit]==2.6.7",
"nonebot-plugin-htmlrender[filehost,prometheus,sentry]>=0.7.2,<0.8.0",
"nonebot-plugin-waiter>=0.8.1",
"playwright==1.61.0",
"pymupdf>=1.28.2",
"ddgs>=9.14.4",
]
[project.urls]
Homepage = "https://github.com/he0119/CoolQBot"
Repository = "https://github.com/he0119/CoolQBot.git"
Issues = "https://github.com/he0119/CoolQBot/issues"
Changelog = "https://github.com/he0119/CoolQBot/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"nonebug>=0.4.4",
"nonebug-saa>=0.5.0",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.8.0",
"pytest-asyncio>=1.4.0",
"pytest-loguru>=0.4.1",
"respx>=0.23.1",
"freezegun>=1.5.5",
"beautifulsoup4>=4.15.0",
"poethepoet>=0.48.0",
"inline-snapshot>=0.35.2",
]
[tool.uv]
override-dependencies = [
# eorzeaenv 与 bison 的 rapidfuzz 依赖会冲突,经测试 eorzeaenv 也支持 3.x 的版本
"rapidfuzz>=3.14.1,<4.0.0",
# 需要 pillow 12 以支持 Python 3.14
"pillow>=12.0.0,<13.0.0",
]
[tool.uv.pip]
universal = true
[tool.poe.tasks]
test = "pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto"
bump = "bump-my-version bump"
show-bump = "bump-my-version show-bump"
"gen:fflogs" = "python src/plugins/ff14/plugins/ff14_fflogs/generate_fflogs_data.py"
"gen:holidays" = "python src/plugins/morning/plugins/morning_greeting/generate_holidays.py"
[tool.nonebot]
plugin_dirs = ["src/plugins"]
builtin_plugins = []
[tool.nonebot.plugins]
"@local" = []
nonebot-plugin-sentry = ["nonebot_plugin_sentry"]
nonebot-plugin-treehelp = ["nonebot_plugin_treehelp"]
nonebot-plugin-wordcloud = ["nonebot_plugin_wordcloud"]
nonebot-plugin-alisten = ["nonebot_plugin_alisten"]
nonebot_plugin_memes = ["nonebot_plugin_memes"]
nonebot-bison = ["nonebot_bison"]
nonebot-plugin-status = ["nonebot_plugin_status"]
nonebot-plugin-prometheus = ["nonebot_plugin_prometheus"]
nonebot-plugin-inspect = ["nonebot_plugin_inspect"]
nonebot-plugin-abs = ["nonebot_plugin_abs"]
nonebot-plugin-parser = ["nonebot_plugin_parser"]
[tool.nonebot.adapters]
"@local" = []
[tool.pyright]
pythonVersion = "3.14"
pythonPlatform = "All"
typeCheckingMode = "standard"
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = [
"W", # pycodestyle warnings
"E", # pycodestyle errors
"F", # pyflakes
"UP", # pyupgrade
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"TC", # flake8-type-checking
"RUF", # Ruff-specific rules
"I", # isort
]
ignore = [
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
]
[tool.coverage.report]
omit = ["*/migrations/*"]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.bumpversion]
current_version = "0.29.5"
commit = true
message = "chore(release): {new_version} [skip ci]"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "## [Unreleased]"
replace = "## [Unreleased]\n\n## [{new_version}] - {now:%Y-%m-%d}"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
regex = true
search = "\\[Unreleased\\]: (https://.+?)v{current_version}\\.\\.\\.HEAD"
replace = "[Unreleased]: \\1v{new_version}...HEAD\n[{new_version}]: \\1v{current_version}...v{new_version}"
[[tool.bumpversion.files]]
filename = "uv.lock"
search = "name = \"coolqbot\"\nversion = \"{current_version}\""
replace = "name = \"coolqbot\"\nversion = \"{new_version}\""