See https://hg.python.org/hooks/file/tip/checkwhitespace.py for the hg.python.org solution. Need to check both code and docs. Could either set up a bot to do the check on the diff directly or somehow use Travis and its TRAVIS_PULL_REQUEST environment variable to check whitespace only on the changing code.
See https://hg.python.org/hooks/file/tip/checkwhitespace.py for the hg.python.org solution. Need to check both code and docs. Could either set up a bot to do the check on the diff directly or somehow use Travis and its
TRAVIS_PULL_REQUESTenvironment variable to check whitespace only on the changing code.