Skip to content

Instantly share code, notes, and snippets.

@bryanhelmig
Created September 11, 2017 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanhelmig/d375be0394a710ca0698a2f590c9d26d to your computer and use it in GitHub Desktop.
Save bryanhelmig/d375be0394a710ca0698a2f590c9d26d to your computer and use it in GitHub Desktop.
a zapier python lint command, put it on path!
#!/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