Skip to content

Commit

Permalink
Fix stub mypy test
Browse files Browse the repository at this point in the history
  • Loading branch information
shabbyrobe committed Apr 30, 2023
1 parent b781c92 commit b2d5e65
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,20 @@ cmd-dev-setup() {
cmd-test() {
source venv/bin/activate

pushd "$script_abspath/grpc-stubs" > /dev/null
mypy -- *.pyi
popd > /dev/null
dirs=(
"grpc-stubs"
"grpc_channelz-stubs"
"grpc_health-stubs"
"grpc_reflection-stubs"
"grpc_status-stubs"
)

for dir in "${dirs[@]}"; do
pushd "$script_abspath/$dir" > /dev/null
echo "$dir"
mypy -- .
popd > /dev/null
done

# This test setup is based on the instructions here:
# https://sobolevn.me/2019/08/testing-mypy-types
Expand Down

0 comments on commit b2d5e65

Please sign in to comment.