@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 5677c9bb3e
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 15, 21:00 UTC

Deduplicate `.pre-commit-config.yaml`'s `exclude` (#13967)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Harry Mellor committed Feb 27, 2025 at 16:27 UTC 5677c9bb3e55880e73afc6081465f5712d1c19ff
1 file changed +1 -16
.pre-commit-config.yaml
+1 -16
@@ -1,6 +1,7 @@
1 default_stages:
2 - pre-commit # Run locally
3 - manual # Run in CI
4 +exclude: 'vllm/third_party/.*'
5 repos:
6 - repo: https://github.com/google/yapf
7 rev: v0.43.0
@@ -8,13 +9,11 @@ repos:
9 - id: yapf
10 args: [--in-place, --verbose]
11 additional_dependencies: [toml] # TODO: Remove when yapf is upgraded
11 - exclude: 'vllm/third_party/.*'
12 - repo: https://github.com/astral-sh/ruff-pre-commit
13 rev: v0.9.3
14 hooks:
15 - id: ruff
16 args: [--output-format, github, --fix]
17 - exclude: 'vllm/third_party/.*'
17 - repo: https://github.com/codespell-project/codespell
18 rev: v2.4.0
19 hooks:
@@ -25,7 +24,6 @@ repos:
24 rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # 6.0.0
25 hooks:
26 - id: isort
28 - exclude: 'vllm/third_party/.*'
27 - repo: https://github.com/pre-commit/mirrors-clang-format
28 rev: v19.1.7
29 hooks:
@@ -38,12 +36,10 @@ repos:
36 hooks:
37 - id: pymarkdown
38 args: [fix]
41 - exclude: 'vllm/third_party/.*'
39 - repo: https://github.com/rhysd/actionlint
40 rev: v1.7.7
41 hooks:
42 - id: actionlint
46 - exclude: 'vllm/third_party/.*'
43 - repo: https://github.com/astral-sh/uv-pre-commit
44 rev: 0.6.2
45 hooks:
@@ -59,7 +55,6 @@ repos:
55 types: [python]
56 additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests]
57 stages: [pre-commit] # Don't run in CI
62 - exclude: 'vllm/third_party/.*'
58 - id: mypy-3.9 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
59 name: Run mypy for Python 3.9
60 entry: tools/mypy.sh 1 "3.9"
@@ -67,7 +62,6 @@ repos:
62 types: [python]
63 additional_dependencies: *mypy_deps
64 stages: [manual] # Only run in CI
70 - exclude: 'vllm/third_party/.*'
65 - id: mypy-3.10 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
66 name: Run mypy for Python 3.10
67 entry: tools/mypy.sh 1 "3.10"
@@ -75,7 +69,6 @@ repos:
69 types: [python]
70 additional_dependencies: *mypy_deps
71 stages: [manual] # Only run in CI
78 - exclude: 'vllm/third_party/.*'
72 - id: mypy-3.11 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
73 name: Run mypy for Python 3.11
74 entry: tools/mypy.sh 1 "3.11"
@@ -83,7 +76,6 @@ repos:
76 types: [python]
77 additional_dependencies: *mypy_deps
78 stages: [manual] # Only run in CI
86 - exclude: 'vllm/third_party/.*'
79 - id: mypy-3.12 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
80 name: Run mypy for Python 3.12
81 entry: tools/mypy.sh 1 "3.12"
@@ -91,19 +83,16 @@ repos:
83 types: [python]
84 additional_dependencies: *mypy_deps
85 stages: [manual] # Only run in CI
94 - exclude: 'vllm/third_party/.*'
86 - id: shellcheck
87 name: Lint shell scripts
88 entry: tools/shellcheck.sh
89 language: script
90 types: [shell]
100 - exclude: 'vllm/third_party/.*'
91 - id: png-lint
92 name: Lint PNG exports from excalidraw
93 entry: tools/png-lint.sh
94 language: script
95 types: [png]
106 - exclude: 'vllm/third_party/.*'
96 - id: signoff-commit
97 name: Sign-off Commit
98 entry: bash
@@ -116,13 +105,11 @@ repos:
105 language: system
106 verbose: true
107 stages: [commit-msg]
119 - exclude: 'vllm/third_party/.*'
108 - id: check-spdx-header
109 name: Check SPDX headers
110 entry: python tools/check_spdx_header.py
111 language: python
112 types: [python]
125 - exclude: 'vllm/third_party/.*'
113 - id: check-filenames
114 name: Check for spaces in all filenames
115 entry: bash
@@ -132,7 +119,6 @@ repos:
119 language: system
120 always_run: true
121 pass_filenames: false
135 - exclude: 'vllm/third_party/.*'
122 # Keep `suggestion` last
123 - id: suggestion
124 name: Suggestion
@@ -140,5 +126,4 @@ repos:
126 language: system
127 verbose: true
128 pass_filenames: false
143 - exclude: 'vllm/third_party/.*'
129 # Insert new entries above the `suggestion` entry