diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-08-30 11:25:27 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-08-30 11:25:35 -0400 |
commit | a9b4554156bac38cd3ca1162326ce9cf554f9b50 (patch) | |
tree | 21dacea8338235181b214fa233f93fdff3c0b022 /docs/leap-flake8.pre-commit.hook | |
parent | 22eec36ff81ae2ec2b924087ed6253894b92278a (diff) |
[pkg] add some relevant docs
Diffstat (limited to 'docs/leap-flake8.pre-commit.hook')
-rwxr-xr-x | docs/leap-flake8.pre-commit.hook | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/leap-flake8.pre-commit.hook b/docs/leap-flake8.pre-commit.hook new file mode 100755 index 00000000..b00fd08a --- /dev/null +++ b/docs/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 |