@@ -7,10 +7,10 @@ requires-python = ">=3.10"
77authors = [{
name =
" owner" ,
email =
" [email protected] " }]
88dependencies = [
99 " httpx>=0.27.0,<1.0.0" ,
10- " nonebot-plugin-alconna>=0.60.0,<1.0.0" , # 跨平台命令解析拓展
11- " nonebot-plugin-apscheduler>=0.5.0,<1.0.0" , # 定时任务
10+ " nonebot-plugin-alconna>=0.60.0,<1.0.0" , # 跨平台命令解析拓展
11+ " nonebot-plugin-apscheduler>=0.5.0,<1.0.0" , # 定时任务
1212 " nonebot-plugin-localstore>=0.7.4,<1.0.0" , # 存储文件
13- " nonebot-plugin-uninfo>=0.10.0,<1.0.0" , # 多平台用户信息获取
13+ " nonebot-plugin-uninfo>=0.10.0,<1.0.0" , # 多平台用户信息获取
1414 " nonebot2>=2.4.3,<3.0.0" ,
1515]
1616
@@ -24,7 +24,8 @@ dev = [
2424 " bump-my-version>=1.2.4" ,
2525 " nonebot2[fastapi]>=2.4.2,<3.0.0" ,
2626 " poethepoet>=0.36.0" ,
27- " ruff>=0.14.5,<1.0.0" ,
27+ " ruff>=0.14.8,<1.0.0" ,
28+ { include-group = " test" },
2829]
2930test = [
3031 " nonebot-adapter-onebot>=2.4.6,<3.0.0" ,
@@ -40,10 +41,13 @@ test = [
4041requires = [" uv_build>=0.9.2,<0.10.0" ]
4142build-backend = " uv_build"
4243
44+ [tool .uv .sources ]
45+ nonebug = { git = " https://github.com/nonebot/nonebug" }
46+
4347[tool .bumpversion ]
4448current_version = " 0.1.0"
4549commit = true
46- message = " 🔖 release: bump vesion from {current_version} to {new_version}"
50+ message = " release: bump vesion from {current_version} to {new_version}"
4751tag = true
4852
4953[[tool .bumpversion .files ]]
@@ -80,65 +84,56 @@ executionEnvironments = [
8084typeCheckingMode = " standard"
8185disableBytesTypePromotions = true
8286
83- [tool .pytest . ini_options ]
87+ [tool .pytest ]
8488addopts = [
85- " -v " , # 详细输出
86- " -s " , # 显示打印信息
87- " --tb=short" , # 简短的错误回溯
88- " -ra" , # 显示所有测试结果摘要
89- " --strict-markers " , # 严格标记模式
90- " --import-mode=prepend " , # 导入模式
89+ " --import-mode=prepend " , # 导入模式
90+ " --strict-markers " , # 严格标记模式
91+ " --tb=short" , # 简短的错误回溯
92+ " -ra" , # 显示所有测试结果摘要
93+ " -s " , # 显示打印信息
94+ " -v " , # 详细输出
9195]
9296pythonpath = [" src" ]
9397asyncio_mode = " auto"
9498asyncio_default_fixture_loop_scope = " session"
9599
96100[tool .ruff ]
97- line-length = 120
98- target-version = " py310"
101+ line-length = 88
99102
100103[tool .ruff .format ]
101104line-ending = " lf"
102105
103106[tool .ruff .lint ]
104107select = [
105- " F" , # Pyflakes
106- " W" , # pycodestyle warnings
107- " E" , # pycodestyle errors
108- " I" , # isort
109- " UP" , # pyupgrade
110- " ASYNC" , # flake8-async
111- " C4" , # flake8-comprehensions
112- " T10" , # flake8-debugger
113- " T20" , # flake8-print
114- " PYI" , # flake8-pyi
115- " PT" , # flake8-pytest-style
116- " Q" , # flake8-quotes
117- " TID" , # flake8-tidy-imports
118- " RUF" , # Ruff-specific rules
108+ " F" , # Pyflakes
109+ " W" , # pycodestyle warnings
110+ " E" , # pycodestyle errors
111+ " I" , # isort
112+ " UP" , # pyupgrade
113+ " ASYNC" , # flake8-async
114+ " C4" , # flake8-comprehensions
115+ " T10" , # flake8-debugger
116+ " T20" , # flake8-print
117+ " PYI" , # flake8-pyi
118+ " PT" , # flake8-pytest-style
119+ " Q" , # flake8-quotes
120+ " TID" , # flake8-tidy-imports
121+ " RUF" , # Ruff-specific rules
119122]
120123ignore = [
121- " E402" , # module-import-not-at-top-of-file
124+ " E402" , # module-import-not-at-top-of-file
122125 " UP037" , # quoted-annotation
123- " RUF001" , # ambiguous-unicode-character-string
124- " RUF002" , # ambiguous-unicode-character-docstring
125- " RUF003" , # ambiguous-unicode-character-comment
126- " W191" , # indentation contains tabs
127- " TID252" , # relative import
126+ " RUF001" , # ambiguous-unicode-character-string
127+ " RUF002" , # ambiguous-unicode-character-docstring
128+ " RUF003" , # ambiguous-unicode-character-comment
129+ " W191" , # indentation contains tabs
130+ " TID252" , # relative- import
128131]
129132
130133[tool .ruff .lint .isort ]
131- force -sort-within-sections = true
134+ length -sort = true
132135known-first-party = [" tests/*" ]
133136extra-standard-library = [" typing_extensions" ]
134137
135- [tool .ruff .lint .flake8-pytest-style ]
136- fixture-parentheses = false
137- mark-parentheses = false
138-
139138[tool .ruff .lint .pyupgrade ]
140139keep-runtime-typing = true
141-
142- [tool .uv ]
143- required-version = " >=0.9.0"
144- default-groups = [" test" , " dev" ]
0 commit comments