From f1fd3c7e1308fbc8a447713d1d5290464af2bfa3 Mon Sep 17 00:00:00 2001 From: Ryan Delaney Date: Tue, 23 May 2023 09:44:40 -0400 Subject: [PATCH] Add some more useful hooks --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3893731..cae04b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,10 @@ repos: - id: check-json - id: check-yaml - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-merge-conflict + - id: mixed-line-ending + - id: check-yaml - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.23.2 @@ -19,3 +23,10 @@ repos: - id: markdown-toc - id: mdspell - id: spelling-sort + + - repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.9.0.2 + hooks: + - id: shellcheck + name: lint shell scripts with shellcheck + types: [shell]