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/tflint-py.git@v0.53.0
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.53.0
hooks:
- id: tflint