Skip to content

shfmt hook for pre-commit, with auto install

Notifications You must be signed in to change notification settings

scop/pre-commit-shfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-shfmt

shfmt hook for pre-commit, with auto install.

Usage in .pre-commit-config.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.

About

shfmt hook for pre-commit, with auto install

Topics

Resources

Stars

Watchers

Forks

Languages