Move codespell config to tools/codespell.toml (#6707)

This commit is contained in:
xzfc
2025-06-16 22:06:06 +00:00
committed by generall
parent 20e58d50e9
commit e365ddca69
3 changed files with 24 additions and 26 deletions

View File

@@ -1,22 +0,0 @@
[codespell]
exclude-file =
Cargo.lock,
tests/tls/cert/key.pem,
# openapi.json is typically a released version and could carry old typos
skip =
openapi.json,
static,
target,
# ABD - Geohash example
# generall - The boss
# hel - Query token
# mmapped - Memory mapped
ignore-words-list =
ABD,
crate,
generall,
hel,
mmapped,

View File

@@ -19,7 +19,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
with:
skip: '**/stop_words/*.rs'
- name: Install Codespell
run: python -m pip install --upgrade 'codespell[toml]'
- name: Run Codespell
run: codespell --toml tools/codespell.toml

19
tools/codespell.toml Normal file
View File

@@ -0,0 +1,19 @@
# You can run the following command in the repository root:
# uv tool run codespell --toml tools/codespell.toml
[tool.codespell]
skip = [
"**/stop_words/*.rs",
"./static",
"./tests/tls/cert/key.pem",
"openapi.json", # openapi.json is typically a released version and could carry old typos
"target",
]
ignore-words-list = [
"ABD", # Geohash example
"generall", # The boss
"hel", # Query token
"mmapped", # Memory mapped
]