summaryrefslogtreecommitdiffhomepage
path: root/pylint.sh
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 /pylint.sh
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>
Diffstat (limited to 'pylint.sh')
-rwxr-xr-xpylint.sh9
1 files changed, 9 insertions, 0 deletions
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