mamweb/_git_hooks/pre-commit
2016-09-05 00:12:54 +02:00

6 lines
193 B
Bash
Executable file

#!/bin/sh
#
# Git hook script to verify what is about to be committed.
# Checks that the changes don't introduce new flake8 errors.
git diff --unified=1 --cached HEAD -- '*py' | flake8 --diff