Created
September 11, 2017 21:55
-
-
Save bryanhelmig/d375be0394a710ca0698a2f590c9d26d to your computer and use it in GitHub Desktop.
a zapier python lint command, put it on path!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CHANGED_PYTHON_FILES=`git diff-tree --diff-filter=ACMRT --no-commit-id --name-only -r origin/develop.. -- "*.py" | tr "\n" " "` | |
flake8 --exit-zero --format=pylint ${CHANGED_PYTHON_FILES} | |
pylint --py3k --disable=no-absolute-import --disable=round-builtin -sn --msg-template="{path}:{line}: [{msg_id}] {msg}" ${CHANGED_PYTHON_FILES} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment