summaryrefslogtreecommitdiffstats
path: root/pre-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pre-run.sh')
-rwxr-xr-xpre-run.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/pre-run.sh b/pre-run.sh
index c84ca0e..bdcf5e8 100755
--- a/pre-run.sh
+++ b/pre-run.sh
@@ -1,8 +1,11 @@
#! /bin/sh
# Do these before final testing, *not* just before pushing:
# Philip Sargent 2020/06/20
+# now with uv
+PYTHON="uv run"
+cd ..
echo "** Run inspectdb:"
-python3 manage.py inspectdb > troggle-inspectdb.py
+$PYTHON troggle/manage.py inspectdb > troggle-inspectdb.py
# egrep -in "unable|error" troggle-inspectdb.py
echo ""
# count non-blank lines of python and template HTML code
@@ -13,17 +16,17 @@ find . -name \*.py -print0 | xargs -0 egrep -vc "#|^\s*$" | grep -v ":0$" | gr
# This deletes the database so must run after generating troggle-inspectdb.py
-python3 reset-django.py
+$PYTHON troggle/reset-django.py
echo "** After cleanup deletion, remake all migrations."
-python3 manage.py makemigrations >/dev/null
-python3 manage.py migrate
+$PYTHON troggle/manage.py makemigrations >/dev/null
+$PYTHON troggle/manage.py migrate
echo "** Now running self check"
-python3 manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null
-python3 manage.py check -v 3 --deploy
+$PYTHON troggle/manage.py check -v 3 --deploy 2>security-warnings.txt >/dev/null
+$PYTHON troggle/manage.py check -v 3 --deploy
echo "** Now running test suite"
-python3 manage.py test
+$PYTHON troggle/manage.py test -v 1
echo ""
echo `tail -1 lines-of-python.txt` non-comment lines of python.