@@ -3,69 +3,54 @@ name = "nonebot-plugin-template"
33version = " 0.1.0"
44description = " 插件描述"
55readme = " README.md"
6- authors = [{
name =
" owner" ,
email =
" [email protected] " }]
76requires-python = " >=3.10"
7+ authors = [{
name =
" owner" ,
email =
" [email protected] " }]
88dependencies = [
9- " nonebot2>=2.4.3,<3.0.0" ,
10-
11- " nonebot-plugin-localstore>=0.7.4,<1.0.0" , # 存储文件
12- " nonebot-plugin-apscheduler>=0.5.0,<1.0.0" , # 定时任务
13-
14- " nonebot-plugin-uninfo>=0.10.0,<1.0.0" , # 多平台用户信息获取
15- " nonebot-plugin-alconna>=0.60.0,<1.0.0" , # 跨平台命令解析拓展
169 # "nonebot-adapter-onebot>=2.4.6,<3.0.0"
17-
1810 " httpx>=0.27.0,<1.0.0" ,
11+ " nonebot-plugin-alconna>=0.60.0,<1.0.0" , # 跨平台命令解析拓展
12+ " nonebot-plugin-apscheduler>=0.5.0,<1.0.0" , # 定时任务
13+ " nonebot-plugin-localstore>=0.7.4,<1.0.0" , # 存储文件
14+ " nonebot-plugin-uninfo>=0.10.0,<1.0.0" , # 多平台用户信息获取
15+ " nonebot2>=2.4.3,<3.0.0" ,
1916]
2017
2118[project .urls ]
2219Homepage = " https://github.com/owner/nonebot-plugin-template"
23- Repository = " https://github.com/owner/nonebot-plugin-template.git"
2420Issues = " https://github.com/owner/nonebot-plugin-template/issues"
25-
21+ Repository = " https://github.com/owner/nonebot-plugin-template.git "
2622
2723[dependency-groups ]
2824dev = [
25+ " bump-my-version>=1.2.4" ,
2926 " nonebot2[fastapi]>=2.4.2,<3.0.0" ,
27+ " poethepoet>=0.36.0" ,
3028 " ruff>=0.14.3,<1.0.0" ,
31- " bump-my-version>=1.2.4" ,
3229]
33-
3430test = [
35- " nonebot2[fastapi]>=2.4.2,<3.0.0" ,
3631 " nonebot-adapter-onebot>=2.4.6,<3.0.0" ,
32+ " nonebot2[fastapi]>=2.4.2,<3.0.0" ,
3733 " nonebug>=0.3.7,<1.0.0" ,
38- " pytest-xdist>=3.8.0,<4.0 .0" ,
34+ " poethepoet>=0.36 .0" ,
3935 " pytest-asyncio>=1.2.0,<1.3.0" ,
4036 " pytest-cov>=7.0.0" ,
41- " poethepoet>=0.36 .0" ,
37+ " pytest-xdist>=3.8.0,<4.0 .0" ,
4238]
4339
44- [tool .uv ]
45- required-version = " >=0.9.0"
46- default-groups = [" test" , " dev" ]
47-
48- [tool .nonebot ]
49- plugins = [" nonebot_plugin_template" ]
40+ [build-system ]
41+ requires = [" uv_build>=0.9.2,<0.10.0" ]
42+ build-backend = " uv_build"
5043
51- [tool .pytest .ini_options ]
52- asyncio_mode = " auto"
53- asyncio_default_fixture_loop_scope = " session"
54- pythonpath = [" src" ]
55- addopts = [
56- " -v" , # 详细输出
57- " -s" , # 显示打印信息
58- " --tb=short" , # 简短的错误回溯
59- " -ra" , # 显示所有测试结果摘要
60- " --strict-markers" , # 严格标记模式
61- # "--doctest-modules", # 运行文档测试
62- " --import-mode=prepend" , # 导入模式
63- ]
44+ [tool .bumpversion ]
45+ current_version = " 0.1.0"
46+ commit = true
47+ message = " 🔖 release: bump vesion from {current_version} to {new_version}"
48+ tag = true
6449
65- [tool .poe . tasks ]
66- test = " pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto "
67- bump = " bump-my-version bump "
68- show-bump = " bump-my-version show-bump "
50+ [[ tool .bumpversion . files ] ]
51+ filename = " uv.lock "
52+ search = " name = \" nonebot-plugin-template \"\n version = \" {current_version} \" "
53+ replace = " name = \" nonebot-plugin-template \"\n version = \" {new_version} \" "
6954
7055[tool .coverage .report ]
7156exclude_lines = [
@@ -75,6 +60,41 @@ exclude_lines = [
7560 " except ImportError:" ,
7661]
7762
63+ [tool .nonebot ]
64+ plugins = [" nonebot_plugin_template" ]
65+
66+ [tool .poe .tasks ]
67+ test = " pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto"
68+ bump = " bump-my-version bump"
69+ show-bump = " bump-my-version show-bump"
70+
71+ [tool .pyright ]
72+ pythonVersion = " 3.10"
73+ pythonPlatform = " All"
74+ defineConstant = { PYDANTIC_V2 = true }
75+ executionEnvironments = [
76+ { root = " ./tests" , extraPaths = [
77+ " ./src" ,
78+ ] },
79+ { root = " ./src" },
80+ ]
81+ typeCheckingMode = " standard"
82+ disableBytesTypePromotions = true
83+
84+ [tool .pytest .ini_options ]
85+ addopts = [
86+ " -v" , # 详细输出
87+ " -s" , # 显示打印信息
88+ " --tb=short" , # 简短的错误回溯
89+ " -ra" , # 显示所有测试结果摘要
90+ " --strict-markers" , # 严格标记模式
91+ # "--doctest-modules", # 运行文档测试
92+ " --import-mode=prepend" , # 导入模式
93+ ]
94+ pythonpath = [" src" ]
95+ asyncio_mode = " auto"
96+ asyncio_default_fixture_loop_scope = " session"
97+
7898[tool .ruff ]
7999line-length = 120
80100target-version = " py310"
@@ -84,33 +104,31 @@ line-ending = "lf"
84104
85105[tool .ruff .lint ]
86106select = [
87- " F" , # Pyflakes
88- " W" , # pycodestyle warnings
89- " E" , # pycodestyle errors
90- " I" , # isort
91- " UP" , # pyupgrade
92- " ASYNC" , # flake8-async
93- " C4" , # flake8-comprehensions
94- " T10" , # flake8-debugger
95- " T20" , # flake8-print
96- " PYI" , # flake8-pyi
97- " PT" , # flake8-pytest-style
98- " Q" , # flake8-quotes
99- " TID" , # flake8-tidy-imports
100- " RUF" , # Ruff-specific rules
107+ " F" , # Pyflakes
108+ " W" , # pycodestyle warnings
109+ " E" , # pycodestyle errors
110+ " I" , # isort
111+ " UP" , # pyupgrade
112+ " ASYNC" , # flake8-async
113+ " C4" , # flake8-comprehensions
114+ " T10" , # flake8-debugger
115+ " T20" , # flake8-print
116+ " PYI" , # flake8-pyi
117+ " PT" , # flake8-pytest-style
118+ " Q" , # flake8-quotes
119+ " TID" , # flake8-tidy-imports
120+ " RUF" , # Ruff-specific rules
101121]
102-
103122ignore = [
104- " E402" , # module-import-not-at-top-of-file
123+ " E402" , # module-import-not-at-top-of-file
105124 " UP037" , # quoted-annotation
106- " RUF001" , # ambiguous-unicode-character-string
107- " RUF002" , # ambiguous-unicode-character-docstring
108- " RUF003" , # ambiguous-unicode-character-comment
109- " W191" , # indentation contains tabs
110- " TID252" , # relative import
125+ " RUF001" , # ambiguous-unicode-character-string
126+ " RUF002" , # ambiguous-unicode-character-docstring
127+ " RUF003" , # ambiguous-unicode-character-comment
128+ " W191" , # indentation contains tabs
129+ " TID252" , # relative import
111130]
112131
113-
114132[tool .ruff .lint .isort ]
115133force-sort-within-sections = true
116134known-first-party = [" tests/*" ]
@@ -123,33 +141,6 @@ mark-parentheses = false
123141[tool .ruff .lint .pyupgrade ]
124142keep-runtime-typing = true
125143
126-
127- [tool .pyright ]
128- pythonVersion = " 3.10"
129- pythonPlatform = " All"
130- defineConstant = { PYDANTIC_V2 = true }
131- executionEnvironments = [
132- { root = " ./tests" , extraPaths = [
133- " ./src" ,
134- ] },
135- { root = " ./src" },
136- ]
137- typeCheckingMode = " standard"
138- reportShadowedImports = false
139- disableBytesTypePromotions = true
140-
141-
142- [build-system ]
143- requires = [" uv_build>=0.9.2,<0.10.0" ]
144- build-backend = " uv_build"
145-
146- [tool .bumpversion ]
147- current_version = " 0.1.0"
148- commit = true
149- message = " 🔖 release: bump vesion from {current_version} to {new_version}"
150- tag = true
151-
152- [[tool .bumpversion .files ]]
153- filename = " uv.lock"
154- search = " name = \" nonebot-plugin-template\"\n version = \" {current_version}\" "
155- replace = " name = \" nonebot-plugin-template\"\n version = \" {new_version}\" "
144+ [tool .uv ]
145+ required-version = " >=0.9.0"
146+ default-groups = [" test" , " dev" ]
0 commit comments