Skip to main content

ts: start pushing the config down into repos

ID
8319c26
date
2026-04-20 04:56:48+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
bd93ebf
message
ts: start pushing the config down into repos
changed files
1 file, 6 additions, 9 deletions

Changed files

ts (2285) → ts (2296)

diff --git a/ts b/ts
index e3e56b3..ce92e71 100755
--- a/ts
+++ b/ts
@@ -4,13 +4,14 @@ set -o errexit
 set -o nounset
 
 function run_python_tests() {
-    REPO_NAME="$(basename $(pwd))"
-
-    if [[ "$REPO_NAME" = "alexwlchan.net" ]]
-    then
-        bash scripts/run_mosaic_tests.sh
+    # If there's a `scripts` folder with a test script, run that
+    if find scripts -name 'run_*_tests.sh' >/dev/null; then
+        print_info "-> bash scripts/run_*_tests.sh"
+        bash scripts/run_*_tests.sh
         return 0
     fi
+  
+    REPO_NAME="$(basename $(pwd))"
 
     # Run ruff to do Python formatting
     print_info "-> ruff format"
@@ -29,10 +30,6 @@ function run_python_tests() {
     then
         print_info '-> mypy *.py src tests'
         mypy *.py src tests
-    elif [[ "$REPO_NAME" = "prep_for_itunes" ]]
-    then
-        print_info '-> mypy *.py'
-        mypy *.py
     elif [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
     then
         print_info '-> mypy *.py'