diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b43c5f028d4d086a4129cac73871a3b9d728afeb..af931b6865554ef2b8cb60967b7bd14401ba4f39 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,8 +38,9 @@ format:
     script:
         - clang-format --version # we use clang-format-10 exclusively
         - ls ${CI_PROJECT_DIR}/../waves/scripts
-        - .${CI_PROJECT_DIR}/../waves/scripts/format_code.py
         - ./builds/am-dept/waves/scripts/format_code.py
+        - ./../waves/scripts/format_code.py
+        - .${CI_PROJECT_DIR}/../waves/scripts/format_code.py
         - mkdir -p patches
         - if git diff --patch --exit-code > patches/clang-format.patch; then echo "Clang format changed nothing"; else echo "Clang format found changes to make!"; false; fi
     artifacts: