[cig-commits] [commit] master: check for tabs in py files (84d51b3)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 16:32:43 PST 2014
Repository : https://github.com/geodynamics/burnman
On branch : master
Link : https://github.com/geodynamics/burnman/compare/6111717707e0bd07c31d999c20c7a56db163ff48...916ee6acd98bd253c534a4b858b8d86ec62c3fd5
>---------------------------------------------------------------
commit 84d51b35543ccdf5b4e9585b534e51b0a70a49fe
Author: Timo Heister <timo.heister at gmail.com>
Date: Fri Dec 12 15:48:57 2014 -0800
check for tabs in py files
>---------------------------------------------------------------
84d51b35543ccdf5b4e9585b534e51b0a70a49fe
test.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test.sh b/test.sh
index bfca4d4..0ad275d 100755
--- a/test.sh
+++ b/test.sh
@@ -43,6 +43,13 @@ fi
echo "*** running test suite..."
+
+# check for tabs in code:
+for f in `find . -name \*.py`
+do
+ grep -P "\t" -q $f && echo "ERROR: tabs found in '$f'" && exit 1
+done
+
cd tests
python tests.py || exit 1
testit "benchmark.py"
More information about the CIG-COMMITS
mailing list