Skip to content

Commit 5e3c4e3

Browse files
committed
⬆️ drop python 3.9
1 parent 5bc13cf commit 5e3c4e3

File tree

150 files changed

+2782
-2341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+2782
-2341
lines changed

example/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
async def _():
21-
from nonebot_plugin_alconna import Target, UniMessage, SupportScope
21+
from nonebot_plugin_alconna import SupportScope, Target, UniMessage
2222

2323
await Target.group("123456789", SupportScope.qq_client).send(UniMessage.image(path="test.png"))
2424

example/plugins/demo.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
from typing import Union, Literal
1+
from typing import Literal, Union
22

3-
from nonebot import require
4-
from nonebot.adapters.onebot.v12 import Bot
5-
from importlib_metadata import distributions
6-
from nonebot.adapters.onebot.v12.event import GroupMessageDeleteEvent
73
from arclet.alconna import (
8-
Args,
9-
Field,
10-
Option,
114
Alconna,
5+
Args,
126
Arparma,
13-
MultiVar,
14-
Subcommand,
157
CommandMeta,
168
Duplication,
9+
Field,
10+
MultiVar,
11+
Option,
12+
Subcommand,
1713
SubcommandStub,
14+
command_manager,
1815
namespace,
1916
store_true,
20-
command_manager,
2117
)
18+
from importlib_metadata import distributions
19+
from nonebot import require
20+
from nonebot.adapters.onebot.v12 import Bot
21+
from nonebot.adapters.onebot.v12.event import GroupMessageDeleteEvent
2222

2323
require("nonebot_plugin_alconna")
2424
require("nonebot_plugin_waiter")
2525

2626
from nonebot_plugin_waiter import waiter
2727

28-
from nonebot_plugin_alconna.builtins.extensions.shortcut import SuperUserShortcutExtension
2928
from nonebot_plugin_alconna import (
29+
AlconnaArg,
30+
AlconnaMatch,
31+
AlconnaMatcher,
3032
At,
3133
Check,
34+
Command,
35+
Extension,
3236
Image,
3337
Match,
3438
Query,
3539
Reply,
36-
UniMsg,
37-
Command,
38-
Extension,
39-
AlconnaArg,
4040
UniMessage,
41-
AlconnaMatch,
42-
AlconnaMatcher,
41+
UniMsg,
4342
UniversalSegment,
43+
add_global_extension,
4444
assign,
4545
funcommand,
46-
on_alconna,
4746
image_fetch,
48-
add_global_extension,
4947
load_builtin_plugins,
48+
on_alconna,
5049
)
50+
from nonebot_plugin_alconna.builtins.extensions.shortcut import SuperUserShortcutExtension
5151

5252
load_builtin_plugins("echo", "lang", "help", "switch", "with")
5353

pdm.lock

