Python wrapper around invoking shfmt (https://github.com/mvdan/sh)
Project description
shfmt-py
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.
Installation
pip install shfmt-py
Usage
CLI
After installation, the shfmt
binary should be available in your
environment (or shfmt.exe
on windows).
As pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.4.3.1
hooks:
- id: shfmt
FAQ
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file shfmt_py-3.7.0.1.tar.gz
.
File metadata
- Download URL: shfmt_py-3.7.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119403c9325e9853e2e5b9b75b12bd1d35baf4f22dbc4795a459c9152ea2d9d2 |
|
MD5 | 5a9750a246b07c4c6251a5bc1c1a67d3 |
|
BLAKE2b-256 | 8a264d44df44a94e7ea35e85a1e64c41f0ee165eeb763e1f709b173c1f031daf |