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/[email protected]
As a regular executable from your environment:
shfmt -V
As a pre-commit hook:
repos:
- repo: https://github.com/pkolomytsev/pre-commit-shfmt
rev: v3.8.0.0
hooks:
- id: shfmt