From 44d0f1f7692e254b091d36192d8e82a2c3b15526 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 14 Jul 2024 22:04:00 +0200 Subject: [PATCH] pre-commit: disable shellcheck for zsh files `shellcheck` does not support zsh and throws all sort of errors because the pre-commit thinks all zsh file are shell scripts. --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1f9ee9..f57772c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,7 @@ repos: +- repo: meta + hooks: + - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: @@ -13,3 +16,8 @@ repos: rev: v0.10.0.1 hooks: - id: shellcheck + exclude: | + (?x)^( + config\/zsh\/.*| + home/\.zshenv + )$