ci(llamaindex): Update env variable to use typecheck build from sdks/llamaindex/src (#116)

Running lint type checker (mypy) on the sdk tests can raise errors like:
https://github.com/googleapis/genai-toolbox/actions/runs/12194679407/job/34018934437
because it's looking in the wrong place for type definitions.

To fix this, we'll tell the type checker (mypy) to specifically include
the toolbox_llamaindex_sdk module from our SDK source code when it's
checking the tests. This will ensure it uses the correct type
information and avoids these errors.
This commit is contained in:
Twisha Bansal
2024-12-06 13:46:31 +05:30
committed by GitHub
parent b81df9ece7
commit 7991d64f3c

View File

@@ -49,4 +49,6 @@ jobs:
isort --check .
- name: Run type-check
run: mypy --install-types --non-interactive --explicit-package-bases sdks/llamaindex
env:
MYPYPATH: 'sdks/llamaindex/src'
run: mypy --install-types --non-interactive --explicit-package-bases sdks/llamaindex