mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
fix: add UV env vars to mypy full type checking step
The mypy step runs uv commands directly and needs access to UV_EXTRA_INDEX_URL and UV_INDEX_STRATEGY to resolve RC dependencies from test.pypi on release branches.
This commit is contained in:
parent
1c557b87cb
commit
cc54e9ee42
1 changed files with 3 additions and 0 deletions
3
.github/workflows/pre-commit.yml
vendored
3
.github/workflows/pre-commit.yml
vendored
|
|
@ -147,6 +147,9 @@ jobs:
|
|||
echo "MYPY_CMD=$MYPY_CMD" >> $GITHUB_ENV
|
||||
|
||||
- name: Run mypy (full type checking)
|
||||
env:
|
||||
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
|
||||
UV_INDEX_STRATEGY: ${{ steps.client-config.outputs.uv-extra-index-url && 'unsafe-best-match' || '' }}
|
||||
run: |
|
||||
set +e
|
||||
output=$($MYPY_CMD 2>&1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue