diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index af931b6865554ef2b8cb60967b7bd14401ba4f39..6fae4857f79d1e22d290b417b3109182a6a09193 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,10 +37,7 @@ format:
     stage: build
     script:
         - clang-format --version # we use clang-format-10 exclusively
-        - ls ${CI_PROJECT_DIR}/../waves/scripts
-        - ./builds/am-dept/waves/scripts/format_code.py
-        - ./../waves/scripts/format_code.py
-        - .${CI_PROJECT_DIR}/../waves/scripts/format_code.py
+        - python3 ${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: