Skip to main content

ts: remove whitespace; remove old special cases

ID
d56e193
date
2026-02-12 21:35:33+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
94c1cbb
message
ts: remove whitespace; remove old special cases
changed files
1 file, 16 additions, 16 deletions

Changed files

ts (2219) → ts (2138)

diff --git a/ts b/ts
index 8bfb67f..daf4b66 100755
--- a/ts
+++ b/ts
@@ -9,14 +9,14 @@ function run_python_tests() {
     # Run ruff to do Python formatting
     print_info "-> ruff check --fix"
     ruff check --fix .
-    
+
     echo ""
-    
+
     print_info "-> ruff format"
     ruff format .
-    
+
     echo ""
-    
+
     if grep --quiet "interrogate" "dev_requirements.txt"
     then
       print_info "-> interrogate"
@@ -24,7 +24,7 @@ function run_python_tests() {
       then
         interrogate -vv
       fi
-    
+
       echo ""
     fi
 
@@ -34,9 +34,9 @@ function run_python_tests() {
     then
         print_info '-> mypy *.py src tests'
         mypy *.py src tests
-    elif [[ -d "src" ]]; then
+    else
         print_info '-> mypy src tests'
-    
+
         if mypy src tests >/dev/null
         then
             mypy src tests --no-color-output
@@ -45,7 +45,7 @@ function run_python_tests() {
         fi
     else
         print_info '-> mypy *.py'
-  
+
         if mypy *.py >/dev/null
         then
             mypy *.py --no-color-output
@@ -53,7 +53,7 @@ function run_python_tests() {
             mypy *.py
         fi
     fi
-    
+
     echo ""
 
     # Run the tests.
@@ -68,11 +68,11 @@ function run_python_tests() {
     else
         print_info "-> coverage run -m pytest tests"
         coverage run -m pytest tests --quiet
-      
+
         echo ""
-    
+
         print_info "-> coverage report"
-    
+
         if [[ $(coverage report --format=total) = "100" ]]
         then
             echo "100% coverage!"
@@ -85,14 +85,14 @@ function run_python_tests() {
 function run_rust_tests() {
     print_info "-> cargo fmt"
     cargo fmt
-    
+
     echo ""
-    
+
     print_info "-> cargo build"
     cargo build
-    
+
     echo ""
-    
+
     print_info -n "-> cargo test"
     cargo test --quiet
 }