pip installable tflint binary with wrapper for pre-commit.
The mechanism by which the tflint binary is downloaded is adapted from shellcheck-py.
This package was built to make it more convenient to run tflint as a pre-commit hook, so it hasn't been published to PyPI. However you can install it using git:
pip install git+https://github.com/AleksaC/[email protected]
To use the pre-commit hook include the following config in your .pre-commit-config.yaml
file:
repos:
- repo: https://github.com/AleksaC/tflint-py
rev: v0.51.1
hooks:
- id: tflint