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 bb6e8f1626 [CI] pre-commit: add three hooks that target `RST` files
(#2220)
bb6e8f1626 is described below
commit bb6e8f16268a09e75b4336e4fb2cc7520b2a6520
Author: John Bampton <[email protected]>
AuthorDate: Fri Aug 8 18:01:23 2025 +1000
[CI] pre-commit: add three hooks that target `RST` files (#2220)
* [CI] pre-commit: add three hooks that target `RST` files
https://github.com/pre-commit/pygrep-hooks/tags
https://github.com/pre-commit/pygrep-hooks
This PR adds some checks for the RST codebase helping to keep it
standardized and correct
* Update .pre-commit-config.yaml
---
.pre-commit-config.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 676267ef3b..f8d193560e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -224,6 +224,15 @@ repos:
- id: gitleaks
name: run gitleaks
description: check for secrets with gitleaks
+ - repo: https://github.com/pre-commit/pygrep-hooks
+ rev: v1.10.0
+ hooks:
+ - id: rst-backticks
+ name: detect common mistake of using single backticks when writing rst
+ - id: rst-directive-colons
+ name: detect mistake of rst directive not ending with double colon or
space before the double colon
+ - id: rst-inline-touching-normal
+ name: detect mistake of inline code touching normal text in rst
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks: