EdvardM
4/24/2018 - 9:01 AM

Simple pre-commit hook for checking python files with pycodestyle before committing

Simple pre-commit hook for checking python files with pycodestyle before committing

#!/bin/sh

set -u

FILES=$(git diff --cached --name-only --diff-filter=ACM)
pycodestyle ${FILES}