mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 13:15:19 +00:00
37 lines
1.1 KiB
TOML
37 lines
1.1 KiB
TOML
[files]
|
|
# https://github.com/crate-ci/typos/issues/868
|
|
extend-exclude = [
|
|
"crates/ty_vendored/vendor/**/*",
|
|
"**/resources/**/*",
|
|
"**/snapshots/**/*",
|
|
# Completion tests tend to have a lot of incomplete
|
|
# words naturally. It's annoying to have to make all
|
|
# of them actually words. So just ignore typos here.
|
|
"crates/ty_ide/src/completion.rs",
|
|
]
|
|
|
|
[default.extend-words]
|
|
"arange" = "arange" # e.g. `numpy.arange`
|
|
hel = "hel"
|
|
whos = "whos"
|
|
spawnve = "spawnve"
|
|
ned = "ned"
|
|
pn = "pn" # `import panel as pn` is a thing
|
|
poit = "poit"
|
|
BA = "BA" # acronym for "Bad Allowed", used in testing.
|
|
jod = "jod" # e.g., `jod-thread`
|
|
Numer = "Numer" # Library name 'NumerBlox' in "Who's Using Ruff?"
|
|
|
|
[default]
|
|
extend-ignore-re = [
|
|
# Line ignore with trailing "spellchecker:disable-line"
|
|
"(?Rm)^.*#\\s*spellchecker:disable-line$",
|
|
"LICENSEs",
|
|
# Various third party dependencies uses `typ` as struct field names (e.g., lsp_types::LogMessageParams)
|
|
"typ",
|
|
# TODO: Remove this once the `TYP` redirects are removed from `rule_redirects.rs`
|
|
"TYP",
|
|
]
|
|
|
|
[default.extend-identifiers]
|
|
"FrIeNdLy" = "FrIeNdLy"
|