enable mypy type checking

This commit is contained in:
scito
2022-12-29 14:24:12 +01:00
parent 631bacc409
commit b89a338246
7 changed files with 85 additions and 8 deletions
+10
View File
@@ -213,6 +213,16 @@ cmd="$FLAKE8 . --count --exit-zero --max-complexity=10 --max-line-length=200 --s
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
eval "$cmd"
# Type checking
cmd="mypy --install-types --non-interactive"
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
eval "$cmd"
cmd="mypy *.py"
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
eval "$cmd"
# Test
cmd="pytest"