diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5e755fd9080522c46e2e5a3f277fefbc91db164e..29477b16e6754ac3887c22d594d426257b79078f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ image: python:3.10
 
 # Setup virtual environment
 before_script:
-  - pip install poetry
+  - pip install poetry==1.8.0
   - poetry install
   - source $(poetry env info --path)/bin/activate
 
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4b42ad945a7939da86ae526939b1fec4a4e1d321..e7363aaaf4d42664a6c9112dec86dcc51c938405 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,7 +17,7 @@ repos:
       - id: end-of-file-fixer
       - id: trailing-whitespace
   - repo: https://github.com/hadialqattan/pycln
-    rev: v2.4.0
+    rev: v2.5.0
     hooks:
       - id: pycln
         name: remove unused imports