Skip to content

Commit fadc953

Browse files
authored
[CI] Add two pre-commit hooks forbid and remove tabs (#2825)
1 parent 3d9913b commit fadc953

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,15 @@ repos:
298298
- --license-filepath
299299
- .github/workflows/license-templates/LICENSE.txt
300300
- --fuzzy-match-generates-todo
301+
- id: forbid-tabs
302+
name: run forbid-tabs
303+
description: check the codebase for tabs
304+
exclude: ^python/sedona/doc/make\.bat$|^python/sedona/doc/Makefile$|^spark/common/src/test/resources/.*$|^Makefile$|\.csv$|\.md$|\.tsv$
305+
- id: remove-tabs
306+
name: run remove-tabs
307+
description: find and convert tabs to spaces
308+
args: [--whitespaces-count, '2']
309+
exclude: ^python/sedona/doc/make\.bat$|^python/sedona/doc/Makefile$|^spark/common/src/test/resources/.*$|^Makefile$|\.csv$|\.md$|\.tsv$
301310
- repo: https://github.com/asottile/pyupgrade
302311
rev: v3.21.2
303312
hooks:

spark/common/src/test/java/org/apache/sedona/core/formatMapper/testSerNetCDF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class testSerNetCDF {
3737

3838
@BeforeClass
3939
public static void setUpBeforeClass() throws Exception {
40-
// filename = System.getProperty("user.dir")+"/src/test/resources/" +
40+
// filename = System.getProperty("user.dir")+"/src/test/resources/" +
4141
// "MYD11_L2.A2017091.0155.006.2017094143610.hdf";
4242
}
4343

0 commit comments

Comments
 (0)