diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 049668c07080a1c0529cbdb0aec7b67e44e3b5eb..42b98f8f3ea9367143485dc39186664556a7030b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,7 +2,7 @@ ci:
   autoupdate_branch: devel
 repos:
 - repo: https://github.com/astral-sh/ruff-pre-commit
-  rev: v0.2.2
+  rev: v0.3.2
   hooks:
   - id: ruff
     args:
@@ -18,7 +18,7 @@ repos:
   hooks:
   - id: toml-sort-fix
 - repo: https://github.com/pre-commit/mirrors-clang-format
-  rev: v17.0.6
+  rev: v18.1.1
   hooks:
   - id: clang-format
     args: