chore: pre-commit hooks config improvements

This commit is contained in:
Michele Cereda
2023-11-18 23:28:55 +01:00
parent db9d71c518
commit b20942e25a
3 changed files with 17 additions and 10 deletions

6
.mdlrc
View File

@@ -1,3 +1,5 @@
# skip MD013/line-length =begin
# skip MD033/no-inline-html skip MD013/line-length
skip MD033/no-inline-html
=end
rules "~MD013", "~MD033" rules "~MD013", "~MD033"

View File

@@ -15,19 +15,19 @@ repos:
rev: v4.5.0 rev: v4.5.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md # ignore markdown's line break
- id: end-of-file-fixer
- id: check-json - id: check-json
- id: check-xml - id: check-xml
- id: check-yaml - id: check-yaml
args: args:
- --allow-multiple-documents - --allow-multiple-documents
- id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint
args: rev: v1.33.0
- --markdown-linebreak-ext=md # ignore markdown's line break hooks:
- id: end-of-file-fixer - id: yamllint
# - repo: https://github.com/adrienverge/yamllint
# rev: v1.33.0
# hooks:
# - id: yamllint
- repo: https://github.com/hadolint/hadolint - repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta rev: v2.12.1-beta
hooks: hooks:

5
examples/dotfiles/.mdlrc Normal file
View File

@@ -0,0 +1,5 @@
=begin
skip MD013/line-length
skip MD033/no-inline-html
=end
rules "~MD013", "~MD033"