pylint: add a script to run pylint and pylintrc

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Isaku Yamahata 2012-01-19 19:11:44 +09:00 committed by FUJITA Tomonori
parent d05fbf2807
commit 741ac692b0
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ GTAGS
GRTAGS GRTAGS
GPATH GPATH
GSYMS GSYMS
pylint.log

9
pylint.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/sh
echo "Running pylint ..."
PYLINT_OPTIONS="--rcfile=pylintrc --output-format=parseable"
PYLINT_INCLUDE="ryu bin/ryu-manager bin/ryu-client"
export PYTHONPATH=$PYTHONPATH:.ryu
PYLINT_LOG=pylint.log
pylint $PYLINT_OPTIONS $PYLINT_INCLUDE > $PYLINT_LOG

5
pylintrc Normal file
View File

@ -0,0 +1,5 @@
[Messages Control]
# C0111: Don't require docstrings on every method
# W0511: TODOs in code comments are fine.
# W0142: *args and **kwargs are fine.
disable=C0111,W0511,W0142