diff --git a/crates/ruff_dev/src/format_dev.rs b/crates/ruff_dev/src/format_dev.rs index f54d080ffe542..063adbb02b16f 100644 --- a/crates/ruff_dev/src/format_dev.rs +++ b/crates/ruff_dev/src/format_dev.rs @@ -134,7 +134,7 @@ impl Statistics { } } - /// We currently prefer the the similarity index, but i'd like to keep this around + /// We currently prefer the similarity index, but i'd like to keep this around #[allow(clippy::cast_precision_loss, unused)] pub(crate) fn jaccard_index(&self) -> f32 { self.intersection as f32 / (self.black_input + self.ruff_output + self.intersection) as f32 diff --git a/crates/ruff_python_formatter/src/context.rs b/crates/ruff_python_formatter/src/context.rs index ebfdb782ff5d8..0d3ef991fb586 100644 --- a/crates/ruff_python_formatter/src/context.rs +++ b/crates/ruff_python_formatter/src/context.rs @@ -248,7 +248,7 @@ where /// The current indent level of the formatter. /// -/// One can determine the the width of the indent itself (in number of ASCII +/// One can determine the width of the indent itself (in number of ASCII /// space characters) by multiplying the indent level by the configured indent /// width. /// diff --git a/crates/ruff_python_parser/src/parser.rs b/crates/ruff_python_parser/src/parser.rs index e1ad6216a208d..659fac0b4aff8 100644 --- a/crates/ruff_python_parser/src/parser.rs +++ b/crates/ruff_python_parser/src/parser.rs @@ -166,7 +166,7 @@ pub fn parse(source: &str, mode: Mode) -> Result { /// Parse the given Python source code using the specified [`Mode`] and [`TextSize`]. /// -/// This function allows to specify the location of the the source code, other than +/// This function allows to specify the location of the source code, other than /// that, it behaves exactly like [`parse`]. /// /// # Example diff --git a/crates/ruff_workspace/src/resolver.rs b/crates/ruff_workspace/src/resolver.rs index 446e08b6bf44a..3db1f65f95db1 100644 --- a/crates/ruff_workspace/src/resolver.rs +++ b/crates/ruff_workspace/src/resolver.rs @@ -236,7 +236,7 @@ fn is_package_with_cache<'a>( /// Applies a transformation to a [`Configuration`]. /// -/// Used to override options with the the values provided by the CLI. +/// Used to override options with the values provided by the CLI. pub trait ConfigurationTransformer: Sync { fn transform(&self, config: Configuration) -> Configuration; }