From c54ab20f740d08c56e173790aacb9ab4d752c62a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:06:01 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.2.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.2.0...26.1.0) - [github.com/pycqa/isort: 5.13.2 → 8.0.1](https://github.com/pycqa/isort/compare/5.13.2...8.0.1) - [github.com/pycqa/flake8: 7.0.0 → 7.3.0](https://github.com/pycqa/flake8/compare/7.0.0...7.3.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e646f1..4b7506a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ repos: - - repo: https://github.com/psf/black - rev: 24.2.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black language_version: python3.10 - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 8.0.1 hooks: - id: isort name: isort (python) exclude: ^module/.*$ - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace From 669b5eb5e45b22d53ba11598948740ba7d7903a5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 20:12:14 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- library/ui/element/qrcode.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/ui/element/qrcode.py b/library/ui/element/qrcode.py index 34a0946..3dc6594 100644 --- a/library/ui/element/qrcode.py +++ b/library/ui/element/qrcode.py @@ -91,8 +91,7 @@ def to_e(self, *args, schema: ColorSchema, page_cfg: PageConfig, **kwargs): CLASS("color-foreground-bg round-corner"), style=f"padding: {padding}; ", ), - ScriptBox( - script=f""" + ScriptBox(script=f""" new QRCode("{self.__hash__()}", {{ text: "{self.content}", width: {self.size}, @@ -101,6 +100,5 @@ def to_e(self, *args, schema: ColorSchema, page_cfg: PageConfig, **kwargs): colorLight : "{schema.FOREGROUND.hex(dark=False)}", correctLevel : QRCode.CorrectLevel.H }}); - """ - ).to_e(), + """).to_e(), )