Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos configuration #1742

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[files]
extend-exclude = [
"**/resources/**/*",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These directories do not exist.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh this was copy-pasted from Ruff a long time ago.

"**/snapshots/**/*",
"**/snapshots/",
Comment on lines -4 to +3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An ending / is enough.

"scripts/**/*.in",
]
ignore-hidden = false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😲 check dotfiles.


[default.extend-words]
BA = "BA" # acronym for "Bad Allowed", used in testing.
Nd = "Nd" # secret codeword used by friendly bards
borken = "borken" # the word is borken :(
[default]
extend-ignore-re = [
"FRiENDlY-\\.\\.\\.-_-BARd",
"FrIeNdLy-\\._\\.-bArD",
"I borken you cache",
"eb1ba5f5",
]

[default.extend-identifiers]
seeked = "seeked" # special term used for streams
2 changes: 1 addition & 1 deletion crates/uv-client/src/flat_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<'a> FlatIndexClient<'a> {
match File::try_from(file, base.as_url().as_str()) {
Ok(file) => Some(file),
Err(err) => {
// Ignore files with unparseable version specifiers.
// Ignore files with unparsable version specifiers.
warn!("Skipping file in {url}: {err}");
None
}
Expand Down
2 changes: 1 addition & 1 deletion crates/uv/tests/pip_install_scenarios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ fn dependency_excludes_range_of_compatible_versions() {
/// 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
/// `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`.
///
/// ```text
Expand Down