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 81380ba42 [SEDONA-525] Add two more pre-commit hooks (#1304)
81380ba42 is described below
commit 81380ba420038226eebcb57eca11ce2b71600ed8
Author: John Bampton <[email protected]>
AuthorDate: Tue Apr 2 12:11:41 2024 +1000
[SEDONA-525] Add two more pre-commit hooks (#1304)
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#check-ast
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#detect-aws-credentials
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#trailing-whitespace
---
.pre-commit-config.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e564ea870..1c054e2e0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -21,6 +21,7 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
+ - id: check-ast
- id: check-case-conflict
# - id: check-docstring-first
# - id: check-executables-have-shebangs
@@ -31,6 +32,8 @@ repos:
- id: check-vcs-permalinks
- id: check-xml
# - id: check-yaml
+ - id: detect-aws-credentials
+ args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
exclude: \.svg$|^docs/image|^spark/common/src/test/resources
@@ -38,6 +41,7 @@ repos:
- id: mixed-line-ending
exclude: \.csv$
- id: trailing-whitespace
+ args: [--markdown-linebreak-ext=md]
exclude: ^docs-overrides/main\.html$|\.Rd$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0