Skip to main content

ts: update per-repo config

ID
e38741d
date
2026-03-30 07:44:42+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
69356a7
message
ts: update per-repo config
changed files
1 file, 18 additions, 18 deletions

Changed files

ts (2527) → ts (2467)

diff --git a/ts b/ts
index 85521dd..4a9d59a 100755
--- a/ts
+++ b/ts
@@ -40,6 +40,10 @@ 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'
@@ -62,32 +66,28 @@ function run_python_tests() {
     # I have a couple of repos which are a bit special and need a
     # different command because I use pytest-xdist, but not all
     # my repos work that way.
-    if [[ "$REPO_NAME" = "analytics.alexwlchan.net" ]]
+    if [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
     then
-        print_info "-> pytest tests --cov=src --cov=tests"
-        pytest tests --cov=src --cov=tests --quiet
-    elif [[ "$REPO_NAME" = "alexwlchan.net" ]]
+        print_info "-> coverage run -m pytest test_yt-dlp_alexwlchan.py"
+        coverage run -m pytest test_yt-dlp_alexwlchan.py
+    elif [[ "$REPO_NAME" = "prep_for_itunes" ]]
     then
-        print_info "-> bash scripts/run_mosaic_tests.sh"
-        bash scripts/run_mosaic_tests.sh
-    elif [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
-    then
-        print_info "-> python3 -m pytest test_yt-dlp_alexwlchan.py"
-        python3 -m pytest test_yt-dlp_alexwlchan.py
+        print_info "-> coverage run -m pytest test_prep_for_itunes.py"
+        coverage run -m pytest test_prep_for_itunes.py
     else
         print_info "-> coverage run -m pytest tests"
         coverage run -m pytest tests --quiet
+    fi
 
-        echo ""
+    echo ""
 
-        print_info "-> coverage report"
+    print_info "-> coverage report"
 
-        if [[ $(coverage report --format=total) = "100" ]]
-        then
-            echo "100% coverage!"
-        else
-            coverage report
-        fi
+    if [[ $(coverage report --format=total) = "100" ]]
+    then
+        echo "100% coverage!"
+    else
+        coverage report
     fi
 }