From 434facce02f6e695accee977a2b3be4004a1abca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:53:12 +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.12.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.12.11) --- .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..68775818 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.12.11 hooks: - id: ruff args: [--fix] From c41875b401ce293c6c55cbe9a4602a083d8801ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 16:53:19 +0000 Subject: [PATCH 2/2] :rotating_light: auto fix by pre-commit hooks --- zhenxun/builtin_plugins/sign_in/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zhenxun/builtin_plugins/sign_in/utils.py b/zhenxun/builtin_plugins/sign_in/utils.py index 2a78aa68..5f956938 100644 --- a/zhenxun/builtin_plugins/sign_in/utils.py +++ b/zhenxun/builtin_plugins/sign_in/utils.py @@ -21,9 +21,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"