1
0
mirror of https://github.com/EV21/dynb.git synced 2025-12-26 16:39:32 +01:00

dev: add pre-commit hooks for markdown

This commit is contained in:
2021-09-13 20:32:40 +02:00
parent cad6d47cd2
commit 73d2a7ac44

View File

@@ -8,4 +8,18 @@ repos:
- "-l" # list files whose formatting differs from shfmt's - "-l" # list files whose formatting differs from shfmt's
- "-i 2" # indent: 0 for tabs (default), >0 for number of spaces - "-i 2" # indent: 0 for tabs (default), >0 for number of spaces
- "-ci" # switch cases will be indented - "-ci" # switch cases will be indented
- "-w" # write result to file instead of stdout - "-w" # write result to file instead of stdout
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.9
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm # GitHub Flavored Markdown support
- repo: https://codeberg.org/frnmst/md-toc
rev: 8.0.1 # or a specific git tag from md-toc
hooks:
- id: md-toc
args:
- "--in-place"
- "github"
- "--header-levels 6"