mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-04 09:24:31 +08:00
Deduplicate .pre-commit-config.yaml's exclude (#13967)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
512d77d582
commit
5677c9bb3e
@ -1,6 +1,7 @@
|
|||||||
default_stages:
|
default_stages:
|
||||||
- pre-commit # Run locally
|
- pre-commit # Run locally
|
||||||
- manual # Run in CI
|
- manual # Run in CI
|
||||||
|
exclude: 'vllm/third_party/.*'
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/google/yapf
|
- repo: https://github.com/google/yapf
|
||||||
rev: v0.43.0
|
rev: v0.43.0
|
||||||
@ -8,13 +9,11 @@ repos:
|
|||||||
- id: yapf
|
- id: yapf
|
||||||
args: [--in-place, --verbose]
|
args: [--in-place, --verbose]
|
||||||
additional_dependencies: [toml] # TODO: Remove when yapf is upgraded
|
additional_dependencies: [toml] # TODO: Remove when yapf is upgraded
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.9.3
|
rev: v0.9.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--output-format, github, --fix]
|
args: [--output-format, github, --fix]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.4.0
|
rev: v2.4.0
|
||||||
hooks:
|
hooks:
|
||||||
@ -25,7 +24,6 @@ repos:
|
|||||||
rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # 6.0.0
|
rev: 0a0b7a830386ba6a31c2ec8316849ae4d1b8240d # 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v19.1.7
|
rev: v19.1.7
|
||||||
hooks:
|
hooks:
|
||||||
@ -38,12 +36,10 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pymarkdown
|
- id: pymarkdown
|
||||||
args: [fix]
|
args: [fix]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- repo: https://github.com/rhysd/actionlint
|
- repo: https://github.com/rhysd/actionlint
|
||||||
rev: v1.7.7
|
rev: v1.7.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: actionlint
|
- id: actionlint
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
rev: 0.6.2
|
rev: 0.6.2
|
||||||
hooks:
|
hooks:
|
||||||
@ -59,7 +55,6 @@ repos:
|
|||||||
types: [python]
|
types: [python]
|
||||||
additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests]
|
additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests]
|
||||||
stages: [pre-commit] # Don't run in CI
|
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
|
- 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
|
name: Run mypy for Python 3.9
|
||||||
entry: tools/mypy.sh 1 "3.9"
|
entry: tools/mypy.sh 1 "3.9"
|
||||||
@ -67,7 +62,6 @@ repos:
|
|||||||
types: [python]
|
types: [python]
|
||||||
additional_dependencies: *mypy_deps
|
additional_dependencies: *mypy_deps
|
||||||
stages: [manual] # Only run in CI
|
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
|
- 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
|
name: Run mypy for Python 3.10
|
||||||
entry: tools/mypy.sh 1 "3.10"
|
entry: tools/mypy.sh 1 "3.10"
|
||||||
@ -75,7 +69,6 @@ repos:
|
|||||||
types: [python]
|
types: [python]
|
||||||
additional_dependencies: *mypy_deps
|
additional_dependencies: *mypy_deps
|
||||||
stages: [manual] # Only run in CI
|
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
|
- 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
|
name: Run mypy for Python 3.11
|
||||||
entry: tools/mypy.sh 1 "3.11"
|
entry: tools/mypy.sh 1 "3.11"
|
||||||
@ -83,7 +76,6 @@ repos:
|
|||||||
types: [python]
|
types: [python]
|
||||||
additional_dependencies: *mypy_deps
|
additional_dependencies: *mypy_deps
|
||||||
stages: [manual] # Only run in CI
|
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
|
- 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
|
name: Run mypy for Python 3.12
|
||||||
entry: tools/mypy.sh 1 "3.12"
|
entry: tools/mypy.sh 1 "3.12"
|
||||||
@ -91,19 +83,16 @@ repos:
|
|||||||
types: [python]
|
types: [python]
|
||||||
additional_dependencies: *mypy_deps
|
additional_dependencies: *mypy_deps
|
||||||
stages: [manual] # Only run in CI
|
stages: [manual] # Only run in CI
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
name: Lint shell scripts
|
name: Lint shell scripts
|
||||||
entry: tools/shellcheck.sh
|
entry: tools/shellcheck.sh
|
||||||
language: script
|
language: script
|
||||||
types: [shell]
|
types: [shell]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- id: png-lint
|
- id: png-lint
|
||||||
name: Lint PNG exports from excalidraw
|
name: Lint PNG exports from excalidraw
|
||||||
entry: tools/png-lint.sh
|
entry: tools/png-lint.sh
|
||||||
language: script
|
language: script
|
||||||
types: [png]
|
types: [png]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- id: signoff-commit
|
- id: signoff-commit
|
||||||
name: Sign-off Commit
|
name: Sign-off Commit
|
||||||
entry: bash
|
entry: bash
|
||||||
@ -116,13 +105,11 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
verbose: true
|
verbose: true
|
||||||
stages: [commit-msg]
|
stages: [commit-msg]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- id: check-spdx-header
|
- id: check-spdx-header
|
||||||
name: Check SPDX headers
|
name: Check SPDX headers
|
||||||
entry: python tools/check_spdx_header.py
|
entry: python tools/check_spdx_header.py
|
||||||
language: python
|
language: python
|
||||||
types: [python]
|
types: [python]
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
- id: check-filenames
|
- id: check-filenames
|
||||||
name: Check for spaces in all filenames
|
name: Check for spaces in all filenames
|
||||||
entry: bash
|
entry: bash
|
||||||
@ -132,7 +119,6 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
always_run: true
|
always_run: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
# Keep `suggestion` last
|
# Keep `suggestion` last
|
||||||
- id: suggestion
|
- id: suggestion
|
||||||
name: Suggestion
|
name: Suggestion
|
||||||
@ -140,5 +126,4 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
verbose: true
|
verbose: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
exclude: 'vllm/third_party/.*'
|
|
||||||
# Insert new entries above the `suggestion` entry
|
# Insert new entries above the `suggestion` entry
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user