A python wrapper to provide a pip-installable shfmt binary.
Internally this package provides a convenient way to download the pre-built shellcheck binary for your particular platform.
This package is totally cloned from shellcheck-py and modified to provide shfmt instead.
pip install shfmt-pyAfter installation, the shfmt binary should be available in your
environment (or shfmt.exe on windows).
See pre-commit for instructions
Sample .pre-commit-config.yaml:
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.12.0.1
hooks:
- id: shfmtQ: It won't get updated via e.g. Renovate Bot
A: See https://github.com/shfmt-py/update-via-renovate .
Q: I get something like SSL: CERTIFICATE_VERIFY_FAILED on macOS
A: Install certificates with e.g.: "/Applications/Python 3.9/Install Certificates.command". See here or here for a solution.