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