diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 92a93eb9664ed4202fedbdb4f6c620c2c8b19094..5ea131e08633893bc4c55ed1869b426f1b0d2e4e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,7 +30,7 @@ repos:
     hooks:
     -   id: black
 -   repo: https://github.com/PyCQA/flake8
-    rev: 4.0.1
+    rev: 5.0.4
     hooks:
     -   id: flake8
 -   repo: https://github.com/cheshirekow/cmake-format-precommit