Fix typos configuration (#1742)

## Summary

Narrow down excludes for `typos` and fix 2 additional misspellings.

BTW pre-commit can be run in CI:
https://github.com/szepeviktor/pre-commit-on-you/actions/runs/7971275239/job/21760614908
This commit is contained in:
Viktor Szépe 2024-02-20 15:53:07 +01:00 committed by GitHub
parent daf2800ddf
commit c191a83c5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 8 deletions

View File

@ -1,12 +1,17 @@
[files] [files]
extend-exclude = [ extend-exclude = [
"**/resources/**/*", "**/snapshots/",
"**/snapshots/**/*",
"scripts/**/*.in", "scripts/**/*.in",
] ]
ignore-hidden = false
[default.extend-words] [default]
BA = "BA" # acronym for "Bad Allowed", used in testing. extend-ignore-re = [
Nd = "Nd" # secret codeword used by friendly bards "FRiENDlY-\\.\\.\\.-_-BARd",
borken = "borken" # the word is borken :( "FrIeNdLy-\\._\\.-bArD",
"I borken you cache",
"eb1ba5f5",
]
[default.extend-identifiers]
seeked = "seeked" # special term used for streams seeked = "seeked" # special term used for streams

View File

@ -164,7 +164,7 @@ impl<'a> FlatIndexClient<'a> {
match File::try_from(file, base.as_url().as_str()) { match File::try_from(file, base.as_url().as_str()) {
Ok(file) => Some(file), Ok(file) => Some(file),
Err(err) => { Err(err) => {
// Ignore files with unparseable version specifiers. // Ignore files with unparsable version specifiers.
warn!("Skipping file in {url}: {err}"); warn!("Skipping file in {url}: {err}");
None None
} }

View File

@ -486,7 +486,7 @@ fn dependency_excludes_range_of_compatible_versions() {
/// There is a non-contiguous range of compatible versions for the requested package /// There is a non-contiguous range of compatible versions for the requested package
/// `a`, but another dependency `c` excludes the range. This is the same as /// `a`, but another dependency `c` excludes the range. This is the same as
/// `dependency-excludes-range-of-compatible-versions` but some of the versions of /// `dependency-excludes-range-of-compatible-versions` but some of the versions of
/// `a` are incompatible for another reason e.g. dependency on non-existant package /// `a` are incompatible for another reason e.g. dependency on non-existent package
/// `d`. /// `d`.
/// ///
/// ```text /// ```text