From ece4f3a7cd280d47d3d19bd7a56e1a1dbbac2381 Mon Sep 17 00:00:00 2001 From: Guennadi Maximov C Date: Sun, 26 May 2024 21:12:23 -0600 Subject: [PATCH] feat: New pre-commit hooks. --- .pre-commit-config.yaml | 63 ++++++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0f9c21e4..0cb3765f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,46 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: detect-private-key + - id: check-shebang-scripts-are-executable + - id: check-executables-have-shebangs + - id: check-case-conflict + - id: check-yaml + - id: mixed-line-ending + - id: end-of-file-fixer + - id: trailing-whitespace + + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.5 + hooks: + - id: forbid-crlf + - id: remove-crlf + + - repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.41.0 + hooks: + - id: markdownlint-fix + - repo: local hooks: - - id: stylua - name: StyLua - language: system - entry: stylua - types: [lua] - verbose: true - - id: shfmt - name: shfmt - language: system - types: [shell] - entry: bash - args: [-c, make lint-sh] - verbose: true - - id: shellcheck - name: shellcheck - language: system - types: [shell] - entry: bash - args: [-c, make style-sh] - verbose: true + - id: stylua + name: StyLua + language: system + entry: stylua + types: [lua] + verbose: true + - id: shfmt + name: shfmt + language: system + types: [shell] + entry: bash + args: [-c, make lint-sh] + verbose: true + - id: shellcheck + name: shellcheck + language: system + types: [shell] + entry: bash + args: [-c, make style-sh] + verbose: true