@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 3bb4b1e4cd
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 16, 19:30 UTC

[mypy] Speed up mypy checking (#7056)

Cyrus Leung committed Aug 2, 2024 at 10:49 UTC 3bb4b1e4cd3d07c80a208d875b016631d91844f8
2 files changed +4 -3
.github/workflows/mypy.yaml
+1 -1
@@ -32,6 +32,7 @@ jobs:
32 pip install types-setuptools
33 - name: Mypy
34 run: |
35 + mypy
36 mypy tests --follow-imports skip
37 mypy vllm/attention --follow-imports skip
38 mypy vllm/core --follow-imports skip
@@ -44,5 +45,4 @@ jobs:
45 mypy vllm/prompt_adapter --follow-imports skip
46 mypy vllm/spec_decode --follow-imports skip
47 mypy vllm/worker --follow-imports skip
47 - mypy
48
format.sh
+3 -2
@@ -96,6 +96,7 @@ echo 'vLLM yapf: Done'
96
97 # Run mypy
98 echo 'vLLM mypy:'
99 +mypy --follow-imports skip # Note that this is less strict than CI
100 mypy tests --follow-imports skip
101 mypy vllm/attention --follow-imports skip
102 mypy vllm/core --follow-imports skip
@@ -108,7 +109,7 @@ mypy vllm/model_executor --follow-imports skip
109 mypy vllm/prompt_adapter --follow-imports skip
110 mypy vllm/spec_decode --follow-imports skip
111 mypy vllm/worker --follow-imports skip
111 -mypy
112 +echo 'vLLM mypy: Done'
113
114
115 # If git diff returns a file that is in the skip list, the file may be checked anyway:
@@ -127,7 +128,7 @@ spell_check_all(){
128 codespell --toml pyproject.toml "${CODESPELL_EXCLUDES[@]}"
129 }
130
130 -# Spelling check of files that differ from main branch.
131 +# Spelling check of files that differ from main branch.
132 spell_check_changed() {
133 # The `if` guard ensures that the list of filenames is not empty, which
134 # could cause ruff to receive 0 positional arguments, making it hang