#!/bin/bash #et -x set -eu messages=$(/usr/local/cpython-2.7/bin/pylint \ '--init-hook'="import sys; sys.path.append('$(pwd)')" \ '--class-rgx'='[A-Z_][a-zA-Z0-9_]+$' \ '--indent-string'="\t" \ '--max-line-length'=162 \ "$@" | \ egrep '^[A-Z]:' | \ egrep -v '^I: *[0-9]*: Locally disabling ' \ || true) if [ "$messages" = "" ] then exit 0 else echo "$messages" exit 1 fi