mirror of
https://github.com/lancedb/lancedb.git
synced 2026-09-11 15:52:17 +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>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.2.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.9.9
|
|
hooks:
|
|
- id: ruff
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.26.0
|
|
hooks:
|
|
- id: typos
|
|
# - repo: https://github.com/RobertCraigie/pyright-python
|
|
# rev: v1.1.395
|
|
# hooks:
|
|
# - id: pyright
|
|
# args: ["--project", "python"]
|
|
# additional_dependencies: [pyarrow-stubs]
|
|
- repo: local
|
|
hooks:
|
|
- id: local-biome-check
|
|
name: biome check
|
|
# Use the biome from nodejs/package.json rather than a separately
|
|
# pinned one: the two drifted apart and disagreed on formatting, so
|
|
# this hook rejected code that `pnpm lint` accepted.
|
|
entry: nodejs/node_modules/.bin/biome check --config-path nodejs/biome.json nodejs/
|
|
language: system
|
|
types: [text]
|
|
files: "nodejs/.*"
|
|
exclude: nodejs/lancedb/native.d.ts|nodejs/dist/.*|nodejs/examples/.*
|