From 9ef67edd5a251204d71c04eb2a8cac8c842b4a68 Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Wed, 20 Dec 2023 08:41:06 +0100 Subject: [PATCH] format: Add rst check hook --- .pre-commit-config.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd3a9ace4..2b2bedf9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,10 +43,6 @@ repos: hooks: - id: shellcheck args: [--severity=warning] - # - repo: https://github.com/rstcheck/rstcheck - # rev: v6.2.0 # Use the sha / tag you want to point at - # hooks: - # - id: rstcheck - repo: https://github.com/adrienverge/yamllint.git rev: v1.21.0 # or higher tag hooks: @@ -56,3 +52,13 @@ repos: rev: 0.2.1 # or other specific tag hooks: - id: yamlfmt + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 # Use the ref you want to point at + hooks: + - id: rst-backticks + - id: rst-directive-colons + - id: rst-inline-touching-normal + # - repo: https://github.com/rstcheck/rstcheck + # rev: v6.2.0 # Use the sha / tag you want to point at + # hooks: + # - id: rstcheck -- 2.39.2