From 52d6d1337fcc277acb075c40eff4cfced0410a14 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:00:21 +0000 Subject: [PATCH 1/2] :arrow_up: auto update by pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.14.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.14.7) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cc3299b..c685650f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + rev: v0.14.7 hooks: - id: ruff args: [--fix] From 4fbb99f20e060b4bed96c92d81e75b8ee1ef352f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:00:29 +0000 Subject: [PATCH 2/2] :rotating_light: auto fix by pre-commit hooks --- zhenxun/builtin_plugins/scheduler/auto_update_group.py | 2 +- zhenxun/builtin_plugins/sign_in/utils.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zhenxun/builtin_plugins/scheduler/auto_update_group.py b/zhenxun/builtin_plugins/scheduler/auto_update_group.py index 8f4b2578..6a3d263a 100644 --- a/zhenxun/builtin_plugins/scheduler/auto_update_group.py +++ b/zhenxun/builtin_plugins/scheduler/auto_update_group.py @@ -50,7 +50,7 @@ async def _prune_stale_tags(): deleted_count = await tag_manager.prune_stale_group_links() if deleted_count > 0: logger.info( - f"定时任务:成功清理了 {deleted_count} 个无效的群组标签" f"关联。", + f"定时任务:成功清理了 {deleted_count} 个无效的群组标签关联。", "群组标签管理", ) else: diff --git a/zhenxun/builtin_plugins/sign_in/utils.py b/zhenxun/builtin_plugins/sign_in/utils.py index 047e8ab3..4a72cb0e 100644 --- a/zhenxun/builtin_plugins/sign_in/utils.py +++ b/zhenxun/builtin_plugins/sign_in/utils.py @@ -22,9 +22,9 @@ from .config import ( lik2relation, ) -assert ( - len(level2attitude) == len(lik2level) == len(lik2relation) -), "好感度态度、等级、关系长度不匹配!" +assert len(level2attitude) == len(lik2level) == len(lik2relation), ( + "好感度态度、等级、关系长度不匹配!" +) AVA_URL = "http://q1.qlogo.cn/g?b=qq&nk={}&s=160"