added git pre commit hook to run flake8

This commit is contained in:
Chris Meyers
2015-11-06 07:38:29 -05:00
parent d8aff34f63
commit 0b4efa3fcd
3 changed files with 11 additions and 1 deletions

2
tools/git_hooks/pre-commit Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
ansible-playbook -i "127.0.0.1," tools/git_hooks/pre_commit.yml

View File

@@ -0,0 +1,8 @@
- hosts: all
connection: local
gather_facts: false
tasks:
- name: lint check w/ flake8
command: 'flake8 {{ playbook_dir }}/../../'
register: result