From 37cde4a01ae2bda704bd6b06a6a91fc566c70e70 Mon Sep 17 00:00:00 2001 From: chenyu Date: Wed, 28 Jan 2026 20:39:32 -0500 Subject: [PATCH] add one line mypy report (#14415) --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c010bf71b..9fe21592c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -239,6 +239,7 @@ jobs: - name: Run mypy with lineprecision report run: | python -m mypy --lineprecision-report . + grep -v autogen lineprecision.txt | awk 'NR>2 {lines+=$2; precise+=$3; imprecise+=$4; any+=$5; empty+=$6} END {t=lines-empty; printf "TOTAL: %d lines, %d precise (%.1f%%), %d imprecise (%.1f%%), %d any (%.1f%%)\n", t, precise, 100*precise/t, imprecise, 100*imprecise/t, any, 100*any/t}' cat lineprecision.txt - name: Run TYPED=1 run: CHECK_OOB=0 DEV=CPU TYPED=1 python test/test_tiny.py