Unverified Commit 3bb4b1e4 authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

[mypy] Speed up mypy checking (#7056)

parent 954f7305
...@@ -32,6 +32,7 @@ jobs: ...@@ -32,6 +32,7 @@ jobs:
pip install types-setuptools pip install types-setuptools
- name: Mypy - name: Mypy
run: | run: |
mypy
mypy tests --follow-imports skip mypy tests --follow-imports skip
mypy vllm/attention --follow-imports skip mypy vllm/attention --follow-imports skip
mypy vllm/core --follow-imports skip mypy vllm/core --follow-imports skip
...@@ -44,5 +45,4 @@ jobs: ...@@ -44,5 +45,4 @@ jobs:
mypy vllm/prompt_adapter --follow-imports skip mypy vllm/prompt_adapter --follow-imports skip
mypy vllm/spec_decode --follow-imports skip mypy vllm/spec_decode --follow-imports skip
mypy vllm/worker --follow-imports skip mypy vllm/worker --follow-imports skip
mypy
...@@ -96,6 +96,7 @@ echo 'vLLM yapf: Done' ...@@ -96,6 +96,7 @@ echo 'vLLM yapf: Done'
# Run mypy # Run mypy
echo 'vLLM mypy:' echo 'vLLM mypy:'
mypy --follow-imports skip # Note that this is less strict than CI
mypy tests --follow-imports skip mypy tests --follow-imports skip
mypy vllm/attention --follow-imports skip mypy vllm/attention --follow-imports skip
mypy vllm/core --follow-imports skip mypy vllm/core --follow-imports skip
...@@ -108,7 +109,7 @@ mypy vllm/model_executor --follow-imports skip ...@@ -108,7 +109,7 @@ mypy vllm/model_executor --follow-imports skip
mypy vllm/prompt_adapter --follow-imports skip mypy vllm/prompt_adapter --follow-imports skip
mypy vllm/spec_decode --follow-imports skip mypy vllm/spec_decode --follow-imports skip
mypy vllm/worker --follow-imports skip mypy vllm/worker --follow-imports skip
mypy echo 'vLLM mypy: Done'
# If git diff returns a file that is in the skip list, the file may be checked anyway: # If git diff returns a file that is in the skip list, the file may be checked anyway:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment