compare-pep8.sh 232 Bytes
Newer Older
1 2
#!/bin/bash
set -o nounset -o xtrace -o errexit
3
source "$(dirname "$0")/common.sh"
4

5
git diff "${MERGEBASE}..${HEAD}" | ${PYTHON} -m pep8 --ignore=W503 --diff --show-source --max-line-length=100 && echo "OK, no PEP8 errors detected"