Reduce the amount of colour output
- ID
021819e- date
2025-04-23 13:01:21+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
4e7e5ec- message
Reduce the amount of colour output- changed files
1 file, 10 additions, 4 deletions
Changed files
ts (1518) → ts (1672)
diff --git a/ts b/ts
index b4dcef4..c36b7bc 100755
--- a/ts
+++ b/ts
@@ -38,21 +38,27 @@ function run_python_tests() {
if [[ "$(pwd)" == ~/repos/library-lookup ]]
then
print_info '-> mypy *.py src tests'
- mypy *.py src tests
+ mypy *.py src tests --no-color-output
else
print_info '-> mypy src tests'
- mypy src tests
+ mypy src tests --no-color-output
fi
echo ""
print_info "-> coverage run -m pytest tests"
- coverage run -m pytest tests --quiet
+ coverage run -m pytest tests --quiet --color=no
echo ""
print_info "-> coverage report"
- coverage report
+
+ if [[ $(coverage report --format="100") ]]
+ then
+ echo "100% coverage!"
+ else
+ coverage report
+ fi
}
function run_rust_tests() {