diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1f7c6bf5bb9d61195b69e54d010acf22daf47cb0..063ff033aad60bbd48d2947c780dfcee78d8abe7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,4 +76,6 @@ pre-commit:
     before_script:
         - cd ${PROJECT_PATH}
     script:
-        - !reference [ pre-commit, script ]
+        - !reference [.python_install, script]
+        - ${PRE_COMMIT_INSTALL}
+        - ${PRE_COMMIT_RUN}