initial mypy type checking

This commit is contained in:
scito
2022-12-29 16:30:18 +01:00
parent f4389ca8a3
commit f933cd0d32
3 changed files with 12 additions and 7 deletions

View File

@@ -112,6 +112,7 @@ PYTHON="python3.11"
PIP="pip3.11"
PIPENV="$PYTHON -m pipenv"
FLAKE8="$PYTHON -m flake8"
MYPY="$PYTHON -m mypy"
# Upgrade protoc
@@ -215,11 +216,11 @@ eval "$cmd"
# Type checking
cmd="mypy --install-types --non-interactive"
cmd="$MYPY --install-types --non-interactive"
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
eval "$cmd"
cmd="mypy *.py"
cmd="$MYPY *.py"
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
eval "$cmd"