From 52c6b258e9efe7bb9a59793e33e7943a7ce74b66 Mon Sep 17 00:00:00 2001 From: Christopher Horrell Date: Sat, 7 Mar 2026 14:05:42 -0500 Subject: [PATCH] Use Docker based pre-commit hooks Switches to these hooks and uses the latest - shfmt-docker - koalaman/shellcheck-precommit - markdownlint-cli2-docker --- .pre-commit-config.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5066e48..81d9fb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,18 @@ repos: - - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + - repo: https://github.com/koalaman/shellcheck-precommit + rev: v0.11.0 hooks: - id: shellcheck - types: [shell] files: \.(sh|bats)$ - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.9.0-1 + rev: v3.12.0-2 hooks: - - id: shfmt + - id: shfmt-docker args: [-sr, -i, '2', -w, -ci] - types: [shell] files: \.(sh|bats)$ - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.15.0 + rev: v0.21.0 hooks: - - id: markdownlint-cli2 - types: [markdown] + - id: markdownlint-cli2-docker