From 60147030bfd06a72aa2f4f6562e1baed5fc7dc9b Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sun, 26 May 2024 20:55:42 +0100 Subject: [PATCH] Better rst formatter --- .pre-commit-config.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfcfcc8e..e5d6f6e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,11 +57,12 @@ repos: hooks: - id: sphinx-lint -# For now, we use it. But it does not support a lot of sphinx features -- repo: https://github.com/dzhu/rstfmt - rev: v0.0.14 +- repo: https://github.com/LilSpazJoekp/docstrfmt + rev: v1.6.1 hooks: - - id: rstfmt + - id: docstrfmt + language_version: python3 + types_or: [rst] # Don't touch python docstrings. - repo: https://github.com/b8raoult/pre-commit-docconvert rev: "0.1.4"