Skip to content

pkolomytsev/pre-commit-shfmt

Repository files navigation

pre-commit-shfmt

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.

Installation

pip install git+https://github.com/pkolomytsev/[email protected]

Usage

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