Revert “ts: switch to ty for type checking”
- ID
6f10667- date
2026-04-11 20:09:28+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
8d757ca- message
Revert "ts: switch to ty for type checking" 8d757ca0966bd5c3e61b4ee8133d4e0f9a5e65cd- changed files
1 file, 15 additions, 14 deletions
Changed files
ts (2468) → ts (2467)
diff --git a/ts b/ts
index 641af8e..4a9d59a 100755
--- a/ts
+++ b/ts
@@ -12,13 +12,14 @@ function run_python_tests() {
return 0
fi
- print_info "-> ruff format"
- ruff format .
+ # Run ruff to do Python formatting
+ print_info "-> ruff check --fix"
+ ruff check --fix .
echo ""
- print_info "-> ruff check --fix"
- ruff check --fix .
+ print_info "-> ruff format"
+ ruff format .
echo ""
@@ -37,24 +38,24 @@ function run_python_tests() {
# the code into `src`, but for now I have to remember to look at *.py
if [[ "$REPO_NAME" = "library-lookup" ]]
then
- print_info '-> ty check *.py src tests'
- ty check *.py src tests
+ print_info '-> mypy *.py src tests'
+ mypy *.py src tests
elif [[ "$REPO_NAME" = "prep_for_itunes" ]]
then
- print_info '-> ty check *.py'
- ty check *.py
+ print_info '-> mypy *.py'
+ mypy *.py
elif [[ "$REPO_NAME" = "yt-dlp_alexwlchan" ]]
then
- print_info '-> ty check *.py'
- ty check *.py
+ print_info '-> mypy *.py'
+ mypy *.py
else
- print_info '-> ty check src tests'
+ print_info '-> mypy src tests'
- if ty check src tests >/dev/null
+ if mypy src tests >/dev/null
then
- ty check src tests --no-color-output
+ mypy src tests --no-color-output
else
- ty check src tests
+ mypy src tests
fi
fi