Skip to main content

only run interrogate if it’s installed in this project

ID
f6c3509
date
2025-11-28 21:06:29+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
1d44cc1
message
only run interrogate if it's installed in this project
changed files
1 file, 8 additions, 5 deletions

Changed files

ts (2907) → ts (2992)

diff --git a/ts b/ts
index d90a135..6fbaa98 100755
--- a/ts
+++ b/ts
@@ -35,13 +35,16 @@ function run_python_tests() {
     
     echo ""
     
-    print_info "-> interrogate"
-    if ! interrogate
+    if grep --quiet "interrogate" "dev_requirements.txt"
     then
-      interrogate -vv
-    fi
+      print_info "-> interrogate"
+      if ! interrogate
+      then
+        interrogate -vv
+      fi
     
-    echo ""
+      echo ""
+    fi
 
     # This is one repo which is a bit special -- I'm gradually trying to chase
     # the code into `src`, but for now I have to remmeber to look at *.py