Skip to main content

Move ts to the top level; add a hard-coded fix for one repo

ID
690c57a
date
2024-10-19 23:42:16+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
26d8f51
message
Move `ts` to the top level; add a hard-coded fix for one repo
changed files
2 files, 9 additions, 17 deletions

Changed files

flickr/README.md (1603) → flickr/README.md (1116)

diff --git a/flickr/README.md b/flickr/README.md
index ad79fba..e4248e9 100644
--- a/flickr/README.md
+++ b/flickr/README.md
@@ -25,12 +25,6 @@ scripts = [
         deploy a new version of a Flickr Foundation Python library: bump the version, tag the Git commit, push to PyPI and GitHub.
         """,
     },
-    {
-        "usage": "ts",
-        "description": """
-        run <strong>t</strong>est<strong>s</strong> in a Flickr Foundation Python project (including linting, autoformatting, pytest tests)
-        """,
-    },
 ]
 
 cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
@@ -45,14 +39,5 @@ cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
   <dd>
     deploy a new version of a Flickr Foundation Python library: bump the version, tag the Git commit, push to PyPI and GitHub.
   </dd>
-
-  <dt>
-    <a href="https://github.com/alexwlchan/scripts/blob/main/flickr/ts">
-      <code>ts</code>
-    </a>
-  </dt>
-  <dd>
-    run <strong>t</strong>est<strong>s</strong> in a Flickr Foundation Python project (including linting, autoformatting, pytest tests)
-  </dd>
 </dl>
-<!-- [[[end]]] (checksum: 6f1984b029c50abbbd12d74d6f1b07bb) -->
+<!-- [[[end]]] (checksum: 25a2e0861d7f789ae830f7da3763f089) -->

flickr/ts (435) → ts (689)

diff --git a/flickr/ts b/ts
similarity index 86%
rename from flickr/ts
rename to ts
index f585282..771f94a 100755
--- a/flickr/ts
+++ b/ts
@@ -11,7 +11,14 @@ function run_python_tests() {
 
     interrogate -vv
 
-    mypy src tests
+    # 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
+    if [[ "$(pwd)" == ~/repos/library-lookup ]]
+    then
+      mypy *.py src tests
+    else
+      mypy src tests
+    fi
 
     coverage run -m pytest tests
     coverage report