https://github.com/aleksac/tflint-py
pip installable tflint binary with wrapper for pre-commit
https://github.com/aleksac/tflint-py
pre-commit pre-commit-hook terraform tflint
Last synced: 10 months ago
JSON representation
pip installable tflint binary with wrapper for pre-commit
- Host: GitHub
- URL: https://github.com/aleksac/tflint-py
- Owner: AleksaC
- License: mit
- Created: 2022-06-13T20:26:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T20:41:46.000Z (10 months ago)
- Last Synced: 2025-04-17T07:55:07.701Z (10 months ago)
- Topics: pre-commit, pre-commit-hook, terraform, tflint
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tflint-py
[](https://github.com/AleksaC/tflint-py/actions/workflows/add-new-versions.yml)
[](https://github.com/AleksaC/tflint-py/actions/workflows/tests.yml)
pip installable [tflint](https://github.com/terraform-linters/tflint) binary with wrapper for pre-commit.
The mechanism by which the tflint binary is downloaded is adapted from
[shellcheck-py](https://github.com/shellcheck-py/shellcheck-py).
## Getting started
### Installation
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:
```shell script
pip install git+https://github.com/AleksaC/tflint-py.git@v0.56.0
```
### pre-commit hook
To use the pre-commit hook include the following config in your `.pre-commit-config.yaml` file:
```yaml
repos:
- repo: https://github.com/AleksaC/tflint-py
rev: v0.56.0
hooks:
- id: tflint
```
## Contact 🙋♂️
- [Personal website](https://aleksac.me)
-
- aleksacukovic1@gmail.com