mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
do not mypy ci unittests
This commit is contained in:
parent
0aa7665f04
commit
f81cbbab2a
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user