From b24565813e9ee70e76e948d9a9d6770f26855323 Mon Sep 17 00:00:00 2001 From: Levent Yalcin Date: Mon, 14 Aug 2017 10:15:36 +0100 Subject: [PATCH 1/2] pre-commit config has been added. I find pre-commit very handy and use all the time. Better explanation could be found in [the blog post](https://medium.com/levops/better-than-running-linter-tests-pre-commit-3e173df6fbd2) I wrote a month ago. --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4c56081 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +- repo: git://github.com/pre-commit/pre-commit-hooks + sha: v0.9.1 + hooks: + - id: trailing-whitespace + +- repo: git://github.com/Lucas-C/pre-commit-hooks + sha: v1.0.1 + hooks: + - id: forbid-tabs + +- repo: git://github.com/kintoandar/pre-commit.git + sha: v0.0.2 + hooks: + - id: terraform_fmt From 6c82d0c9225e2a0140bb6e058b9f45d69bf52f17 Mon Sep 17 00:00:00 2001 From: Levent Yalcin Date: Wed, 6 Sep 2017 11:52:22 +0100 Subject: [PATCH 2/2] version bump up for terraform hooks --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c56081..731383b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,6 @@ - id: forbid-tabs - repo: git://github.com/kintoandar/pre-commit.git - sha: v0.0.2 + sha: v2.0.0 hooks: - id: terraform_fmt