From 521ed2b163c84adf30fcb00aa767582db4291109 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 03:54:42 +0800 Subject: [PATCH] :arrow_up: auto update by pre-commit hooks (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :arrow_up: auto update by pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) * :rotating_light: auto fix by pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- nonebot_plugin_dcqq_relay/dc_to_qq.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd295ad..8904d58 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.6 + rev: v0.9.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -16,7 +16,7 @@ repos: stages: [pre-commit] - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black stages: [pre-commit] diff --git a/nonebot_plugin_dcqq_relay/dc_to_qq.py b/nonebot_plugin_dcqq_relay/dc_to_qq.py index ab99b36..fdc74a8 100644 --- a/nonebot_plugin_dcqq_relay/dc_to_qq.py +++ b/nonebot_plugin_dcqq_relay/dc_to_qq.py @@ -122,7 +122,7 @@ async def build_qq_message( qq_message += MessageSegment.text(embed.group()) else: if embed.group().isdigit(): - qq_message += MessageSegment.text(f'') + qq_message += MessageSegment.text(f"") else: qq_message += MessageSegment.text(embed.group()) if text := content[text_begin:]: