diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 14bb5bc67e75a906fe543de92cd0253e1982564b..4eb3d0402412d7a493a0036e083e5fde971973fc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,7 +27,7 @@ repos:
     hooks:
     -   id: black
 -   repo: https://github.com/PyCQA/flake8
-    rev: 6.1.0
+    rev: 7.0.0
     hooks:
     -   id: flake8
 -   repo: https://github.com/cheshirekow/cmake-format-precommit