Created
January 24, 2015 02:06
-
-
Save paulgear/aec399aa05b07142babc to your computer and use it in GitHub Desktop.
My python check script
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
#!/bin/sh | |
# Origin: http://wiki.geany.org/howtos/check_python_code | |
# Modified by: Paul Gear <github@libertysys.com.au> | |
# License: CC Attribution-Share Alike 3.0 Unported <http://creativecommons.org/licenses/by-sa/3.0/> | |
echo "====== pep8 ======" | |
# E128 = continuation line under-indented for visual indent | |
# E501 = line too long | |
pep8 \ | |
--repeat \ | |
--ignore=E128,E501 \ | |
"$1" | |
echo "====== pyflakes ======" | |
pyflakes "$1" | |
echo "====== pylint ======" | |
# C0103 = invalid-name for constant | |
# C0111 = no docstring for module | |
pylint \ | |
--disable=C0103 \ | |
--disable=C0111 \ | |
--msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \ | |
--reports=n \ | |
--max-line-length=999 \ | |
--include-naming-hint=yes \ | |
$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment