diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1e65aa95bd22e3bf1ae84519977f7812e197573..d92ae1770d45f2ee9295c31984d0bc1921f140a4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,11 +25,11 @@ repos:
     -   id: mixed-line-ending
     -   id: trailing-whitespace
 -   repo: https://github.com/psf/black
-    rev: 24.4.2
+    rev: 24.8.0
     hooks:
     -   id: black
 -   repo: https://github.com/PyCQA/flake8
-    rev: 7.1.0
+    rev: 7.1.1
     hooks:
     -   id: flake8
 -   repo: https://github.com/cheshirekow/cmake-format-precommit