mamweb/_git_hooks/pre-commit

7 lines
193 B
Text
Raw Normal View History

#!/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