summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2012-01-19 19:11:44 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-01-24 11:54:59 +0900
commit741ac692b04ad09197282e7d5e38df62f7ca298e (patch)
tree1c011bfb30ede228d7dd337cfd8b8479d9c2c57e
parentd05fbf280700b34c5c56038f78608c3254837bea (diff)
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>
-rw-r--r--.gitignore1
-rwxr-xr-xpylint.sh9
-rw-r--r--pylintrc5
3 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e5eaa749..5f59de4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ GTAGS
GRTAGS
GPATH
GSYMS
+pylint.log
diff --git a/pylint.sh b/pylint.sh
new file mode 100755
index 00000000..7d03a767
--- /dev/null
+++ b/pylint.sh
@@ -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
diff --git a/pylintrc b/pylintrc
new file mode 100644
index 00000000..fb718e95
--- /dev/null
+++ b/pylintrc
@@ -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