ci: avoids duplication of codespell config (#17519)

This commit is contained in:
Jacob Gordon
2026-01-21 14:02:37 -06:00
committed by GitHub
parent 390898545e
commit cda43ffa4d
6 changed files with 4 additions and 18 deletions

3
.codespellrc Normal file
View File

@@ -0,0 +1,3 @@
[codespell]
ignore-words-list = ans, als, hel, boostrap, childs, te, vas, hsa, ment
skip = *.json,*.jsonl,*.patch,*.txt

View File

@@ -51,8 +51,7 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: ['tomli']
args: ['--toml', 'python/pyproject.toml', '-L', 'cann,thi,makro,wil,rouge,PRIS']
args: ['--config', '.codespellrc', '-L', 'cann,thi,makro,wil,rouge,PRIS']
exclude: |
(?x)^(
test/srt/test_reasoning_parser\.py|

View File

@@ -175,7 +175,3 @@ version_file = "sglang/_version.py"
git_describe_command = ["bash", "-c", "git tag --list --sort=-version:refname 'v*.*.*' | head -1 | xargs git describe --tags --long"]
# Allow editable installs even when .git metadata is not available.
fallback_version = "0.0.0.dev0"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -133,7 +133,3 @@ exclude = [
root = ".."
version_file = "sglang/_version.py"
git_describe_command = ["git", "describe", "--tags", "--long", "--match", "v*"]
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -202,7 +202,3 @@ exclude = [
root = ".."
version_file = "sglang/_version.py"
git_describe_command = ["git", "describe", "--tags", "--long", "--match", "v*"]
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -137,7 +137,3 @@ exclude = [
root = ".."
version_file = "sglang/_version.py"
git_describe_command = ["git", "describe", "--tags", "--long", "--match", "v*"]
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"