From 4a0aaca2e96297eb30676093aeaa6e2d15b22918 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 May 2024 19:18:03 -0400
Subject: [PATCH] ci: [pre-commit.ci] autoupdate (#244)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* ci: [pre-commit.ci] autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.4.3)
- [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0)
* style: [pre-commit.ci] auto fixes [...]
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
---
.pre-commit-config.yaml | 4 ++--
examples/icon_explorer.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1ff6092..97efe270 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,7 +5,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.3.5
+ rev: v0.4.3
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
@@ -17,7 +17,7 @@ repos:
- id: validate-pyproject
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.9.0
+ rev: v1.10.0
hooks:
- id: mypy
exclude: tests|examples
diff --git a/examples/icon_explorer.py b/examples/icon_explorer.py
index e50e896f..8f2c80fc 100644
--- a/examples/icon_explorer.py
+++ b/examples/icon_explorer.py
@@ -88,7 +88,7 @@ def setSize(self, size):
self.updatePixmapLabels()
def createHeaderLabel(self, text):
- label = QtWidgets.QLabel("%s" % text)
+ label = QtWidgets.QLabel(f"{text}")
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
return label