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 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(), )