Skip to content

Instantly share code, notes, and snippets.

@reiddraper
Created January 12, 2011 20:41
Show Gist options
  • Save reiddraper/776838 to your computer and use it in GitHub Desktop.
Save reiddraper/776838 to your computer and use it in GitHub Desktop.
bash function for saner pylint defaults
# pylint with more sane defaults
function pyli {
pylint \
--ignored-classes=numpy,cjson \
--disable-msg=C0301 \
--disable-msg=W0142 \
--disable-msg=C0103 \
--disable-msg=C0111 \
--function-rgx="[a-z_][a-z0-9_]{2,30}(ID)?s?$" \
--attr-rgx="[a-z_][a-z0-9_]{2,30}(ID)?s?$" \
--argument-rgx="[a-z_][a-z0-9_]{2,30}(ID)?s?$" \
--variable-rgx="[a-z_][a-z0-9_]{2,30}(ID)?s?$" \
$*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment