This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 34874ca1b8 [CI] pre-commit(insert-license): fix bug in comment markers 
for .c and .h (#1884)
34874ca1b8 is described below

commit 34874ca1b8e76e9dcdc0c89cc38ce1dea6814132
Author: John Bampton <[email protected]>
AuthorDate: Fri Mar 28 14:59:25 2025 +1000

    [CI] pre-commit(insert-license): fix bug in comment markers for .c and .h 
(#1884)
---
 .pre-commit-config.yaml | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 00a6c1e621..a1defa0e6c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,20 @@ repos:
     rev: v1.5.5
     hooks:
       - id: insert-license
-        name: add license for all .c and .h files
-        files: \.(c|h)$
+        name: add license for all .c files
+        files: \.c$
         args:
           - --comment-style
-          - "/*|*|*/"
+          - "/*| *| */"
+          - --license-filepath
+          - .github/workflows/license-templates/LICENSE.txt
+          - --fuzzy-match-generates-todo
+      - id: insert-license
+        name: add license for all .h files
+        files: \.h$
+        args:
+          - --comment-style
+          - "/*| *| */"
           - --license-filepath
           - .github/workflows/license-templates/LICENSE.txt
           - --fuzzy-match-generates-todo

Reply via email to