Lines changed: 1750 additions & 1317 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 73 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ authors = [
55
{name = "RF-Tar-Railt", email = "[email protected]"},
66
]
77
dependencies = [
8-
"tarina<0.8.0,>=0.7.1",
8+
"tarina<0.8.0,>=0.7.3",
99
"nepattern<1.0,>=0.7.7",
10-
"arclet-alconna<2.0,>=1.8.40",
11-
"arclet-alconna-tools>=0.7.10",
12-
"importlib-metadata>=4.13.0",
13-
"nonebot2>=2.3.0",
14-
"nonebot-plugin-waiter>=0.6.0",
10+
"arclet-alconna<2.0,>=1.8.43",
11+
"arclet-alconna-tools>=0.7.12",
12+
"importlib-metadata>=8.7.0",
13+
"nonebot2>=2.4.3",
14+
"nonebot-plugin-waiter>=0.8.1",
1515
]
1616
dynamic = ["version"]
17-
requires-python = ">=3.9"
17+
requires-python = ">=3.10"
1818
readme = "README.md"
1919
license = {text = "MIT"}
2020
keywords = [
@@ -31,71 +31,6 @@ requires = ["pdm-backend"]
3131
build-backend = "pdm.backend"
3232

3333
[tool.pdm]
34-
[tool.pdm.dev-dependencies]
35-
dev = [
36-
"isort==5.13.2",
37-
"black>=25.1.0",
38-
"loguru>=0.7.2",
39-
"ruff>=0.8.4",
40-
"nonemoji>=0.1.4",
41-
"pre-commit>=3.7.0",
42-
"nonebug>=0.3.7",
43-
"pytest-xdist>=3.6.1",
44-
"pytest-asyncio==0.26.0",
45-
"fastapi>=0.110.2",
46-
"uvicorn[standard]>=0.28.1",
47-
"pydantic>=2.7.0",
48-
"nonebot2[httpx,websockets]>=2.3.0",
49-
"nonebot-adapter-console<0.10.0,>=0.9.0",
50-
"nonebot-adapter-ding>=2.0.0a16",
51-
"nonebot-adapter-discord>=0.1.8",
52-
"nonebot-adapter-dodo>=0.2.1",
53-
"nonebot-adapter-feishu>=2.6.0",
54-
"nonebot-adapter-kaiheila>=0.3.4",
55-
"nonebot-adapter-mail>=1.0.0a7",
56-
"nonebot-adapter-mirai>=2.3.3",
57-
"nonebot-adapter-minecraft>=1.3.2",
58-
"nonebot-adapter-onebot>=2.4.5",
59-
"nonebot-adapter-qq>=1.6.2",
60-
"nonebot-adapter-red>=0.9.0",
61-
"nonebot-adapter-satori>=0.13.4",
62-
"nonebot-adapter-telegram>=0.1.0b18",
63-
"nonebot-adapter-kritor>=0.3.2",
64-
"nonebot-adapter-tailchat>=0.1.0b12",
65-
"nonebot-adapter-wxmp>=0.1.8",
66-
"nonebot-plugin-filehost>=1.1.1",
67-
"nonebot-plugin-send-anything-anywhere>=0.7.1",
68-
"pytest-sugar>=1.0.0",
69-
"pytest-mock>=3.14.0",
70-
"nonebot-plugin-localstore>=0.7.1",
71-
"pyyaml>=6.0.1",
72-
"fix-future-annotations>=0.5.0",
73-
# "nonebot-adapter-heybox>=0.1.1; python_version >= \"3.11\"",
74-
"nonebot-adapter-milky>=0.4.0",
75-
"nonebot-adapter-efchat>=0.1.8",
76-
]
77-
test = [
78-
"nonebug>=0.4.3",
79-
"pytest-xdist>=3.6.1",
80-
"pytest-asyncio>=0.25.3",
81-
"fastapi>=0.110.2",
82-
"uvicorn[standard]>=0.28.1",
83-
"nonebot2[httpx,websockets]>=2.3.0",
84-
"nonebot-adapter-qq>=1.6.2",
85-
"nonebot-adapter-satori>=0.13.4",
86-
"nonebot-adapter-discord>=0.1.8",
87-
"nonebot-adapter-minecraft>=1.3.2",
88-
"nonebot-adapter-onebot>=2.4.5",
89-
"nonebot-plugin-filehost>=1.1.1",
90-
"nonebot-plugin-send-anything-anywhere>=0.7.1",
91-
"pytest-sugar>=1.0.0",
92-
"pytest-mock>=3.14.0",
93-
"nonebot-plugin-localstore>=0.7.1",
94-
"pyyaml>=6.0.1",
95-
"nonebot-adapter-telegram>=0.1.0b18",
96-
"nonebot-adapter-kaiheila>=0.3.4",
97-
"nonebot-adapter-console<0.10.0,>=0.9.0",
98-
]
9934
[tool.pdm.build]
10035
includes = ["src/nonebot_plugin_alconna"]
10136

@@ -113,7 +48,6 @@ extend-exclude = '''
11348
[tool.isort]
11449
profile = "black"
11550
line_length = 120
116-
length_sort = true
11751
skip_gitignore = true
11852
force_sort_within_sections = true
11953
extra_standard_library = ["typing_extensions"]
@@ -223,7 +157,7 @@ mypy-init-return = true
223157
builtins-ignorelist = ["id"]
224158

225159
[tool.pyright]
226-
pythonVersion = "3.9"
160+
pythonVersion = "3.10"
227161
pythonPlatform = "All"
228162
defineConstant = { PYDANTIC_V2 = true }
229163
typeCheckingMode = "basic"
@@ -238,3 +172,68 @@ format = { composite = ["isort ./src/ ./example/ ./tests/","black ./src/ ./examp
238172
[tool.pytest.ini_options]
239173
asyncio_mode = "auto"
240174
asyncio_default_fixture_loop_scope = "session"
175+
176+
[dependency-groups]
177+
dev = [
178+
"isort==5.13.2",
179+
"black>=25.9.0",
180+
"loguru>=0.7.3",
181+
"ruff>=0.14.0",
182+
"nonemoji>=0.1.4",
183+
"pre-commit>=4.3.0",
184+
"nonebug>=0.4.3",
185+
"pytest-xdist>=3.8.0",
186+
"fastapi>=0.119.0",
187+
"uvicorn[standard]>=0.37.0",
188+
"pydantic>=2.12.1",
189+
"nonebot2[httpx,websockets]>=2.4.3",
190+
"nonebot-adapter-console<0.10.0,>=0.9.0",
191+
"nonebot-adapter-ding>=2.0.0a16",
192+
"nonebot-adapter-discord>=0.1.8",
193+
"nonebot-adapter-dodo>=0.2.1",
194+
"nonebot-adapter-feishu>=2.6.2",
195+
"nonebot-adapter-kaiheila>=0.3.4",
196+
"nonebot-adapter-mail>=1.0.0a7",
197+
"nonebot-adapter-mirai>=2.3.3",
198+
"nonebot-adapter-minecraft>=1.5.2",
199+
"nonebot-adapter-onebot>=2.4.6",
200+
"nonebot-adapter-qq>=1.6.5",
201+
"nonebot-adapter-red>=0.9.0",
202+
"nonebot-adapter-satori>=0.13.7",
203+
"nonebot-adapter-telegram>=0.1.0b20",
204+
"nonebot-adapter-kritor>=0.3.2",
205+
"nonebot-adapter-tailchat>=0.1.0b13",
206+
"nonebot-adapter-wxmp>=0.1.8",
207+
"nonebot-plugin-filehost>=1.1.1",
208+
"nonebot-plugin-send-anything-anywhere>=0.7.1",
209+
"pytest-sugar>=1.1.1",
210+
"pytest-mock>=3.15.1",
211+
"nonebot-plugin-localstore>=0.7.4",
212+
"pyyaml>=6.0.3",
213+
"fix-future-annotations>=0.5.0",
214+
"nonebot-adapter-milky>=1.0.0",
215+
"nonebot-adapter-efchat>=0.1.9.post2",
216+
"pytest-asyncio==0.26.0",
217+
]
218+
test = [
219+
"nonebug>=0.4.3",
220+
"pytest-xdist>=3.8.0",
221+
"pytest-asyncio==0.26.0",
222+
"fastapi>=0.119.0",
223+
"uvicorn[standard]>=0.37.0",
224+
"nonebot2[httpx,websockets]>=2.4.3",
225+
"nonebot-adapter-qq>=1.6.5",
226+
"nonebot-adapter-satori>=0.13.7",
227+
"nonebot-adapter-discord>=0.1.8",
228+
"nonebot-adapter-minecraft>=1.5.2",
229+
"nonebot-adapter-onebot>=2.4.6",
230+
"nonebot-plugin-filehost>=1.1.1",
231+
"nonebot-plugin-send-anything-anywhere>=0.7.1",
232+
"pytest-sugar>=1.1.1",
233+
"pytest-mock>=3.15.1",
234+
"nonebot-plugin-localstore>=0.7.4",
235+
"pyyaml>=6.0.3",
236+
"nonebot-adapter-telegram>=0.1.0b20",
237+
"nonebot-adapter-kaiheila>=0.3.4",
238+
"nonebot-adapter-console<0.10.0,>=0.9.0",
239+
]

0 commit comments

Comments
 (0)