Skip to content

Commit

Permalink
check type stubs?
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Sep 19, 2024
1 parent 235a4e2 commit 5990c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,12 @@ jobs:
- name: Check type stubs
if: success() && matrix.python-version == '3.12'
run: |
pip install mypy "black==22.3.0"
python/generate_type_stubs.sh
if git diff --name-only | grep -e "\\.pxi$"; then
echo "Type stubs were changed. Update them with python/generate_type_stubs.sh."
fi
stubtest nanoarrow._lib
stubtest nanoarrow._ipc_lib
pip install mypy
cd src/nanoarrow
for mod in $(find . -name "*.pyx" | sed -e "s|./||" -e "s|.pyx||"); do
cat $mod
stubtest "nanoarrow.$mod"
done
- name: Run doctests
if: success() && matrix.python-version == '3.12'
Expand Down
2 changes: 1 addition & 1 deletion python/generate_type_stubs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

pushd "${SOURCE_DIR}"

# We'll addthe license to the start of the files
# We'll add the license to the start of the files
LICENSE='
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down

0 comments on commit 5990c04

Please sign in to comment.