do not mypy ci unittests

This commit is contained in:
Max K 2024-06-15 19:02:15 +02:00 committed by Max Kainov
parent 0aa7665f04
commit f81cbbab2a

View File

@ -11,13 +11,15 @@ GIT_ROOT=${GIT_ROOT:-.}
CONFIG="$GIT_ROOT/tests/ci/.mypy.ini" CONFIG="$GIT_ROOT/tests/ci/.mypy.ini"
DIRS=("$GIT_ROOT/tests/ci/" "$GIT_ROOT/tests/ci/"*/) DIRS=("$GIT_ROOT/tests/ci/" "$GIT_ROOT/tests/ci/"*/)
tmp=$(mktemp) tmp=$(mktemp)
for dir in "${DIRS[@]}"; do for dir in "${DIRS[@]}"; do
if ! compgen -G "$dir"/*.py > /dev/null; then if ! compgen -G "$dir"/*.py > /dev/null; then
continue continue
fi fi
if ! mypy --config-file="$CONFIG" --sqlite-cache "$dir"/*.py > "$tmp" 2>&1; then if ! mypy --config-file="$CONFIG" --sqlite-cache $(find "$dir" -maxdepth 1 -name "*.py" | grep -v "test_") > "$tmp" 2>&1; then
echo "Errors while processing $dir": echo "Errors while processing $dir":
cat "$tmp" cat "$tmp"
fi fi
done done
rm -rf "$tmp" rm -rf "$tmp"