[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: contrib/scripts: lint-pytho
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: contrib/scripts: lint-python.sh, small wrapper |
Date: |
Sat, 19 May 2018 18:01:52 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8b28cb723 contrib/scripts: lint-python.sh, small wrapper
8b28cb723 is described below
commit 8b28cb7236c887c7a1cc21673e44ea81047f86db
Author: Nils Gillmann <address@hidden>
AuthorDate: Sat May 19 16:02:18 2018 +0000
contrib/scripts: lint-python.sh, small wrapper
Signed-off-by: Nils Gillmann <address@hidden>
---
.gitignore | 1 +
contrib/scripts/lint-python.sh | 24 ++++++++++++++++++++++++
2 files changed, 25 insertions(+)
diff --git a/.gitignore b/.gitignore
index b36fa3b1c..a85b26cd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,3 +50,4 @@ src/identity-provider/gnunet-idp
src/namestore/perf_namestore_api_zone_iteration_flat
src/namestore/perf_namestore_api_zone_iteration_postgres
src/namestore/perf_namestore_api_zone_iteration_sqlite
+python-lint.log
diff --git a/contrib/scripts/lint-python.sh b/contrib/scripts/lint-python.sh
new file mode 100755
index 000000000..9f7e0462d
--- /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
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: contrib/scripts: lint-python.sh, small wrapper,
gnunet <=