diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a7eea1688213b26a108a54a9cc8aa5eec76b8c5f..5e3b0cb9c7c48e9e0454434c9ae848646ba15ce9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,10 +1,10 @@
 repos:
   - repo: https://github.com/ambv/black
-    rev: stable
+    rev: 19.10b0
     hooks:
       - id: black
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v1.3.0
+    rev: v2.4.0
     hooks:
       - id: flake8
         args: ['--max-line-length=140', '--ignore=E203,E402']