mirror of https://github.com/astral-sh/ruff
chore: remove repetitive words (#10502)
This commit is contained in:
parent
4ad3166a3f
commit
c5ea4209bb
|
|
@ -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)]
|
#[allow(clippy::cast_precision_loss, unused)]
|
||||||
pub(crate) fn jaccard_index(&self) -> f32 {
|
pub(crate) fn jaccard_index(&self) -> f32 {
|
||||||
self.intersection as f32 / (self.black_input + self.ruff_output + self.intersection) as f32
|
self.intersection as f32 / (self.black_input + self.ruff_output + self.intersection) as f32
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ where
|
||||||
|
|
||||||
/// The current indent level of the formatter.
|
/// 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
|
/// space characters) by multiplying the indent level by the configured indent
|
||||||
/// width.
|
/// width.
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ pub fn parse(source: &str, mode: Mode) -> Result<Mod, ParseError> {
|
||||||
|
|
||||||
/// Parse the given Python source code using the specified [`Mode`] and [`TextSize`].
|
/// 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`].
|
/// that, it behaves exactly like [`parse`].
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ fn is_package_with_cache<'a>(
|
||||||
|
|
||||||
/// Applies a transformation to a [`Configuration`].
|
/// 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 {
|
pub trait ConfigurationTransformer: Sync {
|
||||||
fn transform(&self, config: Configuration) -> Configuration;
|
fn transform(&self, config: Configuration) -> Configuration;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue