diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9c69a442d0910d11461d53418dd7c67313648e64..400847bccddd77e8f9437ed33dce0fbaf48ee745 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -93,8 +93,7 @@ repos:
           - |-
             --no-autodetect
         additional_dependencies:
-          - bandit
-          - pyroma
+          - ".[with_pyroma,with_bandit]"
 
   - repo: https://github.com/pycqa/flake8.git
     rev: 6.0.0