aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/lint-python.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-30 10:28:51 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-30 10:28:51 +0200
commit30fb422df59da0e650eb790933dadbd4bb189658 (patch)
treeb37f7529e275671ce3e640b4064a8945f658d442 /contrib/scripts/lint-python.sh
parent0a0ac96d8be21130ccbb885537b0b179b16842e4 (diff)
parenta46fff931d631a176f56547692b16ae32c89299b (diff)
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'contrib/scripts/lint-python.sh')
-rwxr-xr-xcontrib/scripts/lint-python.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/scripts/lint-python.sh b/contrib/scripts/lint-python.sh
new file mode 100755
index 0000000000..9f7e0462df
--- /dev/null
+++ b/contrib/scripts/lint-python.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# check python style (and 2 to 3 migration)
+
+rm python-lint.log
+
+if [ -e "python" ]
+then
+ python --version >> python-lint.log
+fi
+
+if [ -e "python2" ]
+then
+ python2 --version >> python-lint.log
+fi
+
+if [ -e "python3" ]
+then
+ python3 --version >> python-lint.log
+fi
+
+flake8 >> python-lint.log
+
+2to3 -v -d . >> python-lint.log
+2to3 -v -p . >> python-lint.log