diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index edc9aa91aaae2deedf8a93b2303541b0da144e53..c51706de2c3c7046c7e01246502c4df4e4cb066a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,36 +1,31 @@
-stages:
-- build
-- test-jobs
-- test-tasks
-
 image: python:3.11-bullseye
 
 variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
 cache:
-  key: "${CI_JOB_NAME}"
-
   paths:
     - .cache/pip
-    - .venv
 
-build-env:
-  stage: build
+
+before_script:
+  - pip install poetry
+  - poetry --version
+  - cd build/
+  - poetry install -vv
+  - cd ..
+
+format:
   script:
-    - pip install poetry
-    - poetry --version
-    - cd build/
-    - poetry config virtualenvs.in-project true
-    - poetry install -vv
-    - cd ..
-  
+    - poetry run pre-commit install
+    - poetry run yapf -i -r -p .
+    - poetry run ruff .
+    - poetry run ruff . --fix
+
 test-jobs:
-  stage: test-jobs
   script:
     - poetry run pytest jobs/tests/
 
 test-tasks:
-  stage: test-tasks
   script:
     - poetry run pytest tasks/tests/
\ No newline at end of file