Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 5 days ago
JSON representation

pip installable tflint binary with wrapper for pre-commit

Awesome Lists containing this project

README

        

# tflint-py

[![Add new versions](https://github.com/AleksaC/tflint-py/actions/workflows/add-new-versions.yml/badge.svg)](https://github.com/AleksaC/tflint-py/actions/workflows/add-new-versions.yml)
[![Run tests](https://github.com/AleksaC/tflint-py/actions/workflows/tests.yml/badge.svg)](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/[email protected]
```

### 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.53.0
hooks:
- id: tflint
```

## Contact 🙋‍♂️
- [Personal website](https://aleksac.me)
- Twitter followers
- [email protected]