diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 867c0a01499d868de0399023baf0ef2ee930c66d..687a92fe08d1a04f965d77bdbaa73cc34ddabf26 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,6 +27,6 @@ repos:
     hooks:
     -   id: black
 -   repo: https://github.com/PyCQA/flake8
-    rev: 5.0.2
+    rev: 5.0.4
     hooks:
     -   id: flake8