From 9072fca22fceacaa75d7b6305bdee837c355fad0 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 6 Apr 2023 11:46:54 +0300 Subject: [PATCH] .pre-commit-config.yaml: add doctoc, disable ec linecheck --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db2d662..d06ced4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,12 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: fix-byte-order-marker + - repo: https://github.com/thlorenz/doctoc + rev: v2.2.0 + hooks: + - id: doctoc + # https://github.com/Mikaela/gist/blob/master/doctoc.txt + args: [--update-only] - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.0-alpha.6" hooks: @@ -19,3 +25,4 @@ repos: hooks: - id: editorconfig-checker alias: ec + args: [-disable-max-line-length]