How to check my git commit code quality using pylint?
<p>I want to figure want the score for my code is using pylint. I can do this for all the files that were changed in the commit using the following script</p>

<pre><code>#!/bin/sh
# Auto-check for pep8 so I don't check in bad code
FILES=$(git show --name-only | grep -e '\.py$')

if [ -n "$FILES"  ]; then
    pylint $FILES
fi
</code></pre>

<p>But what I really want is to run pylint(or any other static analysis tool for python) only on the lines I have added to the file, and get the pylint score for them.</p>