Browse Source

pre-commit: Add `pygrep-hooks` repo and 3 hooks to check RST files

pull/376/head
Alex Turbov 6 months ago
parent
commit
b83c5b2c83
No known key found for this signature in database GPG Key ID: 8BEDB7D11F95D5E3
  1. 15
      .pre-commit-config.yaml

15
.pre-commit-config.yaml

@ -86,6 +86,21 @@ repos:
# NOTE Looks like `bad-dedent` gives too many false-positives.
args: ['--disable', 'bad-dedent']
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
# NOTE The `productionlist` directive can give false-positives
exclude: >-
(?x)Help/(
dev/maint\.rst
| manual/cmake-(developer|language)\.7\.rst
| variable/CMAKE_MESSAGE_CONTEXT\.rst
)
| Tests/CMakeLib/testRST\.rst
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/codespell-project/codespell
rev: v2.4.0
hooks:

Loading…
Cancel
Save