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 fadc9535ba [CI] Add two pre-commit hooks forbid and remove tabs (#2825)
fadc9535ba is described below

commit fadc9535ba82084a55475c60cf5b3648fc4bf41d
Author: John Bampton <[email protected]>
AuthorDate: Thu Apr 2 06:00:05 2026 +1000

    [CI] Add two pre-commit hooks forbid and remove tabs (#2825)
---
 .pre-commit-config.yaml                                          | 9 +++++++++
 .../java/org/apache/sedona/core/formatMapper/testSerNetCDF.java  | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bd144cd19f..69fc8821e7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -298,6 +298,15 @@ repos:
           - --license-filepath
           - .github/workflows/license-templates/LICENSE.txt
           - --fuzzy-match-generates-todo
+      - id: forbid-tabs
+        name: run forbid-tabs
+        description: check the codebase for tabs
+        exclude: 
^python/sedona/doc/make\.bat$|^python/sedona/doc/Makefile$|^spark/common/src/test/resources/.*$|^Makefile$|\.csv$|\.md$|\.tsv$
+      - id: remove-tabs
+        name: run remove-tabs
+        description: find and convert tabs to spaces
+        args: [--whitespaces-count, '2']
+        exclude: 
^python/sedona/doc/make\.bat$|^python/sedona/doc/Makefile$|^spark/common/src/test/resources/.*$|^Makefile$|\.csv$|\.md$|\.tsv$
   - repo: https://github.com/asottile/pyupgrade
     rev: v3.21.2
     hooks:
diff --git 
a/spark/common/src/test/java/org/apache/sedona/core/formatMapper/testSerNetCDF.java
 
b/spark/common/src/test/java/org/apache/sedona/core/formatMapper/testSerNetCDF.java
index ff0ba53e05..fe72ff0873 100644
--- 
a/spark/common/src/test/java/org/apache/sedona/core/formatMapper/testSerNetCDF.java
+++ 
b/spark/common/src/test/java/org/apache/sedona/core/formatMapper/testSerNetCDF.java
@@ -37,7 +37,7 @@ public class testSerNetCDF {
 
   @BeforeClass
   public static void setUpBeforeClass() throws Exception {
-    //         filename = 
System.getProperty("user.dir")+"/src/test/resources/" +
+    // filename = System.getProperty("user.dir")+"/src/test/resources/" +
     // "MYD11_L2.A2017091.0155.006.2017094143610.hdf";
   }
 

Reply via email to