1
0
mirror of synced 2024-11-12 01:00:46 +01:00
bemaniutils/verifytyping
2019-12-08 21:43:49 +00:00

41 lines
690 B
Bash
Executable File

#! /bin/bash
declare -a arr=(
"api"
"arcutils"
"bemanishark"
"binutils"
"cardconvert"
"dbutils"
"frontend"
"ifsutils"
"iidxutils"
"proxy"
"psmap"
"read"
"replay"
"responsegen"
"scheduler"
"services"
"struct"
"trafficgen"
"twodxutils"
)
declare -a cmdline=()
for project in "${arr[@]}"
do
cmdline+=('-m')
cmdline+=("bemani.utils.$project")
done
echo "Verifying type information..."
MYPYPATH=$(python -c "import os; print(os.path.realpath('.'))") mypy \
"${cmdline[@]}" \
--warn-redundant-casts \
--disallow-untyped-calls \
--disallow-untyped-defs \
--no-strict-optional
echo "Done!"