summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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