diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d84400..2a5a13e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ repos: - - repo: https://github.com/psf/black - rev: 23.12.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: - flake8-bugbear - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort diff --git a/efb_qq_plugin_go_cqhttp/GoCQHttp.py b/efb_qq_plugin_go_cqhttp/GoCQHttp.py index d4c8807..55cd7d2 100644 --- a/efb_qq_plugin_go_cqhttp/GoCQHttp.py +++ b/efb_qq_plugin_go_cqhttp/GoCQHttp.py @@ -123,7 +123,10 @@ async def forward_msgs_wrapper(msg_elements: List[Dict[str, Any]]) -> List[Dict[ fmt_msgs: List[Dict] = [] for msg in msg_elements: from_user = await self.get_user_info(msg["sender"]["user_id"]) - header_text = {"data": {"text": f'{from_user["remark"]}({from_user["nickname"]}):\n'}, "type": "text"} + header_text = { + "data": {"text": f'{from_user["remark"]}({from_user["nickname"]}):\n'}, + "type": "text", + } footer_text = {"data": {"text": "\n- - - - - - - - - - - - - - -\n"}, "type": "text"} msg["content"].insert(0, header_text) msg["content"].append(footer_text)