diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bb2dfa1a6897347679b3da2cb1bb15548e155a8b..f1497effdbc1099618fb840b7a842bbea8c6985b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,4 +21,4 @@ repos:
     rev: 'master' # Update me!
     hooks:
       - id: bandit
-        exclude: beat/editor/test
+        exclude: (beat/web/.*/tests|eggs/)