forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mypy: check additional directories (vllm-project#9162)
Signed-off-by: Russell Bryant <[email protected]> Signed-off-by: Amit Garg <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
CI=${1:-0} | ||
|
||
run_mypy() { | ||
echo "Running mypy on $1" | ||
if [ $CI -eq 1 ] && [ -z "$1" ]; then | ||
mypy "$@" | ||
return | ||
fi | ||
mypy --follow-imports skip "$@" | ||
} | ||
|
||
run_mypy # Note that this is less strict than CI | ||
run_mypy tests | ||
run_mypy vllm/assets | ||
run_mypy vllm/attention | ||
#run_mypy vllm/compilation | ||
#run_mypy vllm/core | ||
run_mypy vllm/distributed | ||
run_mypy vllm/engine | ||
#run_mypy vllm/entrypoints | ||
run_mypy vllm/executor | ||
#run_mypy vllm/inputs | ||
run_mypy vllm/logging | ||
run_mypy vllm/lora | ||
run_mypy vllm/model_executor | ||
run_mypy vllm/multimodal | ||
run_mypy vllm/platforms | ||
run_mypy vllm/plugins | ||
run_mypy vllm/prompt_adapter | ||
run_mypy vllm/spec_decode | ||
run_mypy vllm/transformers_utils | ||
run_mypy vllm/usage | ||
#run_mypy vllm/vllm_flash_attn | ||
run_mypy vllm/worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters