diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20d1981c..23a38d49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,7 @@ default_stages: - pre-commit # Run locally - manual # Run in CI +exclude: 'vllm/third_party/.*' repos: - repo: https://github.com/google/yapf rev: v0.43.0 @@ -8,13 +9,11 @@ repos: - id: yapf args: [--in-place, --verbose] additional_dependencies: [toml] # TODO: Remove when yapf is upgraded - exclude: 'vllm/third_party/.*' - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.9.3 hooks: - id: ruff args: [--output-format, github, --fix] - exclude: 'vllm/third_party/.*' - repo: https://github.com/codespell-project/codespell rev: v2.4.0 hooks: @@ -25,7 +24,6 @@ repos: rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # 6.0.0 hooks: - id: isort - exclude: 'vllm/third_party/.*' - repo: https://github.com/pre-commit/mirrors-clang-format rev: v19.1.7 hooks: @@ -38,12 +36,10 @@ repos: hooks: - id: pymarkdown args: [fix] - exclude: 'vllm/third_party/.*' - repo: https://github.com/rhysd/actionlint rev: v1.7.7 hooks: - id: actionlint - exclude: 'vllm/third_party/.*' - repo: https://github.com/astral-sh/uv-pre-commit rev: 0.6.2 hooks: @@ -59,7 +55,6 @@ repos: types: [python] additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests] stages: [pre-commit] # Don't run in CI - exclude: 'vllm/third_party/.*' - id: mypy-3.9 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward name: Run mypy for Python 3.9 entry: tools/mypy.sh 1 "3.9" @@ -67,7 +62,6 @@ repos: types: [python] additional_dependencies: *mypy_deps stages: [manual] # Only run in CI - exclude: 'vllm/third_party/.*' - id: mypy-3.10 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward name: Run mypy for Python 3.10 entry: tools/mypy.sh 1 "3.10" @@ -75,7 +69,6 @@ repos: types: [python] additional_dependencies: *mypy_deps stages: [manual] # Only run in CI - exclude: 'vllm/third_party/.*' - id: mypy-3.11 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward name: Run mypy for Python 3.11 entry: tools/mypy.sh 1 "3.11" @@ -83,7 +76,6 @@ repos: types: [python] additional_dependencies: *mypy_deps stages: [manual] # Only run in CI - exclude: 'vllm/third_party/.*' - id: mypy-3.12 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward name: Run mypy for Python 3.12 entry: tools/mypy.sh 1 "3.12" @@ -91,19 +83,16 @@ repos: types: [python] additional_dependencies: *mypy_deps stages: [manual] # Only run in CI - exclude: 'vllm/third_party/.*' - id: shellcheck name: Lint shell scripts entry: tools/shellcheck.sh language: script types: [shell] - exclude: 'vllm/third_party/.*' - id: png-lint name: Lint PNG exports from excalidraw entry: tools/png-lint.sh language: script types: [png] - exclude: 'vllm/third_party/.*' - id: signoff-commit name: Sign-off Commit entry: bash @@ -116,13 +105,11 @@ repos: language: system verbose: true stages: [commit-msg] - exclude: 'vllm/third_party/.*' - id: check-spdx-header name: Check SPDX headers entry: python tools/check_spdx_header.py language: python types: [python] - exclude: 'vllm/third_party/.*' - id: check-filenames name: Check for spaces in all filenames entry: bash @@ -132,7 +119,6 @@ repos: language: system always_run: true pass_filenames: false - exclude: 'vllm/third_party/.*' # Keep `suggestion` last - id: suggestion name: Suggestion @@ -140,5 +126,4 @@ repos: language: system verbose: true pass_filenames: false - exclude: 'vllm/third_party/.*' # Insert new entries above the `suggestion` entry