shfmt hook for pre-commit.
Usage in .pre-commit-config.yaml
:
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.5.0-1
hooks:
# Choose one of:
- id: shfmt # native (requires Go to build)
- id: shfmt-docker # Docker image (requires Docker to run)