diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-03 20:40:03 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-03 21:48:27 -0400 |
commit | 5519d02f609a87b0ca47a8e82c116811005b6277 (patch) | |
tree | eea053d2ff8f99a80b2595119cfae829781135a1 /docs/hooks/leap-flake8.pre-commit.hook | |
parent | 8cdbf714b905246363221089bbf8579e7c8e020c (diff) |
[docs] revamp bitmask dev docs
Diffstat (limited to 'docs/hooks/leap-flake8.pre-commit.hook')
-rwxr-xr-x | docs/hooks/leap-flake8.pre-commit.hook | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/hooks/leap-flake8.pre-commit.hook b/docs/hooks/leap-flake8.pre-commit.hook new file mode 100755 index 0000000..b00fd08 --- /dev/null +++ b/docs/hooks/leap-flake8.pre-commit.hook @@ -0,0 +1,7 @@ +#!/bin/sh +# Auto-check for pep8 so I don't check in bad code +FILES=$(git diff --cached --name-only --diff-filter=ACM | grep -e '\.py$') + +if [ -n "$FILES" ]; then + flake8 -r $FILES +fi |