This package provides a pip-installable shfmt binary (mostly for pre-commit purposes). It uses a custom build-backend, pre-commit-download, so downloading the executable is done during the wheel build process.
pip install git+https://github.com/pkolomytsev/pre-commit-shfmt.git@v3.8.0.0As a regular executable from your environment:
shfmt -VAs a pre-commit hook:
repos:
- repo: https://github.com/pkolomytsev/pre-commit-shfmt
rev: v3.8.0.0
hooks:
- id: shfmt