From 244e3d314c267361f3e69aab736e62d314cac9e6 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Sat, 4 Jan 2025 22:53:12 +0400 Subject: [PATCH] pre-commit: Add the `sphinx-lint` hook --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d861ebd21a..21e3db8284 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,3 +78,10 @@ repos: hooks: - id: git-check pass_filenames: false + + - repo: https://github.com/sphinx-contrib/sphinx-lint + rev: v1.0.0 + hooks: + - id: sphinx-lint + # NOTE Looks like `bad-dedent` gives too many false-positives. + args: ['--disable', 'bad-dedent']