mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:23:11 +00:00
chore: remove repetitive words (#10502)
This commit is contained in:
parent
4ad3166a3f
commit
c5ea4209bb
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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`].
|
||||
///
|
||||
/// 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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue