From a07b56328a1ccb990ee7574bc8422bb6889f614c Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 23 Mar 2023 16:34:17 +0200 Subject: [PATCH] .pre-commit-config.yaml: add doctoc with update-only argument --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c31eeac..9be3765 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,3 +28,8 @@ repos: hooks: - id: editorconfig-checker alias: ec + - repo: https://github.com/thlorenz/doctoc + rev: v2.2.0 + hooks: + - id: doctoc + args: [--update-only]