summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-26 01:41:37 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-26 01:41:37 -0400
commit02f93142eedb1b56c9c93dcc699bd9d3cd57b88a (patch)
treed2f76b2b55190e766a98c4e59a6aa6cf1548dd5c
parent54959ad58756deac2d5ecdc60d518db1aa0bac32 (diff)
downloadpypaste-02f93142eedb1b56c9c93dcc699bd9d3cd57b88a.tar.gz
update check.sh
-rwxr-xr-xcheck.sh14
1 files changed, 5 insertions, 9 deletions
diff --git a/check.sh b/check.sh
index 7239193..e667d31 100755
--- a/check.sh
+++ b/check.sh
@@ -2,18 +2,14 @@
mypy -p pypaste || exit $?
-for f in $(find pypaste -type f); do
- flake8 ${f} || exit $?
-done
+sources=($(find pypaste -type f))
+
+flake8 ${sources[@]} || exit $?
+
+black --check ${sources[@]} || exit $?
if [[ ! -d build ]]; then
meson setup build -Dserver=enabled -Dclient=enabled -Dtests=enabled || exit $?
fi
-destdir=$(mktemp -d)
-
meson test --verbose "$@" -C build || exit $?
-
-meson install --destdir=${destdir} -C build || exit $?
-
-rm -rf ${destdir}