]> git.scottworley.com Git - pinch/blobdiff - test.sh
Omit build directories from mypy run
[pinch] / test.sh
diff --git a/test.sh b/test.sh
index 9823458496987f3695c5015936c54aaa558b92d4..5df81bfee091044ea4d44c23627e3ab5fca8afb7 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -4,10 +4,13 @@ set -e
 
 PARALLELISM=4
 
 
 PARALLELISM=4
 
-find . -name '*.py' -print0 | xargs -0 mypy --strict --ignore-missing-imports
+find . -name build -prune -o -name dist -prune -o -name '*.py' -print0 |
+  xargs -0 mypy --strict --ignore-missing-imports
 
 for test in tests/*;do
 
 for test in tests/*;do
-  "$test"
+  if [ ! -d "$test" ];then
+    "$test"
+  fi
 done
 
 find . -name '*_test.py' -print0 | xargs -0 -r -n1 python3
 done
 
 find . -name '*_test.py' -print0 | xargs -0 -r -n1 python3