8
8
- id : yapf
9
9
args : [--in-place, --verbose]
10
10
additional_dependencies : [toml] # TODO: Remove when yapf is upgraded
11
+ exclude : ' vllm/third_party/.*'
11
12
- repo : https://github.com/astral-sh/ruff-pre-commit
12
13
rev : v0.9.3
13
14
hooks :
14
15
- id : ruff
15
16
args : [--output-format, github]
17
+ exclude : ' vllm/third_party/.*'
16
18
- repo : https://github.com/codespell-project/codespell
17
19
rev : v2.4.0
18
20
hooks :
19
21
- id : codespell
20
- exclude : ' benchmarks/sonnet.txt|(build|tests/(lora/data|models/fixtures|prompts))/.*'
22
+ exclude : ' benchmarks/sonnet.txt|(build|tests/(lora/data|models/fixtures|prompts))/.*|vllm/third_party/.* '
21
23
- repo : https://github.com/PyCQA/isort
22
24
rev : 5.13.2
23
25
hooks :
24
26
- id : isort
27
+ exclude : ' vllm/third_party/.*'
25
28
- repo : https://github.com/pre-commit/mirrors-clang-format
26
29
rev : v19.1.7
27
30
hooks :
28
31
- id : clang-format
29
- exclude : ' csrc/(moe/topk_softmax_kernels.cu|quantization/gguf/(ggml-common.h|dequantize.cuh|vecdotq.cuh|mmq.cuh|mmvq.cuh))'
32
+ exclude : ' csrc/(moe/topk_softmax_kernels.cu|quantization/gguf/(ggml-common.h|dequantize.cuh|vecdotq.cuh|mmq.cuh|mmvq.cuh))|vllm/third_party/.* '
30
33
types_or : [c++, cuda]
31
34
args : [--style=file, --verbose]
32
35
- repo : https://github.com/jackdewinter/pymarkdown
33
36
rev : v0.9.27
34
37
hooks :
35
38
- id : pymarkdown
36
39
args : [fix]
40
+ exclude : ' vllm/third_party/.*'
37
41
- repo : https://github.com/rhysd/actionlint
38
42
rev : v1.7.7
39
43
hooks :
40
44
- id : actionlint
45
+ exclude : ' vllm/third_party/.*'
41
46
- repo : local
42
47
hooks :
43
48
- id : mypy-local
@@ -47,44 +52,51 @@ repos:
47
52
types : [python]
48
53
additional_dependencies : &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests]
49
54
stages : [pre-commit] # Don't run in CI
55
+ exclude : ' vllm/third_party/.*'
50
56
- id : mypy-3.9 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
51
57
name : Run mypy for Python 3.9
52
58
entry : tools/mypy.sh 1 "3.9"
53
59
language : python
54
60
types : [python]
55
61
additional_dependencies : *mypy_deps
56
62
stages : [manual] # Only run in CI
63
+ exclude : ' vllm/third_party/.*'
57
64
- id : mypy-3.10 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
58
65
name : Run mypy for Python 3.10
59
66
entry : tools/mypy.sh 1 "3.10"
60
67
language : python
61
68
types : [python]
62
69
additional_dependencies : *mypy_deps
63
70
stages : [manual] # Only run in CI
71
+ exclude : ' vllm/third_party/.*'
64
72
- id : mypy-3.11 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
65
73
name : Run mypy for Python 3.11
66
74
entry : tools/mypy.sh 1 "3.11"
67
75
language : python
68
76
types : [python]
69
77
additional_dependencies : *mypy_deps
70
78
stages : [manual] # Only run in CI
79
+ exclude : ' vllm/third_party/.*'
71
80
- id : mypy-3.12 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
72
81
name : Run mypy for Python 3.12
73
82
entry : tools/mypy.sh 1 "3.12"
74
83
language : python
75
84
types : [python]
76
85
additional_dependencies : *mypy_deps
77
86
stages : [manual] # Only run in CI
87
+ exclude : ' vllm/third_party/.*'
78
88
- id : shellcheck
79
89
name : Lint shell scripts
80
90
entry : tools/shellcheck.sh
81
91
language : script
82
92
types : [shell]
93
+ exclude : ' vllm/third_party/.*'
83
94
- id : png-lint
84
95
name : Lint PNG exports from excalidraw
85
96
entry : tools/png-lint.sh
86
97
language : script
87
98
types : [png]
99
+ exclude : ' vllm/third_party/.*'
88
100
- id : signoff-commit
89
101
name : Sign-off Commit
90
102
entry : bash
@@ -97,17 +109,20 @@ repos:
97
109
language : system
98
110
verbose : true
99
111
stages : [commit-msg]
112
+ exclude : ' vllm/third_party/.*'
100
113
- id : check-spdx-header
101
114
name : Check SPDX headers
102
115
entry : python tools/check_spdx_header.py
103
116
language : python
104
117
types : [python]
118
+ exclude : ' vllm/third_party/.*'
105
119
- id : suggestion
106
120
name : Suggestion
107
121
entry : bash -c 'echo "To bypass pre-commit hooks, add --no-verify to git commit."'
108
122
language : system
109
123
verbose : true
110
124
pass_filenames : false
125
+ exclude : ' vllm/third_party/.*'
111
126
- id : check-filenames
112
127
name : Check for spaces in all filenames
113
128
entry : bash
@@ -117,3 +132,4 @@ repos:
117
132
language : system
118
133
always_run : true
119
134
pass_filenames : false
135
+ exclude : ' vllm/third_party/.*'
0 commit comments