🚨 auto fix by pre-commit hooks
Some checks failed
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled

This commit is contained in:
pre-commit-ci[bot] 2025-08-04 16:56:47 +00:00
parent 2445cd8515
commit c0a92bff46
3 changed files with 11 additions and 14 deletions

View File

@ -149,7 +149,7 @@ async def test_check(
"brand_raw": cpuinfo_get_cpu_info["brand_raw"], "brand_raw": cpuinfo_get_cpu_info["brand_raw"],
"baidu": "red", "baidu": "red",
"google": "red", "google": "red",
"system": f"{platform_uname.system} " f"{platform_uname.release}", "system": f"{platform_uname.system} {platform_uname.release}",
"version": __get_version(), "version": __get_version(),
"plugin_count": len(nonebot.get_loaded_plugins()), "plugin_count": len(nonebot.get_loaded_plugins()),
"nickname": BotConfig.self_nickname, "nickname": BotConfig.self_nickname,
@ -244,8 +244,7 @@ async def test_check_arm(
"brand_raw": "", "brand_raw": "",
"baidu": "red", "baidu": "red",
"google": "red", "google": "red",
"system": f"{platform_uname_arm.system} " "system": f"{platform_uname_arm.system} {platform_uname_arm.release}",
f"{platform_uname_arm.release}",
"version": __get_version(), "version": __get_version(),
"plugin_count": len(nonebot.get_loaded_plugins()), "plugin_count": len(nonebot.get_loaded_plugins()),
"nickname": BotConfig.self_nickname, "nickname": BotConfig.self_nickname,

View File

@ -1,5 +1,3 @@
# ruff: noqa: ASYNC230
from pathlib import Path from pathlib import Path
from respx import MockRouter from respx import MockRouter

View File

@ -29,9 +29,9 @@ from .config import (
lik2relation, lik2relation,
) )
assert ( assert len(level2attitude) == len(lik2level) == len(lik2relation), (
len(level2attitude) == len(lik2level) == len(lik2relation) "好感度态度、等级、关系长度不匹配!"
), "好感度态度、等级、关系长度不匹配!" )
AVA_URL = "http://q1.qlogo.cn/g?b=qq&nk={}&s=160" AVA_URL = "http://q1.qlogo.cn/g?b=qq&nk={}&s=160"