diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6deeebba2e2b7afa58a88ce3916a7ab98854bfa3..58f66357d7bbb74c196c85f647012b9dbf525816 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,16 +13,13 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
 .code_changes:
   rules:
     - changes:
-      - duniterpy/**/*.py
-      - tests/**/*.py
-      - examples/*.py
+      - "**.py"
+      - .pre-commit-config.yaml
 
 .changes:
   rules:
     - changes:
-      - duniterpy/**/*.py
-      - tests/**/*.py
-      - examples/*.py
+      - "**.py"
       - .gitlab-ci.yml
       - Makefile
       - pyproject.toml