Skip to content
Permalink
Browse files

Add pre-commit hook for yapf

  • Loading branch information...
shreshthkhilani committed Jan 10, 2018
1 parent fb1f2f2 commit 0a7e2ee726ad58b989a67ca36a953dff30e32cf0
@@ -0,0 +1,5 @@
repos:
- repo: git://github.com/pre-commit/mirrors-yapf
sha: v0.20.0
hooks:
- id: yapf
@@ -10,3 +10,4 @@
- { role: "azavea.python-security" }
- { role: "district-builder.docker" }
- { role: "district-builder.shellcheck" }
- { role: "district-builder.pre-commit" }
@@ -2,3 +2,4 @@

shellcheck_version: "0.3.*"
docker_compose_version: "1.16.*"
pre_commit_version: "1.5.0"
@@ -0,0 +1,4 @@
---
- name: Install pre-commit
local_action: command pip install pre-commit=="{{ pre_commit_version }}"
sudo: no
@@ -23,5 +23,9 @@ then
mkdir -p "${HOME}/.aws"

vagrant up --provision

# Sets up pre-commit hooks to yapf new python files.
pre-commit install

fi
fi

0 comments on commit 0a7e2ee

Please sign in to comment.
You can’t perform that action at this time.