Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scop/pre-commit-shfmt
shfmt hook for pre-commit, with auto install
https://github.com/scop/pre-commit-shfmt
pre-commit-hook shell
Last synced: about 19 hours ago
JSON representation
shfmt hook for pre-commit, with auto install
- Host: GitHub
- URL: https://github.com/scop/pre-commit-shfmt
- Owner: scop
- Created: 2020-05-03T05:16:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T09:05:08.000Z (about 2 months ago)
- Last Synced: 2025-01-17T05:05:56.884Z (8 days ago)
- Topics: pre-commit-hook, shell
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 55
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pre-commit-shfmt
[shfmt](https://github.com/mvdan/sh#shfmt) hook for
[pre-commit](https://pre-commit.com), with auto install.Usage in `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-2
hooks:
# Choose one of:
- id: shfmt # prebuilt upstream executable
- id: shfmt-src # build from source (requires/installs Go to build)
- id: shfmt-docker # Docker image (requires Docker to run)
```> #### Note
>
> From v3.7.0-2 on, the `shfmt` id points to the variant that uses a prebuilt
> upstream executable. The one that builds from source is available as
> `shfmt-src`.