mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-12 23:02:28 +00:00
Adds [typos](https://github.com/crate-ci/typos) as a CI check and pre-commit hook, the same way Lance does it, so misspellings like the ones fixed in #4146 get caught automatically going forward. This also fixes the misspellings `typos` found across the repo (Rust, Python, TypeScript source, comments, and generated docs), and adds a small `.typos.toml` with `extend-words` entries for terms that are correct but look like typos: `AKS` (Azure Kubernetes Service), `RabitQ` (a real quantization algorithm name), `mmaped` (the actual name of a `candle-core` API we call), and `Writeable` (from Python's `_typeshed.WriteableBuffer`). Third-party license files are excluded. Fixes #4147 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
678 B
TOML
20 lines
678 B
TOML
[default]
|
|
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"]
|
|
|
|
[default.extend-words]
|
|
# Azure Kubernetes Service, mentioned in rust/lancedb/src/remote/oauth.rs.
|
|
AKS = "AKS"
|
|
# RabitQ is the name of a vector quantization algorithm, not a typo of "Rabbit".
|
|
Rabit = "Rabit"
|
|
# `VarBuilder::from_mmaped_safetensors` is the real (if oddly-spelled) name of
|
|
# the candle-core API we call in rust/lancedb/src/embeddings/sentence_transformers.rs.
|
|
mmaped = "mmaped"
|
|
# `WriteableBuffer` is the real name of a type from Python's `_typeshed` stubs,
|
|
# used in python/python/lancedb/_blob.py.
|
|
Writeable = "Writeable"
|
|
|
|
[files]
|
|
extend-exclude = [
|
|
"*_THIRD_PARTY_LICENSES.*",
|
|
]
|