diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9e2cc1e3edf158b35344021823ab76b03cd90231..553a9e6b9f4d639dfa8379d6a4b9edd19d81beba 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -2,4 +2,6 @@ repos:
 -   repo: https://github.com/pre-commit/mirrors-autopep8
     rev: ''  # Use the sha / tag you want to point at
     hooks:
-    -   id: autopep8
\ No newline at end of file
+    -   id: autopep8
+        types: [file]
+        files: \.(eb|py)
\ No newline at end of file