From 64079233fc818a469ff4dfa7d5283cf89bd4e449 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Tue, 5 Sep 2023 21:50:56 +0200
Subject: [PATCH] ci: simplify files matching rules

Matching in addition docs/index.md, but it should be fine

Trigger pre-commit jobs when pre-commit-config.yaml changes
---
 .gitlab-ci.yml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6deeebb..58f6635 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
-- 
GitLab