This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-testing.git
The following commit(s) were added to refs/heads/main by this push:
new 5073f74 [CI] Add more pre-commit hooks (#8)
5073f74 is described below
commit 5073f7405a6aa2b8eb326da94356802dca956a6a
Author: John Bampton <[email protected]>
AuthorDate: Wed Jun 25 11:47:14 2025 +1000
[CI] Add more pre-commit hooks (#8)
---
.pre-commit-config.yaml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4e4b393..6bb654e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -41,6 +41,24 @@ repos:
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
+ - id: insert-license
+ name: add license for all Python files
+ files: \.py$
+ args:
+ - --comment-style
+ - '|#|'
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
+ - id: insert-license
+ name: add license for all R files
+ files: \.R$
+ args:
+ - --comment-style
+ - '|#|'
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
- id: insert-license
name: add license for all YAML files
files: \.ya?ml$
@@ -50,14 +68,22 @@ repos:
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
+ - repo: https://github.com/psf/black-pre-commit-mirror
+ rev: 25.1.0
+ hooks:
+ - id: black-jupyter
+ name: run black-jupyter
+ description: format Python files and Jupyter Notebooks with black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
+ - id: check-ast
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-yaml
+ - id: debug-statements
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key