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 b56ca163c7 [CI] Auto add license to Makefiles with pre-commit (#1696)
b56ca163c7 is described below

commit b56ca163c7032d92c372c72af9e7ed159c53f30d
Author: John Bampton <[email protected]>
AuthorDate: Tue Dec 3 17:32:27 2024 +1000

    [CI] Auto add license to Makefiles with pre-commit (#1696)
---
 .pre-commit-config.yaml |  9 +++++++++
 Makefile                | 17 +++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c3a3ae10ce..6ee1b77ed7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,6 +30,15 @@ repos:
   - repo: https://github.com/Lucas-C/pre-commit-hooks
     rev: v1.5.5
     hooks:
+      - id: insert-license
+        name: Add license for all Makefile files
+        files: ^Makefile$
+        args:
+          - --comment-style
+          - "|#|"
+          - --license-filepath
+          - .github/workflows/license-templates/LICENSE.txt
+          - --fuzzy-match-generates-todo
       - id: insert-license
         name: Add license for all TOML files
         files: \.toml$
diff --git a/Makefile b/Makefile
index 775d1d01c3..9ca0c1e00b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
 check :
        pre-commit run --all-files
 .PHONY : check

Reply via email to