Skip to content

Commit

Permalink
Now checks the build file
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpeach committed Mar 28, 2024
1 parent 0aaddeb commit 1915c35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/py_typed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ process_directory() {
echo "ERROR: Missing py.typed in $dir"
MISSING_PY_TYPED=1 # Mark as missing
fi

# Check that BUILD file is present and contains the expected content
if [[ ! -f "$dir/BUILD" || ! $(grep -q "py_typed" "$dir/BUILD") ]]; then
echo "ERROR: Missing or incorrect BUILD file in $dir"
MISSING_PY_TYPED=1 # Mark as missing
fi
fi
fi

Expand Down

0 comments on commit 1915c35

Please sign in to comment.