Skip to content

Commit

Permalink
adding travis pre-commit validation. resolves #7
Browse files Browse the repository at this point in the history
  • Loading branch information
fractos committed Jul 26, 2018
1 parent 9acc415 commit 1536423
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repo: https://github.com/kintoandar/pre-commit.git
sha: v2.1.0
hooks:
- id: terraform_fmt
- id: terraform_validate

- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.2.3
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: trailing-whitespace
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sudo: required
language: python

python:
- "3.6"

before_install:
- sudo apt-get update -yqq

install:
- pip install pre-commit
- pre-commit install

script:
- pre-commit run --all-files --verbose

0 comments on commit 1536423

Please sign in to comment.