From cd488b88e8415a7f0c1c24c1981cdc78b6361fc7 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 23 Mar 2023 23:19:43 -0400 Subject: [PATCH 1/3] Allow diagnostics to generate multi-edit fixes --- Cargo.lock | 1 + crates/ruff/src/autofix/mod.rs | 58 +++++---- crates/ruff/src/checkers/ast/mod.rs | 2 +- crates/ruff/src/checkers/logical_lines.rs | 18 +-- crates/ruff/src/message.rs | 4 +- .../pyupgrade/rules/replace_stdout_stderr.rs | 118 ++++++------------ crates/ruff/src/test.rs | 2 +- crates/ruff_cli/src/printer.rs | 32 +++-- crates/ruff_diagnostics/src/diagnostic.rs | 20 +-- crates/ruff_diagnostics/src/edit.rs | 2 + crates/ruff_diagnostics/src/fix.rs | 45 +++++++ crates/ruff_diagnostics/src/lib.rs | 2 + crates/ruff_wasm/Cargo.toml | 8 +- crates/ruff_wasm/src/lib.rs | 29 ++--- crates/ruff_wasm/tests/api.rs | 3 +- 15 files changed, 190 insertions(+), 154 deletions(-) create mode 100644 crates/ruff_diagnostics/src/fix.rs diff --git a/Cargo.lock b/Cargo.lock index 36287f950793e..31acae55cba0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2259,6 +2259,7 @@ dependencies = [ "js-sys", "log", "ruff", + "ruff_diagnostics", "ruff_python_ast", "ruff_rustpython", "rustpython-parser", diff --git a/crates/ruff/src/autofix/mod.rs b/crates/ruff/src/autofix/mod.rs index 0a0f3c44672fe..308b819a9f289 100644 --- a/crates/ruff/src/autofix/mod.rs +++ b/crates/ruff/src/autofix/mod.rs @@ -4,7 +4,7 @@ use itertools::Itertools; use rustc_hash::FxHashMap; use rustpython_parser::ast::Location; -use ruff_diagnostics::{Diagnostic, Edit}; +use ruff_diagnostics::{Diagnostic, Edit, Fix}; use ruff_python_ast::source_code::Locator; use ruff_python_ast::types::Range; @@ -15,7 +15,7 @@ pub mod helpers; /// Auto-fix errors in a file, and write the fixed source code to disk. pub fn fix_file(diagnostics: &[Diagnostic], locator: &Locator) -> Option<(String, FixTable)> { - if diagnostics.iter().all(|check| check.fix.is_none()) { + if diagnostics.iter().all(|check| check.fix.is_empty()) { None } else { Some(apply_fixes(diagnostics.iter(), locator)) @@ -34,36 +34,43 @@ fn apply_fixes<'a>( for (rule, fix) in diagnostics .filter_map(|diagnostic| { - diagnostic - .fix - .as_ref() - .map(|fix| (diagnostic.kind.rule(), fix)) + if diagnostic.fix.is_empty() { + None + } else { + Some((diagnostic.kind.rule(), &diagnostic.fix)) + } }) .sorted_by(|(rule1, fix1), (rule2, fix2)| cmp_fix(*rule1, *rule2, fix1, fix2)) { // If we already applied an identical fix as part of another correction, skip // any re-application. - if applied.contains(&fix) { + if fix.edits().iter().all(|edit| applied.contains(edit)) { *fixed.entry(rule).or_default() += 1; continue; } // Best-effort approach: if this fix overlaps with a fix we've already applied, // skip it. - if last_pos.map_or(false, |last_pos| last_pos >= fix.location) { + if last_pos.map_or(false, |last_pos| { + fix.location() + .map_or(false, |fix_location| last_pos >= fix_location) + }) { continue; } - // Add all contents from `last_pos` to `fix.location`. - let slice = locator.slice(Range::new(last_pos.unwrap_or_default(), fix.location)); - output.push_str(slice); + for edit in fix.edits() { + // Add all contents from `last_pos` to `fix.location`. + let slice = locator.slice(Range::new(last_pos.unwrap_or_default(), edit.location)); + output.push_str(slice); - // Add the patch itself. - output.push_str(&fix.content); + // Add the patch itself. + output.push_str(&edit.content); + + // Track that the edit was applied. + last_pos = Some(edit.end_location); + applied.insert(edit); + } - // Track that the fix was applied. - last_pos = Some(fix.end_location); - applied.insert(fix); *fixed.entry(rule).or_default() += 1; } @@ -93,9 +100,9 @@ pub(crate) fn apply_fix(fix: &Edit, locator: &Locator) -> String { } /// Compare two fixes. -fn cmp_fix(rule1: Rule, rule2: Rule, fix1: &Edit, fix2: &Edit) -> std::cmp::Ordering { - fix1.location - .cmp(&fix2.location) +fn cmp_fix(rule1: Rule, rule2: Rule, fix1: &Fix, fix2: &Fix) -> std::cmp::Ordering { + fix1.location() + .cmp(&fix2.location()) .then_with(|| match (&rule1, &rule2) { // Apply `EndsInPeriod` fixes before `NewLineAfterLastParagraph` fixes. (Rule::EndsInPeriod, Rule::NewLineAfterLastParagraph) => std::cmp::Ordering::Less, @@ -115,15 +122,14 @@ mod tests { use crate::autofix::{apply_fix, apply_fixes}; use crate::rules::pycodestyle::rules::MissingNewlineAtEndOfFile; - fn create_diagnostics(fixes: impl IntoIterator) -> Vec { - fixes - .into_iter() - .map(|fix| Diagnostic { + fn create_diagnostics(edit: impl IntoIterator) -> Vec { + edit.into_iter() + .map(|edit| Diagnostic { // The choice of rule here is arbitrary. kind: MissingNewlineAtEndOfFile.into(), - location: fix.location, - end_location: fix.end_location, - fix: Some(fix), + location: edit.location, + end_location: edit.end_location, + fix: edit.into(), parent: None, }) .collect() diff --git a/crates/ruff/src/checkers/ast/mod.rs b/crates/ruff/src/checkers/ast/mod.rs index 1b855384cbe7e..25530eb40cf97 100644 --- a/crates/ruff/src/checkers/ast/mod.rs +++ b/crates/ruff/src/checkers/ast/mod.rs @@ -2455,7 +2455,7 @@ where pyupgrade::rules::replace_universal_newlines(self, func, keywords); } if self.settings.rules.enabled(Rule::ReplaceStdoutStderr) { - pyupgrade::rules::replace_stdout_stderr(self, expr, func, keywords); + pyupgrade::rules::replace_stdout_stderr(self, expr, func, args, keywords); } if self.settings.rules.enabled(Rule::OSErrorAlias) { pyupgrade::rules::os_error_alias_call(self, func); diff --git a/crates/ruff/src/checkers/logical_lines.rs b/crates/ruff/src/checkers/logical_lines.rs index 01c33efd0c800..584e3d9b2a5ae 100644 --- a/crates/ruff/src/checkers/logical_lines.rs +++ b/crates/ruff/src/checkers/logical_lines.rs @@ -5,7 +5,7 @@ use itertools::Itertools; use rustpython_parser::ast::Location; use rustpython_parser::lexer::LexResult; -use ruff_diagnostics::Diagnostic; +use ruff_diagnostics::{Diagnostic, Fix}; use ruff_python_ast::source_code::{Locator, Stylist}; use ruff_python_ast::types::Range; @@ -75,7 +75,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -93,7 +93,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -108,7 +108,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -120,7 +120,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -133,7 +133,7 @@ pub fn check_logical_lines( kind, location: range.location, end_location: range.end_location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -148,7 +148,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -159,7 +159,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } @@ -210,7 +210,7 @@ pub fn check_logical_lines( kind, location, end_location: location, - fix: None, + fix: Fix::empty(), parent: None, }); } diff --git a/crates/ruff/src/message.rs b/crates/ruff/src/message.rs index 50765218ec656..f837311fb050b 100644 --- a/crates/ruff/src/message.rs +++ b/crates/ruff/src/message.rs @@ -3,7 +3,7 @@ use std::cmp::Ordering; pub use rustpython_parser::ast::Location; use serde::{Deserialize, Serialize}; -use ruff_diagnostics::{Diagnostic, DiagnosticKind, Edit}; +use ruff_diagnostics::{Diagnostic, DiagnosticKind, Fix}; use ruff_python_ast::source_code::Locator; use ruff_python_ast::types::Range; @@ -12,7 +12,7 @@ pub struct Message { pub kind: DiagnosticKind, pub location: Location, pub end_location: Location, - pub fix: Option, + pub fix: Fix, pub filename: String, pub source: Option, pub noqa_row: usize, diff --git a/crates/ruff/src/rules/pyupgrade/rules/replace_stdout_stderr.rs b/crates/ruff/src/rules/pyupgrade/rules/replace_stdout_stderr.rs index 6cb31281ee6e8..cc7dbec4a38b0 100644 --- a/crates/ruff/src/rules/pyupgrade/rules/replace_stdout_stderr.rs +++ b/crates/ruff/src/rules/pyupgrade/rules/replace_stdout_stderr.rs @@ -1,12 +1,13 @@ +use anyhow::Result; use rustpython_parser::ast::{Expr, Keyword}; -use ruff_diagnostics::{AlwaysAutofixableViolation, Diagnostic, Edit}; +use ruff_diagnostics::{AlwaysAutofixableViolation, Diagnostic, Edit, Fix}; use ruff_macros::{derive_message_formats, violation}; use ruff_python_ast::helpers::find_keyword; -use ruff_python_ast::source_code::{Locator, Stylist}; +use ruff_python_ast::source_code::Locator; use ruff_python_ast::types::Range; -use ruff_python_ast::whitespace::indentation; +use crate::autofix::helpers::remove_argument; use crate::checkers::ast::Checker; use crate::registry::AsRule; @@ -24,87 +25,46 @@ impl AlwaysAutofixableViolation for ReplaceStdoutStderr { } } -#[derive(Debug)] -struct MiddleContent<'a> { - contents: &'a str, - multi_line: bool, -} - -/// Return the number of "dirty" characters. -fn dirty_count(iter: impl Iterator) -> usize { - let mut the_count = 0; - for current_char in iter { - if current_char == ' ' - || current_char == ',' - || current_char == '\n' - || current_char == '\r' - { - the_count += 1; - } else { - break; - } - } - the_count -} - -/// Extract the `Middle` content between two arguments. -fn extract_middle(contents: &str) -> Option { - let multi_line = contents.contains('\n'); - let start_gap = dirty_count(contents.chars()); - if contents.len() == start_gap { - return None; - } - let end_gap = dirty_count(contents.chars().rev()); - Some(MiddleContent { - contents: &contents[start_gap..contents.len() - end_gap], - multi_line, - }) -} - /// Generate a [`Edit`] for a `stdout` and `stderr` [`Keyword`] pair. fn generate_fix( - stylist: &Stylist, locator: &Locator, + func: &Expr, + args: &[Expr], + keywords: &[Keyword], stdout: &Keyword, stderr: &Keyword, -) -> Option { - let line_end = stylist.line_ending().as_str(); - let first = if stdout.location < stderr.location { - stdout - } else { - stderr - }; - let last = if stdout.location > stderr.location { - stdout +) -> Result { + let (first, second) = if stdout.location < stderr.location { + (stdout, stderr) } else { - stderr + (stderr, stdout) }; - let mut contents = String::from("capture_output=True"); - if let Some(middle) = - extract_middle(locator.slice(Range::new(first.end_location.unwrap(), last.location))) - { - if middle.multi_line { - let Some(indent) = indentation(locator, first) else { - return None; - }; - contents.push(','); - contents.push_str(line_end); - contents.push_str(indent); - } else { - contents.push(','); - contents.push(' '); - } - contents.push_str(middle.contents); - } - Some(Edit::replacement( - contents, - first.location, - last.end_location.unwrap(), - )) + Ok(Fix::new(vec![ + Edit::replacement( + "capture_output=True".to_string(), + first.location, + first.end_location.unwrap(), + ), + remove_argument( + locator, + func.location, + second.location, + second.end_location.unwrap(), + args, + keywords, + false, + )?, + ])) } /// UP022 -pub fn replace_stdout_stderr(checker: &mut Checker, expr: &Expr, func: &Expr, kwargs: &[Keyword]) { +pub fn replace_stdout_stderr( + checker: &mut Checker, + expr: &Expr, + func: &Expr, + args: &[Expr], + keywords: &[Keyword], +) { if checker .ctx .resolve_call_path(func) @@ -113,10 +73,10 @@ pub fn replace_stdout_stderr(checker: &mut Checker, expr: &Expr, func: &Expr, kw }) { // Find `stdout` and `stderr` kwargs. - let Some(stdout) = find_keyword(kwargs, "stdout") else { + let Some(stdout) = find_keyword(keywords, "stdout") else { return; }; - let Some(stderr) = find_keyword(kwargs, "stderr") else { + let Some(stderr) = find_keyword(keywords, "stderr") else { return; }; @@ -139,9 +99,9 @@ pub fn replace_stdout_stderr(checker: &mut Checker, expr: &Expr, func: &Expr, kw let mut diagnostic = Diagnostic::new(ReplaceStdoutStderr, Range::from(expr)); if checker.patch(diagnostic.kind.rule()) { - if let Some(fix) = generate_fix(checker.stylist, checker.locator, stdout, stderr) { - diagnostic.set_fix(fix); - }; + diagnostic.try_set_fix(|| { + generate_fix(checker.locator, func, args, keywords, stdout, stderr) + }); } checker.diagnostics.push(diagnostic); } diff --git a/crates/ruff/src/test.rs b/crates/ruff/src/test.rs index b6758e9d5c79d..43d7519df981c 100644 --- a/crates/ruff/src/test.rs +++ b/crates/ruff/src/test.rs @@ -51,7 +51,7 @@ pub fn test_path(path: impl AsRef, settings: &Settings) -> Result { +struct ExpandedEdit<'a> { content: &'a str, - message: Option<&'a str>, location: &'a Location, end_location: &'a Location, } +#[derive(Serialize)] +struct ExpandedFix<'a> { + message: Option<&'a str>, + edits: Vec>, +} + #[derive(Serialize)] struct ExpandedMessage<'a> { code: SerializeRuleAsCode, @@ -197,12 +202,23 @@ impl Printer { .map(|message| ExpandedMessage { code: message.kind.rule().into(), message: message.kind.body.clone(), - fix: message.fix.as_ref().map(|fix| ExpandedFix { - content: &fix.content, - location: &fix.location, - end_location: &fix.end_location, - message: message.kind.suggestion.as_deref(), - }), + fix: if message.fix.is_empty() { + None + } else { + Some(ExpandedFix { + message: message.kind.suggestion.as_deref(), + edits: message + .fix + .edits() + .iter() + .map(|edit| ExpandedEdit { + content: &edit.content, + location: &edit.location, + end_location: &edit.end_location, + }) + .collect(), + }) + }, location: message.location, end_location: message.end_location, filename: &message.filename, diff --git a/crates/ruff_diagnostics/src/diagnostic.rs b/crates/ruff_diagnostics/src/diagnostic.rs index 3344b246623a5..61856cdb8e511 100644 --- a/crates/ruff_diagnostics/src/diagnostic.rs +++ b/crates/ruff_diagnostics/src/diagnostic.rs @@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize}; use ruff_python_ast::types::Range; -use crate::edit::Edit; +use crate::Fix; #[derive(Debug, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] @@ -27,31 +27,31 @@ pub struct Diagnostic { pub kind: DiagnosticKind, pub location: Location, pub end_location: Location, - pub fix: Option, + pub fix: Fix, pub parent: Option, } impl Diagnostic { - pub fn new>(kind: K, range: Range) -> Self { + pub fn new>(kind: T, range: Range) -> Self { Self { kind: kind.into(), location: range.location, end_location: range.end_location, - fix: None, + fix: Fix::empty(), parent: None, } } - /// Set the [`Edit`] used to fix the diagnostic. - pub fn set_fix(&mut self, fix: Edit) { - self.fix = Some(fix); + /// Set the [`Fix`] used to fix the diagnostic. + pub fn set_fix>(&mut self, fix: T) { + self.fix = fix.into(); } - /// Set the [`Edit`] used to fix the diagnostic, if the provided function returns `Ok`. + /// Set the [`Fix`] used to fix the diagnostic, if the provided function returns `Ok`. /// Otherwise, log the error. - pub fn try_set_fix(&mut self, func: impl FnOnce() -> Result) { + pub fn try_set_fix>(&mut self, func: impl FnOnce() -> Result) { match func() { - Ok(fix) => self.fix = Some(fix), + Ok(fix) => self.fix = fix.into(), Err(err) => error!("Failed to create fix: {}", err), } } diff --git a/crates/ruff_diagnostics/src/edit.rs b/crates/ruff_diagnostics/src/edit.rs index e2f4d30b8f00d..8c0ae0e0bb81f 100644 --- a/crates/ruff_diagnostics/src/edit.rs +++ b/crates/ruff_diagnostics/src/edit.rs @@ -2,6 +2,8 @@ use rustpython_parser::ast::Location; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; +/// A text edit to be applied to a source file. Inserts, deletes, or replaces +/// content at a given location. #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Edit { diff --git a/crates/ruff_diagnostics/src/fix.rs b/crates/ruff_diagnostics/src/fix.rs new file mode 100644 index 0000000000000..15cac436e2d3b --- /dev/null +++ b/crates/ruff_diagnostics/src/fix.rs @@ -0,0 +1,45 @@ +use rustpython_parser::ast::Location; +#[cfg(feature = "serde")] +use serde::{Deserialize, Serialize}; + +use crate::edit::Edit; + +/// A collection of [`Edit`] elements to be applied to a source file. +#[derive(Default, Debug, PartialEq, Eq)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +pub struct Fix { + edits: Vec, +} + +impl Fix { + /// Create a new [`Fix`] from a vector of [`Edit`] elements. + pub fn new(edits: Vec) -> Self { + Self { edits } + } + + /// Create an empty [`Fix`]. + pub const fn empty() -> Self { + Self { edits: Vec::new() } + } + + /// Return `true` if the [`Fix`] contains no [`Edit`] elements. + pub fn is_empty(&self) -> bool { + self.edits.is_empty() + } + + /// Return the [`Location`] of the first [`Edit`] in the [`Fix`]. + pub fn location(&self) -> Option { + self.edits.iter().map(|edit| edit.location).min() + } + + /// Return a slice of the [`Edit`] elements in the [`Fix`]. + pub fn edits(&self) -> &[Edit] { + &self.edits + } +} + +impl From for Fix { + fn from(edit: Edit) -> Self { + Self { edits: vec![edit] } + } +} diff --git a/crates/ruff_diagnostics/src/lib.rs b/crates/ruff_diagnostics/src/lib.rs index 4c5f32bd144c9..b3b1ee2567a51 100644 --- a/crates/ruff_diagnostics/src/lib.rs +++ b/crates/ruff_diagnostics/src/lib.rs @@ -1,7 +1,9 @@ pub use diagnostic::{Diagnostic, DiagnosticKind}; pub use edit::Edit; +pub use fix::Fix; pub use violation::{AlwaysAutofixableViolation, AutofixKind, Violation}; mod diagnostic; mod edit; +mod fix; mod violation; diff --git a/crates/ruff_wasm/Cargo.toml b/crates/ruff_wasm/Cargo.toml index a6fcd0b916bac..dcb3b7bc6efe5 100644 --- a/crates/ruff_wasm/Cargo.toml +++ b/crates/ruff_wasm/Cargo.toml @@ -13,17 +13,19 @@ crate-type = ["cdylib", "rlib"] default = ["console_error_panic_hook"] [dependencies] +ruff_diagnostics = { path = "../ruff_diagnostics" } +ruff_python_ast = { path = "../ruff_python_ast" } +ruff_rustpython = { path = "../ruff_rustpython" } + +console_error_panic_hook = { version = "0.1.7", optional = true } console_log = { version = "0.2.1" } getrandom = { version = "0.2.8", features = ["js"] } log = { workspace = true } ruff = { path = "../ruff" } -ruff_python_ast = { path = "../ruff_python_ast" } -ruff_rustpython = { path = "../ruff_rustpython" } rustpython-parser = { workspace = true } serde = { workspace = true } serde-wasm-bindgen = { version = "0.5.0" } wasm-bindgen = { version = "0.2.84" } -console_error_panic_hook = { version = "0.1.7", optional = true } [dev-dependencies] js-sys = { version = "0.3.61" } diff --git a/crates/ruff_wasm/src/lib.rs b/crates/ruff_wasm/src/lib.rs index 77eaec6e4118e..1a188fb57d86b 100644 --- a/crates/ruff_wasm/src/lib.rs +++ b/crates/ruff_wasm/src/lib.rs @@ -17,6 +17,7 @@ use ruff::rules::{ use ruff::settings::configuration::Configuration; use ruff::settings::options::Options; use ruff::settings::{defaults, flags, Settings}; +use ruff_diagnostics::Edit; use ruff_python_ast::source_code::{Indexer, Locator, Stylist}; const VERSION: &str = env!("CARGO_PKG_VERSION"); @@ -49,6 +50,12 @@ export interface Diagnostic { }; "#; +#[derive(Serialize, Deserialize, Eq, PartialEq, Debug)] +pub struct ExpandedFix { + message: Option, + edits: Vec, +} + #[derive(Serialize, Deserialize, Eq, PartialEq, Debug)] pub struct ExpandedMessage { pub code: String, @@ -58,14 +65,6 @@ pub struct ExpandedMessage { pub fix: Option, } -#[derive(Serialize, Deserialize, Eq, PartialEq, Debug)] -pub struct ExpandedFix { - content: String, - message: Option, - location: Location, - end_location: Location, -} - #[wasm_bindgen(start)] pub fn run() { use log::Level; @@ -204,12 +203,14 @@ pub fn check(contents: &str, options: JsValue) -> Result { message: message.kind.body, location: message.location, end_location: message.end_location, - fix: message.fix.map(|fix| ExpandedFix { - content: fix.content, - message: message.kind.suggestion, - location: fix.location, - end_location: fix.end_location, - }), + fix: if message.fix.is_empty() { + None + } else { + Some(ExpandedFix { + message: message.kind.suggestion, + edits: message.fix.edits().to_vec(), + }) + }, }) .collect(); diff --git a/crates/ruff_wasm/tests/api.rs b/crates/ruff_wasm/tests/api.rs index 432a86f3ea2e8..b2bdf04dae825 100644 --- a/crates/ruff_wasm/tests/api.rs +++ b/crates/ruff_wasm/tests/api.rs @@ -5,6 +5,7 @@ use rustpython_parser::ast::Location; use wasm_bindgen_test::*; use ruff::registry::Rule; +use ruff_diagnostics::Fix; use ruff_wasm::*; macro_rules! check { @@ -30,7 +31,7 @@ fn empty_config() { message: "If test is a tuple, which is always `True`".to_string(), location: Location::new(1, 0), end_location: Location::new(2, 8), - fix: None, + fix: Fix::empty(), }] ); } From ed5190e016308b6f60df9232000317228740211f Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 26 Mar 2023 14:38:33 -0400 Subject: [PATCH 2/3] Respect changes in playground --- crates/ruff_diagnostics/src/fix.rs | 8 ++++++++ crates/ruff_wasm/src/lib.rs | 20 +++++++++--------- playground/src/Editor/SourceEditor.tsx | 28 +++++++++++++------------- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/crates/ruff_diagnostics/src/fix.rs b/crates/ruff_diagnostics/src/fix.rs index 15cac436e2d3b..3eaa8f02416f6 100644 --- a/crates/ruff_diagnostics/src/fix.rs +++ b/crates/ruff_diagnostics/src/fix.rs @@ -38,6 +38,14 @@ impl Fix { } } +impl FromIterator for Fix { + fn from_iter>(iter: T) -> Self { + Self { + edits: Vec::from_iter(iter), + } + } +} + impl From for Fix { fn from(edit: Edit) -> Self { Self { edits: vec![edit] } diff --git a/crates/ruff_wasm/src/lib.rs b/crates/ruff_wasm/src/lib.rs index 1a188fb57d86b..57b3fd96d4d4b 100644 --- a/crates/ruff_wasm/src/lib.rs +++ b/crates/ruff_wasm/src/lib.rs @@ -36,16 +36,18 @@ export interface Diagnostic { column: number; }; fix: { - content: string; message: string | null; - location: { - row: number; - column: number; - }; - end_location: { - row: number; - column: number; - }; + edits: { + content: string; + location: { + row: number; + column: number; + }; + end_location: { + row: number; + column: number; + }; + }[]; } | null; }; "#; diff --git a/playground/src/Editor/SourceEditor.tsx b/playground/src/Editor/SourceEditor.tsx index f33533d77f7d4..da7677d1ad828 100644 --- a/playground/src/Editor/SourceEditor.tsx +++ b/playground/src/Editor/SourceEditor.tsx @@ -57,27 +57,27 @@ export default function SourceEditor({ .filter((check) => check.fix) .map((check) => ({ title: check.fix - ? `${check.code}: ${check.fix.message}` ?? `Fix ${check.code}` + ? check.fix.message + ? `${check.code}: ${check.fix.message}` + : `Fix ${check.code}` : "Autofix", id: `fix-${check.code}`, kind: "quickfix", edit: check.fix ? { - edits: [ - { - resource: model.uri, - versionId: model.getVersionId(), - edit: { - range: { - startLineNumber: check.fix.location.row, - startColumn: check.fix.location.column + 1, - endLineNumber: check.fix.end_location.row, - endColumn: check.fix.end_location.column + 1, - }, - text: check.fix.content, + edits: check.fix.edits.map((edit) => ({ + resource: model.uri, + versionId: model.getVersionId(), + edit: { + range: { + startLineNumber: edit.location.row, + startColumn: edit.location.column + 1, + endLineNumber: edit.end_location.row, + endColumn: edit.end_location.column + 1, }, + text: edit.content, }, - ], + })), } : undefined, })); From 3f140adf6c8a825dcb3804f8fd8360bc8cfd8c79 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 26 Mar 2023 15:08:53 -0400 Subject: [PATCH 3/3] Update snapshots --- ...s__eradicate__tests__ERA001_ERA001.py.snap | 75 +- ..._flake8_2020__tests__YTT101_YTT101.py.snap | 9 +- ..._flake8_2020__tests__YTT102_YTT102.py.snap | 6 +- ..._flake8_2020__tests__YTT103_YTT103.py.snap | 15 +- ..._flake8_2020__tests__YTT201_YTT201.py.snap | 12 +- ..._flake8_2020__tests__YTT202_YTT202.py.snap | 6 +- ..._flake8_2020__tests__YTT203_YTT203.py.snap | 6 +- ..._flake8_2020__tests__YTT204_YTT204.py.snap | 6 +- ..._flake8_2020__tests__YTT301_YTT301.py.snap | 6 +- ..._flake8_2020__tests__YTT302_YTT302.py.snap | 15 +- ..._flake8_2020__tests__YTT303_YTT303.py.snap | 6 +- ...e8_annotations__tests__allow_overload.snap | 3 +- ...nnotations__tests__allow_star_arg_any.snap | 12 +- ...__flake8_annotations__tests__defaults.snap | 69 +- ...otations__tests__ignore_fully_untyped.snap | 15 +- ..._annotations__tests__mypy_init_return.snap | 48 +- ...otations__tests__simple_magic_methods.snap | 210 +++--- ...tions__tests__suppress_none_returning.snap | 9 +- ...s__flake8_bandit__tests__S101_S101.py.snap | 9 +- ...s__flake8_bandit__tests__S102_S102.py.snap | 6 +- ...s__flake8_bandit__tests__S103_S103.py.snap | 39 +- ...s__flake8_bandit__tests__S104_S104.py.snap | 12 +- ...s__flake8_bandit__tests__S105_S105.py.snap | 117 ++- ...s__flake8_bandit__tests__S106_S106.py.snap | 3 +- ...s__flake8_bandit__tests__S107_S107.py.snap | 15 +- ...s__flake8_bandit__tests__S108_S108.py.snap | 9 +- ...es__flake8_bandit__tests__S108_extend.snap | 12 +- ...s__flake8_bandit__tests__S110_S110.py.snap | 6 +- ...les__flake8_bandit__tests__S110_typed.snap | 9 +- ...s__flake8_bandit__tests__S112_S112.py.snap | 12 +- ...s__flake8_bandit__tests__S113_S113.py.snap | 42 +- ...s__flake8_bandit__tests__S301_S301.py.snap | 3 +- ...s__flake8_bandit__tests__S312_S312.py.snap | 3 +- ...s__flake8_bandit__tests__S324_S324.py.snap | 39 +- ...s__flake8_bandit__tests__S501_S501.py.snap | 54 +- ...s__flake8_bandit__tests__S506_S506.py.snap | 6 +- ...s__flake8_bandit__tests__S508_S508.py.snap | 6 +- ...s__flake8_bandit__tests__S509_S509.py.snap | 6 +- ...s__flake8_bandit__tests__S608_S608.py.snap | 135 ++-- ...s__flake8_bandit__tests__S612_S612.py.snap | 3 +- ...s__flake8_bandit__tests__S701_S701.py.snap | 15 +- ...e8_blind_except__tests__BLE001_BLE.py.snap | 30 +- ...e8_boolean_trap__tests__FBT001_FBT.py.snap | 27 +- ...e8_boolean_trap__tests__FBT002_FBT.py.snap | 12 +- ...e8_boolean_trap__tests__FBT003_FBT.py.snap | 9 +- ...__flake8_bugbear__tests__B002_B002.py.snap | 6 +- ...__flake8_bugbear__tests__B003_B003.py.snap | 3 +- ...__flake8_bugbear__tests__B004_B004.py.snap | 6 +- ...__flake8_bugbear__tests__B005_B005.py.snap | 24 +- ...ke8_bugbear__tests__B006_B006_B008.py.snap | 42 +- ...__flake8_bugbear__tests__B007_B007.py.snap | 99 +-- ...ke8_bugbear__tests__B008_B006_B008.py.snap | 45 +- ...ke8_bugbear__tests__B009_B009_B010.py.snap | 105 +-- ...ke8_bugbear__tests__B010_B009_B010.py.snap | 90 +-- ...__flake8_bugbear__tests__B011_B011.py.snap | 30 +- ...__flake8_bugbear__tests__B012_B012.py.snap | 33 +- ...__flake8_bugbear__tests__B013_B013.py.snap | 15 +- ...__flake8_bugbear__tests__B014_B014.py.snap | 45 +- ...__flake8_bugbear__tests__B015_B015.py.snap | 12 +- ...__flake8_bugbear__tests__B016_B016.py.snap | 9 +- ...__flake8_bugbear__tests__B017_B017.py.snap | 3 +- ...__flake8_bugbear__tests__B018_B018.py.snap | 81 ++- ...__flake8_bugbear__tests__B019_B019.py.snap | 24 +- ...__flake8_bugbear__tests__B020_B020.py.snap | 9 +- ...__flake8_bugbear__tests__B021_B021.py.snap | 30 +- ...__flake8_bugbear__tests__B022_B022.py.snap | 6 +- ...__flake8_bugbear__tests__B023_B023.py.snap | 72 +- ...__flake8_bugbear__tests__B024_B024.py.snap | 18 +- ...__flake8_bugbear__tests__B025_B025.py.snap | 12 +- ...__flake8_bugbear__tests__B026_B026.py.snap | 21 +- ...__flake8_bugbear__tests__B027_B027.py.snap | 12 +- ...__flake8_bugbear__tests__B028_B028.py.snap | 6 +- ...__flake8_bugbear__tests__B029_B029.py.snap | 6 +- ...__flake8_bugbear__tests__B030_B030.py.snap | 12 +- ...__flake8_bugbear__tests__B031_B031.py.snap | 21 +- ...__flake8_bugbear__tests__B032_B032.py.snap | 24 +- ...__flake8_bugbear__tests__B904_B904.py.snap | 18 +- ...__flake8_bugbear__tests__B905_B905.py.snap | 21 +- ...ugbear__tests__extend_immutable_calls.snap | 3 +- ..._flake8_builtins__tests__A001_A001.py.snap | 60 +- ...sts__A001_A001.py_builtins_ignorelist.snap | 54 +- ..._flake8_builtins__tests__A002_A002.py.snap | 27 +- ...sts__A002_A002.py_builtins_ignorelist.snap | 21 +- ..._flake8_builtins__tests__A003_A003.py.snap | 12 +- ...sts__A003_A003.py_builtins_ignorelist.snap | 6 +- ...rules__flake8_commas__tests__COM81.py.snap | 666 ++++++++++-------- ...8_comprehensions__tests__C400_C400.py.snap | 30 +- ...8_comprehensions__tests__C401_C401.py.snap | 75 +- ...8_comprehensions__tests__C402_C402.py.snap | 60 +- ...8_comprehensions__tests__C403_C403.py.snap | 30 +- ...8_comprehensions__tests__C404_C404.py.snap | 15 +- ...8_comprehensions__tests__C405_C405.py.snap | 135 ++-- ...8_comprehensions__tests__C406_C406.py.snap | 60 +- ...8_comprehensions__tests__C408_C408.py.snap | 60 +- ...low_dict_calls_with_keyword_arguments.snap | 45 +- ...8_comprehensions__tests__C409_C409.py.snap | 75 +- ...8_comprehensions__tests__C410_C410.py.snap | 60 +- ...8_comprehensions__tests__C411_C411.py.snap | 15 +- ...8_comprehensions__tests__C413_C413.py.snap | 105 +-- ...8_comprehensions__tests__C414_C414.py.snap | 210 +++--- ...8_comprehensions__tests__C415_C415.py.snap | 12 +- ...8_comprehensions__tests__C416_C416.py.snap | 60 +- ...8_comprehensions__tests__C417_C417.py.snap | 183 ++--- ...e8_datetimez__tests__DTZ001_DTZ001.py.snap | 15 +- ...e8_datetimez__tests__DTZ002_DTZ002.py.snap | 6 +- ...e8_datetimez__tests__DTZ003_DTZ003.py.snap | 6 +- ...e8_datetimez__tests__DTZ004_DTZ004.py.snap | 6 +- ...e8_datetimez__tests__DTZ005_DTZ005.py.snap | 15 +- ...e8_datetimez__tests__DTZ006_DTZ006.py.snap | 15 +- ...e8_datetimez__tests__DTZ007_DTZ007.py.snap | 15 +- ...e8_datetimez__tests__DTZ011_DTZ011.py.snap | 6 +- ...e8_datetimez__tests__DTZ012_DTZ012.py.snap | 6 +- ..._flake8_debugger__tests__T100_T100.py.snap | 27 +- ..._flake8_django__tests__DJ001_DJ001.py.snap | 54 +- ..._flake8_django__tests__DJ003_DJ003.py.snap | 6 +- ..._flake8_django__tests__DJ006_DJ006.py.snap | 3 +- ..._flake8_django__tests__DJ007_DJ007.py.snap | 6 +- ..._flake8_django__tests__DJ008_DJ008.py.snap | 9 +- ..._flake8_django__tests__DJ012_DJ012.py.snap | 12 +- ..._flake8_django__tests__DJ013_DJ013.py.snap | 6 +- ...__rules__flake8_errmsg__tests__custom.snap | 9 +- ...rules__flake8_errmsg__tests__defaults.snap | 12 +- ...flake8_executable__tests__EXE001_1.py.snap | 3 +- ...flake8_executable__tests__EXE002_1.py.snap | 3 +- ...__flake8_executable__tests__EXE003.py.snap | 3 +- ...flake8_executable__tests__EXE004_1.py.snap | 15 +- ...flake8_executable__tests__EXE004_3.py.snap | 3 +- ...flake8_executable__tests__EXE005_1.py.snap | 3 +- ...flake8_executable__tests__EXE005_2.py.snap | 3 +- ...flake8_executable__tests__EXE005_3.py.snap | 3 +- ...icit_str_concat__tests__ISC001_ISC.py.snap | 6 +- ...icit_str_concat__tests__ISC002_ISC.py.snap | 3 +- ...icit_str_concat__tests__ISC003_ISC.py.snap | 12 +- ...oncat__tests__multiline_ISC001_ISC.py.snap | 6 +- ...oncat__tests__multiline_ISC002_ISC.py.snap | 12 +- ...oncat__tests__multiline_ISC003_ISC.py.snap | 12 +- ...ke8_import_conventions__tests__custom.snap | 84 ++- ...8_import_conventions__tests__defaults.snap | 30 +- ...port_conventions__tests__from_imports.snap | 24 +- ..._conventions__tests__override_default.snap | 30 +- ...rt_conventions__tests__remove_default.snap | 24 +- ...flake8_logging_format__tests__G001.py.snap | 18 +- ...flake8_logging_format__tests__G002.py.snap | 6 +- ...flake8_logging_format__tests__G003.py.snap | 6 +- ...flake8_logging_format__tests__G004.py.snap | 6 +- ...flake8_logging_format__tests__G010.py.snap | 15 +- ...ake8_logging_format__tests__G101_1.py.snap | 3 +- ...ake8_logging_format__tests__G101_2.py.snap | 3 +- ...flake8_logging_format__tests__G201.py.snap | 6 +- ...flake8_logging_format__tests__G202.py.snap | 6 +- ...ke8_no_pep420__tests__test_fail_empty.snap | 3 +- ..._no_pep420__tests__test_fail_nonempty.snap | 3 +- ...8_no_pep420__tests__test_fail_shebang.snap | 3 +- ...__flake8_pie__tests__PIE790_PIE790.py.snap | 255 +++---- ...__flake8_pie__tests__PIE794_PIE794.py.snap | 60 +- ...__flake8_pie__tests__PIE796_PIE796.py.snap | 21 +- ...__flake8_pie__tests__PIE800_PIE800.py.snap | 12 +- ...__flake8_pie__tests__PIE802_PIE802.py.snap | 60 +- ...__flake8_pie__tests__PIE804_PIE804.py.snap | 15 +- ...__flake8_pie__tests__PIE807_PIE807.py.snap | 45 +- ...__flake8_pie__tests__PIE810_PIE810.py.snap | 75 +- ...es__flake8_print__tests__T201_T201.py.snap | 12 +- ...es__flake8_print__tests__T203_T203.py.snap | 6 +- ..._flake8_pyi__tests__PYI001_PYI001.pyi.snap | 9 +- ..._flake8_pyi__tests__PYI006_PYI006.pyi.snap | 18 +- ..._flake8_pyi__tests__PYI007_PYI007.pyi.snap | 9 +- ..._flake8_pyi__tests__PYI008_PYI008.pyi.snap | 3 +- ..._flake8_pyi__tests__PYI009_PYI009.pyi.snap | 6 +- ..._flake8_pyi__tests__PYI010_PYI010.pyi.snap | 9 +- ..._flake8_pyi__tests__PYI011_PYI011.pyi.snap | 270 +++---- ..._flake8_pyi__tests__PYI014_PYI014.pyi.snap | 195 ++--- ..._flake8_pyi__tests__PYI015_PYI015.pyi.snap | 165 +++-- ..._flake8_pyi__tests__PYI021_PYI021.pyi.snap | 9 +- ..._flake8_pyi__tests__PYI033_PYI033.pyi.snap | 33 +- ...e8_pytest_style__tests__PT001_default.snap | 45 +- ...st_style__tests__PT001_no_parentheses.snap | 90 +-- ...es__flake8_pytest_style__tests__PT002.snap | 6 +- ...es__flake8_pytest_style__tests__PT003.snap | 120 ++-- ...es__flake8_pytest_style__tests__PT004.snap | 6 +- ...es__flake8_pytest_style__tests__PT005.snap | 9 +- ...flake8_pytest_style__tests__PT006_csv.snap | 66 +- ...e8_pytest_style__tests__PT006_default.snap | 120 ++-- ...lake8_pytest_style__tests__PT006_list.snap | 90 +-- ...est_style__tests__PT007_list_of_lists.snap | 30 +- ...st_style__tests__PT007_list_of_tuples.snap | 30 +- ...st_style__tests__PT007_tuple_of_lists.snap | 36 +- ...t_style__tests__PT007_tuple_of_tuples.snap | 36 +- ...es__flake8_pytest_style__tests__PT008.snap | 36 +- ...es__flake8_pytest_style__tests__PT009.snap | 381 +++++----- ...es__flake8_pytest_style__tests__PT010.snap | 3 +- ...e8_pytest_style__tests__PT011_default.snap | 15 +- ..._tests__PT011_extend_broad_exceptions.snap | 18 +- ...tests__PT011_replace_broad_exceptions.snap | 3 +- ...es__flake8_pytest_style__tests__PT012.snap | 24 +- ...es__flake8_pytest_style__tests__PT013.snap | 9 +- ...es__flake8_pytest_style__tests__PT015.snap | 51 +- ...es__flake8_pytest_style__tests__PT016.snap | 15 +- ...es__flake8_pytest_style__tests__PT017.snap | 3 +- ...es__flake8_pytest_style__tests__PT018.snap | 162 +++-- ...es__flake8_pytest_style__tests__PT019.snap | 6 +- ...es__flake8_pytest_style__tests__PT020.snap | 6 +- ...es__flake8_pytest_style__tests__PT021.snap | 6 +- ...es__flake8_pytest_style__tests__PT022.snap | 15 +- ...e8_pytest_style__tests__PT023_default.snap | 75 +- ...st_style__tests__PT023_no_parentheses.snap | 75 +- ...es__flake8_pytest_style__tests__PT024.snap | 60 +- ...es__flake8_pytest_style__tests__PT025.snap | 30 +- ...es__flake8_pytest_style__tests__PT026.snap | 30 +- ...ing_doubles_over_docstring_doubles.py.snap | 75 +- ...ubles_over_docstring_doubles_class.py.snap | 30 +- ...es_over_docstring_doubles_function.py.snap | 75 +- ...docstring_doubles_module_multiline.py.snap | 30 +- ...ocstring_doubles_module_singleline.py.snap | 30 +- ...ing_doubles_over_docstring_singles.py.snap | 45 +- ...ubles_over_docstring_singles_class.py.snap | 45 +- ...es_over_docstring_singles_function.py.snap | 45 +- ...docstring_singles_module_multiline.py.snap | 15 +- ...ocstring_singles_module_singleline.py.snap | 15 +- ...ing_singles_over_docstring_doubles.py.snap | 45 +- ...ngles_over_docstring_doubles_class.py.snap | 45 +- ...es_over_docstring_doubles_function.py.snap | 45 +- ...docstring_doubles_module_multiline.py.snap | 15 +- ...ocstring_doubles_module_singleline.py.snap | 15 +- ...ing_singles_over_docstring_singles.py.snap | 90 +-- ...ngles_over_docstring_singles_class.py.snap | 30 +- ...es_over_docstring_singles_function.py.snap | 75 +- ...docstring_singles_module_multiline.py.snap | 30 +- ...ocstring_singles_module_singleline.py.snap | 30 +- ...ests__require_doubles_over_singles.py.snap | 45 +- ...quire_doubles_over_singles_escaped.py.snap | 30 +- ...uire_doubles_over_singles_implicit.py.snap | 105 +-- ...bles_over_singles_multiline_string.py.snap | 15 +- ...ests__require_singles_over_doubles.py.snap | 45 +- ...quire_singles_over_doubles_escaped.py.snap | 45 +- ...uire_singles_over_doubles_implicit.py.snap | 105 +-- ...gles_over_doubles_multiline_string.py.snap | 15 +- ...ry-paren-on-raise-exception_RSE102.py.snap | 90 +-- ...lake8_return__tests__RET501_RET501.py.snap | 30 +- ...lake8_return__tests__RET502_RET502.py.snap | 15 +- ...lake8_return__tests__RET503_RET503.py.snap | 285 ++++---- ...lake8_return__tests__RET504_RET504.py.snap | 6 +- ...lake8_return__tests__RET505_RET505.py.snap | 24 +- ...lake8_return__tests__RET506_RET506.py.snap | 21 +- ...lake8_return__tests__RET507_RET507.py.snap | 21 +- ...lake8_return__tests__RET508_RET508.py.snap | 21 +- ...ests__private-member-access_SLF001.py.snap | 33 +- ...ke8_simplify__tests__SIM101_SIM101.py.snap | 90 +-- ...ke8_simplify__tests__SIM102_SIM102.py.snap | 138 ++-- ...ke8_simplify__tests__SIM103_SIM103.py.snap | 66 +- ...ke8_simplify__tests__SIM105_SIM105.py.snap | 12 +- ...ke8_simplify__tests__SIM107_SIM107.py.snap | 3 +- ...ke8_simplify__tests__SIM108_SIM108.py.snap | 42 +- ...ke8_simplify__tests__SIM109_SIM109.py.snap | 60 +- ...ke8_simplify__tests__SIM110_SIM110.py.snap | 141 ++-- ...ke8_simplify__tests__SIM110_SIM111.py.snap | 171 ++--- ...ke8_simplify__tests__SIM112_SIM112.py.snap | 60 +- ...ke8_simplify__tests__SIM114_SIM114.py.snap | 24 +- ...ke8_simplify__tests__SIM115_SIM115.py.snap | 6 +- ...ke8_simplify__tests__SIM116_SIM116.py.snap | 21 +- ...ke8_simplify__tests__SIM117_SIM117.py.snap | 108 +-- ...ke8_simplify__tests__SIM118_SIM118.py.snap | 150 ++-- ...ke8_simplify__tests__SIM201_SIM201.py.snap | 45 +- ...ke8_simplify__tests__SIM202_SIM202.py.snap | 45 +- ...ke8_simplify__tests__SIM208_SIM208.py.snap | 30 +- ...ke8_simplify__tests__SIM210_SIM210.py.snap | 48 +- ...ke8_simplify__tests__SIM211_SIM211.py.snap | 45 +- ...ke8_simplify__tests__SIM212_SIM212.py.snap | 30 +- ...ke8_simplify__tests__SIM220_SIM220.py.snap | 45 +- ...ke8_simplify__tests__SIM221_SIM221.py.snap | 45 +- ...ke8_simplify__tests__SIM222_SIM222.py.snap | 90 +-- ...ke8_simplify__tests__SIM223_SIM223.py.snap | 90 +-- ...ke8_simplify__tests__SIM300_SIM300.py.snap | 225 +++--- ...ke8_simplify__tests__SIM401_SIM401.py.snap | 75 +- ...api__tests__banned_api_true_positives.snap | 36 +- ...ative_imports__tests__ban_all_imports.snap | 51 +- ...ve_imports__tests__ban_parent_imports.snap | 39 +- ...ts__tests__ban_parent_imports_package.snap | 78 +- ...__empty-type-checking-block_TCH005.py.snap | 75 +- ..._type_checking__tests__exempt_modules.snap | 3 +- ...rt-in-type-checking-block_TCH004_1.py.snap | 3 +- ...t-in-type-checking-block_TCH004_11.py.snap | 3 +- ...t-in-type-checking-block_TCH004_12.py.snap | 3 +- ...rt-in-type-checking-block_TCH004_2.py.snap | 3 +- ...rt-in-type-checking-block_TCH004_4.py.snap | 3 +- ...rt-in-type-checking-block_TCH004_5.py.snap | 9 +- ...rt-in-type-checking-block_TCH004_9.py.snap | 6 +- ...k_runtime_evaluated_base_classes_1.py.snap | 9 +- ...ock_runtime_evaluated_decorators_1.py.snap | 9 +- ...__flake8_type_checking__tests__strict.snap | 9 +- ...ing-only-first-party-import_TCH001.py.snap | 3 +- ...nly-standard-library-import_TCH003.py.snap | 3 +- ...t_runtime_evaluated_base_classes_3.py.snap | 3 +- ...ort_runtime_evaluated_decorators_3.py.snap | 3 +- ...ing-only-third-party-import_TCH002.py.snap | 24 +- ...t_runtime_evaluated_base_classes_2.py.snap | 6 +- ...ort_runtime_evaluated_decorators_2.py.snap | 3 +- ...ing-only-third-party-import_strict.py.snap | 3 +- ...nused_arguments__tests__ARG001_ARG.py.snap | 24 +- ...nused_arguments__tests__ARG002_ARG.py.snap | 12 +- ...nused_arguments__tests__ARG003_ARG.py.snap | 3 +- ...nused_arguments__tests__ARG004_ARG.py.snap | 9 +- ...nused_arguments__tests__ARG005_ARG.py.snap | 3 +- ...uments__tests__enforce_variadic_names.snap | 36 +- ...guments__tests__ignore_variadic_names.snap | 24 +- ...e_pathlib__tests__PTH124_py_path_1.py.snap | 3 +- ...e_pathlib__tests__PTH124_py_path_2.py.snap | 3 +- ...ake8_use_pathlib__tests__full_name.py.snap | 78 +- ...ake8_use_pathlib__tests__import_as.py.snap | 69 +- ...e8_use_pathlib__tests__import_from.py.snap | 75 +- ...use_pathlib__tests__import_from_as.py.snap | 69 +- ...tests__add_newline_before_comments.py.snap | 15 +- ..._isort__tests__as_imports_comments.py.snap | 15 +- ...to_furthest_relative_imports_order.py.snap | 15 +- ...__isort__tests__combine_as_imports.py.snap | 15 +- ...bine_as_imports_combine_as_imports.py.snap | 15 +- ..._isort__tests__combine_import_from.py.snap | 15 +- ...ombined_required_imports_docstring.py.snap | 30 +- ...uff__rules__isort__tests__comments.py.snap | 15 +- ..._isort__tests__deduplicate_imports.py.snap | 15 +- ...les__isort__tests__fit_line_length.py.snap | 15 +- ...rt__tests__fit_line_length_comment.py.snap | 15 +- ...orce_single_line_force_single_line.py.snap | 15 +- ..._tests__force_sort_within_sections.py.snap | 15 +- ...ections_force_sort_within_sections.py.snap | 15 +- ..._rules__isort__tests__force_to_top.py.snap | 15 +- ...__tests__force_to_top_force_to_top.py.snap | 15 +- ...__isort__tests__force_wrap_aliases.py.snap | 15 +- ...ce_wrap_aliases_force_wrap_aliases.py.snap | 15 +- ...les__isort__tests__forced_separate.py.snap | 15 +- ...t__tests__import_from_after_import.py.snap | 15 +- ...les__isort__tests__inline_comments.py.snap | 15 +- ...__isort__tests__insert_empty_lines.py.snap | 60 +- ..._isort__tests__insert_empty_lines.pyi.snap | 45 +- ...lder_separate_local_folder_imports.py.snap | 15 +- ...ules__isort__tests__leading_prefix.py.snap | 12 +- ...ts_lines_after_imports_class_after.py.snap | 15 +- ...rts_lines_after_imports_func_after.py.snap | 15 +- ..._lines_after_imports_nothing_after.py.snap | 15 +- ...s_between_typeslines_between_types.py.snap | 15 +- ...isort__tests__magic_trailing_comma.py.snap | 15 +- ...rules__isort__tests__natural_order.py.snap | 15 +- ...les__isort__tests__no_lines_before.py.snap | 15 +- ...no_lines_before.py_no_lines_before.py.snap | 15 +- ...o_lines_before_with_empty_sections.py.snap | 15 +- ..._rules__isort__tests__no_wrap_star.py.snap | 15 +- ...rules__isort__tests__order_by_type.py.snap | 15 +- ..._order_by_type_false_order_by_type.py.snap | 15 +- ..._order_by_type_with_custom_classes.py.snap | 15 +- ..._order_by_type_with_custom_classes.py.snap | 15 +- ...rder_by_type_with_custom_constants.py.snap | 15 +- ...rder_by_type_with_custom_constants.py.snap | 15 +- ...rder_by_type_with_custom_variables.py.snap | 15 +- ...rder_by_type_with_custom_variables.py.snap | 15 +- ...s__order_relative_imports_by_level.py.snap | 15 +- ...ort__tests__preserve_comment_order.py.snap | 15 +- ...isort__tests__preserve_import_star.py.snap | 15 +- ...isort__tests__preserve_indentation.py.snap | 30 +- ...ort__tests__reorder_within_section.py.snap | 15 +- ...__tests__required_import_docstring.py.snap | 15 +- ...equired_import_multiline_docstring.py.snap | 15 +- ..._tests__required_imports_docstring.py.snap | 30 +- ...ests__separate_first_party_imports.py.snap | 15 +- ...rt__tests__separate_future_imports.py.snap | 15 +- ...sts__separate_local_folder_imports.py.snap | 15 +- ...ests__separate_third_party_imports.py.snap | 15 +- .../ruff__rules__isort__tests__skip.py.snap | 30 +- ...isort__tests__sort_similar_imports.py.snap | 15 +- ...railing_comma_magic_trailing_comma.py.snap | 15 +- ...__isort__tests__star_before_others.py.snap | 15 +- ...straight_required_import_docstring.py.snap | 15 +- ...les__isort__tests__trailing_suffix.py.snap | 6 +- ...ules__mccabe__tests__max_complexity_0.snap | 66 +- ...ules__mccabe__tests__max_complexity_3.snap | 6 +- ...numpy-deprecated-type-alias_NPY001.py.snap | 105 +-- ..._tests__numpy-legacy-random_NPY002.py.snap | 150 ++-- ...es__pandas_vet__tests__PD002_PD002.py.snap | 60 +- ...les__pep8_naming__tests__N801_N801.py.snap | 15 +- ...les__pep8_naming__tests__N802_N802.py.snap | 15 +- ...les__pep8_naming__tests__N803_N803.py.snap | 6 +- ...les__pep8_naming__tests__N804_N804.py.snap | 9 +- ...les__pep8_naming__tests__N805_N805.py.snap | 15 +- ...les__pep8_naming__tests__N806_N806.py.snap | 6 +- ...les__pep8_naming__tests__N807_N807.py.snap | 6 +- ...les__pep8_naming__tests__N811_N811.py.snap | 9 +- ...les__pep8_naming__tests__N812_N812.py.snap | 9 +- ...les__pep8_naming__tests__N813_N813.py.snap | 9 +- ...les__pep8_naming__tests__N814_N814.py.snap | 9 +- ...les__pep8_naming__tests__N815_N815.py.snap | 9 +- ...les__pep8_naming__tests__N816_N816.py.snap | 9 +- ...les__pep8_naming__tests__N817_N817.py.snap | 6 +- ...les__pep8_naming__tests__N818_N818.py.snap | 6 +- ...999_N999__module__MODULE____init__.py.snap | 3 +- ..._module__mod with spaces____init__.py.snap | 3 +- ..._module__mod-with-dashes____init__.py.snap | 3 +- ...dule__valid_name__file-with-dashes.py.snap | 3 +- ...naming__tests__classmethod_decorators.snap | 9 +- crates/ruff/src/rules/pycodestyle/mod.rs | 2 +- ...les__pycodestyle__tests__E101_E101.py.snap | 9 +- ...ules__pycodestyle__tests__E111_E11.py.snap | 6 +- ...ules__pycodestyle__tests__E112_E11.py.snap | 3 +- ...ules__pycodestyle__tests__E113_E11.py.snap | 3 +- ...ules__pycodestyle__tests__E114_E11.py.snap | 3 +- ...ules__pycodestyle__tests__E115_E11.py.snap | 18 +- ...ules__pycodestyle__tests__E116_E11.py.snap | 12 +- ...ules__pycodestyle__tests__E117_E11.py.snap | 9 +- ...ules__pycodestyle__tests__E201_E20.py.snap | 18 +- ...ules__pycodestyle__tests__E202_E20.py.snap | 18 +- ...ules__pycodestyle__tests__E203_E20.py.snap | 18 +- ...ules__pycodestyle__tests__E211_E21.py.snap | 60 +- ...ules__pycodestyle__tests__E221_E22.py.snap | 24 +- ...ules__pycodestyle__tests__E222_E22.py.snap | 15 +- ...ules__pycodestyle__tests__E223_E22.py.snap | 3 +- ...ules__pycodestyle__tests__E224_E22.py.snap | 3 +- ...ules__pycodestyle__tests__E225_E22.py.snap | 63 +- ...ules__pycodestyle__tests__E226_E22.py.snap | 36 +- ...ules__pycodestyle__tests__E227_E22.py.snap | 15 +- ...ules__pycodestyle__tests__E228_E22.py.snap | 9 +- ...ules__pycodestyle__tests__E231_E23.py.snap | 60 +- ...ules__pycodestyle__tests__E251_E25.py.snap | 33 +- ...ules__pycodestyle__tests__E252_E25.py.snap | 12 +- ...ules__pycodestyle__tests__E261_E26.py.snap | 3 +- ...ules__pycodestyle__tests__E262_E26.py.snap | 15 +- ...ules__pycodestyle__tests__E265_E26.py.snap | 12 +- ...ules__pycodestyle__tests__E266_E26.py.snap | 9 +- ...ules__pycodestyle__tests__E271_E27.py.snap | 27 +- ...ules__pycodestyle__tests__E272_E27.py.snap | 9 +- ...ules__pycodestyle__tests__E273_E27.py.snap | 15 +- ...ules__pycodestyle__tests__E274_E27.py.snap | 6 +- ...ules__pycodestyle__tests__E275_E27.py.snap | 15 +- ...ules__pycodestyle__tests__E401_E40.py.snap | 3 +- ...ules__pycodestyle__tests__E402_E40.py.snap | 9 +- ...les__pycodestyle__tests__E402_E402.py.snap | 3 +- ...les__pycodestyle__tests__E501_E501.py.snap | 18 +- ...ules__pycodestyle__tests__E701_E70.py.snap | 42 +- ...ules__pycodestyle__tests__E702_E70.py.snap | 18 +- ...ules__pycodestyle__tests__E703_E70.py.snap | 45 +- ...les__pycodestyle__tests__E711_E711.py.snap | 150 ++-- ...les__pycodestyle__tests__E712_E712.py.snap | 165 +++-- ...les__pycodestyle__tests__E713_E713.py.snap | 75 +- ...les__pycodestyle__tests__E714_E714.py.snap | 33 +- ...les__pycodestyle__tests__E721_E721.py.snap | 45 +- ...les__pycodestyle__tests__E722_E722.py.snap | 9 +- ...les__pycodestyle__tests__E731_E731.py.snap | 78 +- ...les__pycodestyle__tests__E741_E741.py.snap | 75 +- ...les__pycodestyle__tests__E742_E742.py.snap | 9 +- ...les__pycodestyle__tests__E743_E743.py.snap | 9 +- ...les__pycodestyle__tests__E999_E999.py.snap | 3 +- ...ules__pycodestyle__tests__W191_W19.py.snap | 114 ++- ...ules__pycodestyle__tests__W291_W29.py.snap | 45 +- ...s__pycodestyle__tests__W292_W292_0.py.snap | 15 +- ...ules__pycodestyle__tests__W293_W29.py.snap | 15 +- ...s__pycodestyle__tests__W605_W605_0.py.snap | 60 +- ...s__pycodestyle__tests__W605_W605_1.py.snap | 60 +- ...pycodestyle__tests__constant_literals.snap | 135 ++-- ...s__pycodestyle__tests__max_doc_length.snap | 12 +- ...__pycodestyle__tests__task_tags_false.snap | 18 +- ...ff__rules__pycodestyle__tests__w292_4.snap | 15 +- ...__rules__pydocstyle__tests__D100_D.py.snap | 3 +- ...__rules__pydocstyle__tests__D101_D.py.snap | 3 +- ...__rules__pydocstyle__tests__D102_D.py.snap | 9 +- ...es__pydocstyle__tests__D102_setter.py.snap | 3 +- ...__rules__pydocstyle__tests__D103_D.py.snap | 3 +- ...cstyle__tests__D104_D104____init__.py.snap | 3 +- ...__rules__pydocstyle__tests__D105_D.py.snap | 3 +- ...__rules__pydocstyle__tests__D107_D.py.snap | 6 +- ...__rules__pydocstyle__tests__D200_D.py.snap | 51 +- ...__rules__pydocstyle__tests__D201_D.py.snap | 60 +- ...__rules__pydocstyle__tests__D202_D.py.snap | 60 +- ...ules__pydocstyle__tests__D202_D202.py.snap | 45 +- ...__rules__pydocstyle__tests__D203_D.py.snap | 45 +- ...__rules__pydocstyle__tests__D204_D.py.snap | 30 +- ...__rules__pydocstyle__tests__D205_D.py.snap | 18 +- ...__rules__pydocstyle__tests__D207_D.py.snap | 60 +- ...__rules__pydocstyle__tests__D208_D.py.snap | 45 +- ...__rules__pydocstyle__tests__D209_D.py.snap | 30 +- ...__rules__pydocstyle__tests__D210_D.py.snap | 48 +- ...__rules__pydocstyle__tests__D211_D.py.snap | 30 +- ...__rules__pydocstyle__tests__D212_D.py.snap | 45 +- ...__rules__pydocstyle__tests__D213_D.py.snap | 330 +++++---- ...__pydocstyle__tests__D214_sections.py.snap | 15 +- ...__pydocstyle__tests__D215_sections.py.snap | 30 +- ...__rules__pydocstyle__tests__D300_D.py.snap | 15 +- ...__rules__pydocstyle__tests__D301_D.py.snap | 9 +- ...__rules__pydocstyle__tests__D400_D.py.snap | 210 +++--- ...ules__pydocstyle__tests__D400_D400.py.snap | 180 ++--- ...ules__pydocstyle__tests__D401_D401.py.snap | 21 +- ...__rules__pydocstyle__tests__D402_D.py.snap | 3 +- ...ules__pydocstyle__tests__D403_D403.py.snap | 15 +- ...__rules__pydocstyle__tests__D404_D.py.snap | 6 +- ...__pydocstyle__tests__D405_sections.py.snap | 30 +- ...__pydocstyle__tests__D406_sections.py.snap | 30 +- ...__pydocstyle__tests__D407_sections.py.snap | 255 +++---- ...__pydocstyle__tests__D408_sections.py.snap | 15 +- ...__pydocstyle__tests__D409_sections.py.snap | 30 +- ...__pydocstyle__tests__D410_sections.py.snap | 30 +- ...__pydocstyle__tests__D411_sections.py.snap | 45 +- ...__pydocstyle__tests__D412_sections.py.snap | 15 +- ...__pydocstyle__tests__D413_sections.py.snap | 15 +- ...__pydocstyle__tests__D414_sections.py.snap | 18 +- ...__rules__pydocstyle__tests__D415_D.py.snap | 195 ++--- ...__pydocstyle__tests__D417_sections.py.snap | 33 +- ...__rules__pydocstyle__tests__D418_D.py.snap | 9 +- ...__rules__pydocstyle__tests__D419_D.py.snap | 9 +- .../ruff__rules__pydocstyle__tests__bom.snap | 3 +- ...__rules__pydocstyle__tests__d209_d400.snap | 30 +- ...rules__pydocstyle__tests__d417_google.snap | 27 +- ...__pydocstyle__tests__d417_unspecified.snap | 27 +- ...ules__pyflakes__tests__F401_F401_0.py.snap | 135 ++-- ...les__pyflakes__tests__F401_F401_10.py.snap | 18 +- ...les__pyflakes__tests__F401_F401_11.py.snap | 15 +- ...ules__pyflakes__tests__F401_F401_5.py.snap | 60 +- ...ules__pyflakes__tests__F401_F401_6.py.snap | 60 +- ...ules__pyflakes__tests__F401_F401_7.py.snap | 45 +- ...ules__pyflakes__tests__F401_F401_9.py.snap | 15 +- ..._rules__pyflakes__tests__F402_F402.py.snap | 6 +- ..._rules__pyflakes__tests__F403_F403.py.snap | 6 +- ..._rules__pyflakes__tests__F404_F404.py.snap | 6 +- ..._rules__pyflakes__tests__F405_F405.py.snap | 6 +- ..._rules__pyflakes__tests__F406_F406.py.snap | 6 +- ..._rules__pyflakes__tests__F407_F407.py.snap | 3 +- ..._rules__pyflakes__tests__F501_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F502_F502.py.snap | 21 +- ..._rules__pyflakes__tests__F502_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F503_F503.py.snap | 9 +- ..._rules__pyflakes__tests__F503_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F504_F504.py.snap | 45 +- ..._rules__pyflakes__tests__F504_F50x.py.snap | 15 +- ..._rules__pyflakes__tests__F505_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F506_F50x.py.snap | 9 +- ..._rules__pyflakes__tests__F507_F50x.py.snap | 6 +- ..._rules__pyflakes__tests__F508_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F509_F50x.py.snap | 3 +- ..._rules__pyflakes__tests__F521_F521.py.snap | 21 +- ..._rules__pyflakes__tests__F522_F522.py.snap | 45 +- ..._rules__pyflakes__tests__F523_F523.py.snap | 120 ++-- ..._rules__pyflakes__tests__F524_F524.py.snap | 18 +- ..._rules__pyflakes__tests__F525_F525.py.snap | 6 +- ..._rules__pyflakes__tests__F541_F541.py.snap | 225 +++--- ..._rules__pyflakes__tests__F601_F601.py.snap | 129 ++-- ..._rules__pyflakes__tests__F602_F602.py.snap | 126 ++-- ..._rules__pyflakes__tests__F622_F622.py.snap | 3 +- ..._rules__pyflakes__tests__F631_F631.py.snap | 6 +- ..._rules__pyflakes__tests__F632_F632.py.snap | 105 +-- ..._rules__pyflakes__tests__F633_F633.py.snap | 3 +- ..._rules__pyflakes__tests__F634_F634.py.snap | 6 +- ..._rules__pyflakes__tests__F701_F701.py.snap | 12 +- ..._rules__pyflakes__tests__F702_F702.py.snap | 12 +- ..._rules__pyflakes__tests__F704_F704.py.snap | 12 +- ..._rules__pyflakes__tests__F706_F706.py.snap | 6 +- ..._rules__pyflakes__tests__F707_F707.py.snap | 9 +- ..._rules__pyflakes__tests__F722_F722.py.snap | 6 +- ...ules__pyflakes__tests__F811_F811_0.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_1.py.snap | 3 +- ...les__pyflakes__tests__F811_F811_12.py.snap | 3 +- ...les__pyflakes__tests__F811_F811_15.py.snap | 3 +- ...les__pyflakes__tests__F811_F811_16.py.snap | 3 +- ...les__pyflakes__tests__F811_F811_17.py.snap | 6 +- ...ules__pyflakes__tests__F811_F811_2.py.snap | 3 +- ...les__pyflakes__tests__F811_F811_21.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_3.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_4.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_5.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_6.py.snap | 3 +- ...ules__pyflakes__tests__F811_F811_8.py.snap | 3 +- ...ules__pyflakes__tests__F821_F821_0.py.snap | 39 +- ...ules__pyflakes__tests__F821_F821_1.py.snap | 12 +- ...les__pyflakes__tests__F821_F821_11.py.snap | 6 +- ...les__pyflakes__tests__F821_F821_12.py.snap | 6 +- ...les__pyflakes__tests__F821_F821_13.py.snap | 3 +- ...ules__pyflakes__tests__F821_F821_2.py.snap | 3 +- ...ules__pyflakes__tests__F821_F821_3.py.snap | 6 +- ...ules__pyflakes__tests__F821_F821_4.py.snap | 15 +- ...ules__pyflakes__tests__F821_F821_5.py.snap | 3 +- ...ules__pyflakes__tests__F821_F821_7.py.snap | 9 +- ...ules__pyflakes__tests__F821_F821_9.py.snap | 3 +- ...ules__pyflakes__tests__F822_F822_0.py.snap | 3 +- ...ules__pyflakes__tests__F822_F822_1.py.snap | 3 +- ..._rules__pyflakes__tests__F823_F823.py.snap | 3 +- ...ules__pyflakes__tests__F841_F841_0.py.snap | 144 ++-- ...ules__pyflakes__tests__F841_F841_1.py.snap | 48 +- ...ules__pyflakes__tests__F841_F841_3.py.snap | 381 +++++----- ..._rules__pyflakes__tests__F842_F842.py.snap | 6 +- ..._rules__pyflakes__tests__F901_F901.py.snap | 30 +- ...es__pyflakes__tests__default_builtins.snap | 3 +- ...flakes__tests__default_typing_modules.snap | 3 +- ...pyflakes__tests__extra_typing_modules.snap | 3 +- ...lakes__tests__f841_dummy_variable_rgx.snap | 174 ++--- ...__pyflakes__tests__future_annotations.snap | 18 +- ...yflakes__tests__multi_statement_lines.snap | 195 ++--- ..._tests__nested_relative_typing_module.snap | 6 +- ...flakes__tests__relative_typing_module.snap | 3 +- ...grep_hooks__tests__PGH001_PGH001_0.py.snap | 6 +- ...grep_hooks__tests__PGH002_PGH002_1.py.snap | 6 +- ...grep_hooks__tests__PGH003_PGH003_0.py.snap | 9 +- ...grep_hooks__tests__PGH004_PGH004_0.py.snap | 18 +- ...nt__tests__PLC0414_import_aliasing.py.snap | 120 ++-- ...s__PLC1901_compare_to_empty_string.py.snap | 15 +- ...002_unnecessary_direct_lambda_call.py.snap | 9 +- ...lint__tests__PLE0100_yield_in_init.py.snap | 6 +- ...int__tests__PLE0101_return_in_init.py.snap | 6 +- ...__PLE0117_nonlocal_without_binding.py.snap | 9 +- ...118_load_before_global_declaration.py.snap | 39 +- ..._tests__PLE0604_invalid_all_object.py.snap | 6 +- ..._tests__PLE0605_invalid_all_format.py.snap | 24 +- ...tests__PLE1142_await_outside_async.py.snap | 6 +- ...sts__PLE1205_logging_too_many_args.py.snap | 6 +- ...ests__PLE1206_logging_too_few_args.py.snap | 3 +- ...ts__PLE1307_bad_string_format_type.py.snap | 33 +- ..._tests__PLE1310_bad_str_strip_call.py.snap | 48 +- ...ests__PLE1507_invalid_envvar_value.py.snap | 12 +- ...sts__PLE2502_bidirectional_unicode.py.snap | 12 +- ..._tests__PLE2510_invalid_characters.py.snap | 15 +- ..._tests__PLE2512_invalid_characters.py.snap | 15 +- ..._tests__PLE2513_invalid_characters.py.snap | 15 +- ..._tests__PLE2514_invalid_characters.py.snap | 15 +- ..._tests__PLE2515_invalid_characters.py.snap | 15 +- ...ts__PLR0133_comparison_of_constant.py.snap | 30 +- ...__PLR0206_property_with_parameters.py.snap | 9 +- ...nt__tests__PLR0402_import_aliasing.py.snap | 33 +- ...PLR0911_too_many_return_statements.py.snap | 3 +- ...__tests__PLR0912_too_many_branches.py.snap | 3 +- ..._tests__PLR0913_too_many_arguments.py.snap | 9 +- ...tests__PLR0915_too_many_statements.py.snap | 3 +- ..._PLR1701_repeated_isinstance_calls.py.snap | 18 +- ...int__tests__PLR1711_useless_return.py.snap | 90 +-- ...t__tests__PLR1722_sys_exit_alias_0.py.snap | 12 +- ...t__tests__PLR1722_sys_exit_alias_1.py.snap | 60 +- ...t__tests__PLR1722_sys_exit_alias_2.py.snap | 60 +- ...t__tests__PLR1722_sys_exit_alias_3.py.snap | 30 +- ...t__tests__PLR1722_sys_exit_alias_4.py.snap | 60 +- ...t__tests__PLR1722_sys_exit_alias_5.py.snap | 30 +- ...t__tests__PLR1722_sys_exit_alias_6.py.snap | 6 +- ...ts__PLR2004_magic_value_comparison.py.snap | 15 +- ...tests__PLR5501_collapsible_else_if.py.snap | 6 +- ...ests__PLW0120_useless_else_on_loop.py.snap | 21 +- ...__PLW0129_assert_on_string_literal.py.snap | 30 +- ...W0602_global_variable_not_assigned.py.snap | 6 +- ...t__tests__PLW0603_global_statement.py.snap | 24 +- ...tests__PLW0711_binary_op_exception.py.snap | 6 +- ...ts__PLW1508_invalid_envvar_default.py.snap | 12 +- ...tests__PLW2901_redefined_loop_name.py.snap | 75 +- ...ylint__tests__allow_magic_value_types.snap | 9 +- ...s__pylint__tests__continue_in_finally.snap | 39 +- .../ruff__rules__pylint__tests__max_args.snap | 6 +- ..._tests__max_args_with_dummy_variables.snap | 3 +- ...f__rules__pylint__tests__max_branches.snap | 6 +- ..._pylint__tests__max_return_statements.snap | 3 +- ..._rules__pylint__tests__max_statements.snap | 9 +- ...ff__rules__pyupgrade__tests__UP001.py.snap | 30 +- ...ff__rules__pyupgrade__tests__UP003.py.snap | 75 +- ...ff__rules__pyupgrade__tests__UP004.py.snap | 300 ++++---- ...ff__rules__pyupgrade__tests__UP005.py.snap | 60 +- ...ff__rules__pyupgrade__tests__UP006.py.snap | 177 ++--- ...ff__rules__pyupgrade__tests__UP007.py.snap | 180 ++--- ...ff__rules__pyupgrade__tests__UP008.py.snap | 75 +- ...__rules__pyupgrade__tests__UP009_0.py.snap | 15 +- ...__rules__pyupgrade__tests__UP009_1.py.snap | 15 +- ...ff__rules__pyupgrade__tests__UP010.py.snap | 150 ++-- ...ff__rules__pyupgrade__tests__UP011.py.snap | 60 +- ...ff__rules__pyupgrade__tests__UP012.py.snap | 270 +++---- ...ff__rules__pyupgrade__tests__UP013.py.snap | 180 ++--- ...ff__rules__pyupgrade__tests__UP014.py.snap | 75 +- ...ff__rules__pyupgrade__tests__UP015.py.snap | 660 +++++++++-------- ...ff__rules__pyupgrade__tests__UP018.py.snap | 90 +-- ...ff__rules__pyupgrade__tests__UP019.py.snap | 60 +- ...ff__rules__pyupgrade__tests__UP020.py.snap | 18 +- ...ff__rules__pyupgrade__tests__UP021.py.snap | 60 +- ...ff__rules__pyupgrade__tests__UP022.py.snap | 154 ++-- ...ff__rules__pyupgrade__tests__UP023.py.snap | 150 ++-- ...__rules__pyupgrade__tests__UP024_0.py.snap | 195 ++--- ...__rules__pyupgrade__tests__UP024_1.py.snap | 45 +- ...__rules__pyupgrade__tests__UP024_2.py.snap | 300 ++++---- ...__rules__pyupgrade__tests__UP024_4.py.snap | 15 +- ...ff__rules__pyupgrade__tests__UP025.py.snap | 180 ++--- ...ff__rules__pyupgrade__tests__UP026.py.snap | 390 +++++----- ...ff__rules__pyupgrade__tests__UP027.py.snap | 75 +- ...__rules__pyupgrade__tests__UP028_0.py.snap | 180 ++--- ...ff__rules__pyupgrade__tests__UP029.py.snap | 60 +- ...__rules__pyupgrade__tests__UP030_0.py.snap | 144 ++-- ...__rules__pyupgrade__tests__UP030_2.py.snap | 168 +++-- ...__rules__pyupgrade__tests__UP031_0.py.snap | 555 ++++++++------- ...ff__rules__pyupgrade__tests__UP032.py.snap | 375 +++++----- ...ff__rules__pyupgrade__tests__UP033.py.snap | 48 +- ...ff__rules__pyupgrade__tests__UP034.py.snap | 150 ++-- ...ff__rules__pyupgrade__tests__UP035.py.snap | 267 +++---- ...__rules__pyupgrade__tests__UP036_0.py.snap | 420 +++++------ ...__rules__pyupgrade__tests__UP036_1.py.snap | 195 ++--- ...__rules__pyupgrade__tests__UP036_2.py.snap | 180 ++--- ...__rules__pyupgrade__tests__UP036_3.py.snap | 45 +- ...__rules__pyupgrade__tests__UP036_4.py.snap | 120 ++-- ...ff__rules__pyupgrade__tests__UP037.py.snap | 420 +++++------ ...ff__rules__pyupgrade__tests__UP038.py.snap | 30 +- ...rade__tests__datetime_utc_alias_py311.snap | 24 +- ...tests__future_annotations_pep_585_p37.snap | 15 +- ...sts__future_annotations_pep_585_py310.snap | 60 +- ...tests__future_annotations_pep_604_p37.snap | 15 +- ...sts__future_annotations_pep_604_py310.snap | 30 +- ..._rules__ruff__tests__RUF005_RUF005.py.snap | 183 ++--- ..._rules__ruff__tests__RUF006_RUF006.py.snap | 6 +- ...ruff__rules__ruff__tests__confusables.snap | 45 +- .../ruff__rules__ruff__tests__ruf100_0.snap | 198 +++--- .../ruff__rules__ruff__tests__ruf100_1.snap | 120 ++-- .../ruff__rules__ruff__tests__ruf100_2.snap | 15 +- .../ruff__rules__ruff__tests__ruf100_3.snap | 285 ++++---- ...uff__tests__ruff_pairwise_over_zipped.snap | 30 +- ...ules__ruff__tests__ruff_targeted_noqa.snap | 15 +- ..._error-instead-of-exception_TRY400.py.snap | 24 +- ...__tests__raise-vanilla-args_TRY003.py.snap | 12 +- ..._tests__raise-vanilla-class_TRY002.py.snap | 6 +- ...ps__tests__raise-within-try_TRY301.py.snap | 18 +- ...ps__tests__reraise-no-cause_TRY200.py.snap | 6 +- ...s__tests__try-consider-else_TRY300.py.snap | 3 +- ...pe-check-without-type-error_TRY004.py.snap | 102 ++- ..._tests__verbose-log-message_TRY401.py.snap | 30 +- ...atops__tests__verbose-raise_TRY201.py.snap | 9 +- crates/ruff_cli/tests/integration_test.rs | 22 +- crates/ruff_diagnostics/src/fix.rs | 5 + crates/ruff_wasm/tests/api.rs | 3 +- 718 files changed, 17099 insertions(+), 13273 deletions(-) diff --git a/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap b/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap index 167d1197b8da0..018a521ceb714 100644 --- a/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap +++ b/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 10 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 22 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 6 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 13 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -94,12 +98,13 @@ expression: diagnostics row: 12 column: 16 fix: - content: "" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap index 8e5fce3732b8b..79eb8f43c72f7 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice3 @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 8 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap index e9f6140fb345d..e5f9c4590e69b 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersion2 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap index 7bf2c1aca37da..67657f7fa3cba 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap index 35226f04de74d..bd5e53558cec5 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 10 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap index 0084bdb20bf68..3d12b2ab35711 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SixPY3 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap index a4e1fc2d36bf6..e6f1891e69486 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo1CmpInt @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap index 9ff038fb68059..e1101f322b7e0 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfoMinorCmpInt @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap index 4c82503d66806..8df8272ffb3ed 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersion0 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap index e313659104d93..0f59eba39c67b 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap index 2918739e12377..d2c5f511f61ca 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice1 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap index 128ef39866882..ad46e5b59ad87 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 29 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap index f6a549b09246d..fd82edc297a66 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 40 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 44 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap index d81296dc2deaf..9331ea187517e 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 14 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 44 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 49 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 54 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 54 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 59 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 64 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeSelf @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 74 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 78 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 82 column: 69 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 86 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 86 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 90 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 94 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeCls @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 104 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeSelf @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 108 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap index aa273cbd22ab1..1569cd388c861 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 24 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 28 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 32 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 43 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap index 88175c55a0bd1..77b350637ed0e 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: " -> None" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 22 + edits: + - content: " -> None" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 16 fix: - content: " -> None" - location: - row: 11 - column: 27 - end_location: - row: 11 - column: 27 + edits: + - content: " -> None" + location: + row: 11 + column: 27 + end_location: + row: 11 + column: 27 parent: ~ - kind: name: MissingReturnTypePrivateFunction @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -67,12 +70,13 @@ expression: diagnostics row: 47 column: 16 fix: - content: " -> None" - location: - row: 47 - column: 28 - end_location: - row: 47 - column: 28 + edits: + - content: " -> None" + location: + row: 47 + column: 28 + end_location: + row: 47 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap index fbf79a1cb740b..45409b011277b 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 15 fix: - content: " -> str" - location: - row: 2 - column: 21 - end_location: - row: 2 - column: 21 + edits: + - content: " -> str" + location: + row: 2 + column: 21 + end_location: + row: 2 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: " -> str" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 22 + edits: + - content: " -> str" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: " -> int" - location: - row: 8 - column: 21 - end_location: - row: 8 - column: 21 + edits: + - content: " -> int" + location: + row: 8 + column: 21 + end_location: + row: 8 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 23 fix: - content: " -> int" - location: - row: 11 - column: 29 - end_location: - row: 11 - column: 29 + edits: + - content: " -> int" + location: + row: 11 + column: 29 + end_location: + row: 11 + column: 29 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: " -> None" - location: - row: 14 - column: 22 - end_location: - row: 14 - column: 22 + edits: + - content: " -> None" + location: + row: 14 + column: 22 + end_location: + row: 14 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 15 fix: - content: " -> None" - location: - row: 17 - column: 21 - end_location: - row: 17 - column: 21 + edits: + - content: " -> None" + location: + row: 17 + column: 21 + end_location: + row: 17 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 16 fix: - content: " -> bool" - location: - row: 20 - column: 22 - end_location: - row: 20 - column: 22 + edits: + - content: " -> bool" + location: + row: 20 + column: 22 + end_location: + row: 20 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 17 fix: - content: " -> bytes" - location: - row: 23 - column: 23 - end_location: - row: 23 - column: 23 + edits: + - content: " -> bytes" + location: + row: 23 + column: 23 + end_location: + row: 23 + column: 23 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 18 fix: - content: " -> str" - location: - row: 26 - column: 37 - end_location: - row: 26 - column: 37 + edits: + - content: " -> str" + location: + row: 26 + column: 37 + end_location: + row: 26 + column: 37 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -194,13 +203,14 @@ expression: diagnostics row: 29 column: 20 fix: - content: " -> bool" - location: - row: 29 - column: 32 - end_location: - row: 29 - column: 32 + edits: + - content: " -> bool" + location: + row: 29 + column: 32 + end_location: + row: 29 + column: 32 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -214,13 +224,14 @@ expression: diagnostics row: 32 column: 19 fix: - content: " -> complex" - location: - row: 32 - column: 25 - end_location: - row: 32 - column: 25 + edits: + - content: " -> complex" + location: + row: 32 + column: 25 + end_location: + row: 32 + column: 25 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -234,13 +245,14 @@ expression: diagnostics row: 35 column: 15 fix: - content: " -> int" - location: - row: 35 - column: 21 - end_location: - row: 35 - column: 21 + edits: + - content: " -> int" + location: + row: 35 + column: 21 + end_location: + row: 35 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -254,13 +266,14 @@ expression: diagnostics row: 38 column: 17 fix: - content: " -> float" - location: - row: 38 - column: 23 - end_location: - row: 38 - column: 23 + edits: + - content: " -> float" + location: + row: 38 + column: 23 + end_location: + row: 38 + column: 23 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -274,12 +287,13 @@ expression: diagnostics row: 41 column: 17 fix: - content: " -> int" - location: - row: 41 - column: 23 - end_location: - row: 41 - column: 23 + edits: + - content: " -> int" + location: + row: 41 + column: 23 + end_location: + row: 41 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap index 575a188f2ab85..2aff249b5a96f 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 45 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 50 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 59 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap index 186be68d9611f..1189632dcb975 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Assert @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Assert @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap index 121192f1dbf45..fbc00c1d343a7 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExecBuiltin @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap index 2c33efc818325..b094dd818b6cd 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 18 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 19 column: 60 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 20 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 22 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap index 16b2d9f11769e..c3a7355a3cbfb 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap index 79e85ae123974..0d6451fcb3852 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 25 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 26 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 27 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 28 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 29 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 30 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 31 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 32 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 33 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 37 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 41 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 42 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 43 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 44 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 45 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 46 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 47 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 49 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 50 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 51 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 52 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 53 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 54 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 55 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 56 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 58 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 61 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -507,6 +545,7 @@ expression: diagnostics end_location: row: 64 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap index 7d4ea849fecf4..091cae41dab91 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 14 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap index 06d9ccb699390..37dca8f2db3c4 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 29 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 29 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap index 8bda552a389c2..8542e42003ae0 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap index 1774737ca2224..3ce49bcde480d 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap index aa0ee08f3b48b..35382b3f97d92 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap index 09147b2a6774c..1cb1f7c8fe830 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap index afff3d8817387..f5d3af0ba4c0d 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 19 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap index 85cbf0de963af..66af35115f5b9 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 15 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 16 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 19 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 21 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 22 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap index f475ec66c7635..34803b6939a8f 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap index 74817da0b95ba..f44f9d83e1414 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap index 0c2b18b3217d0..a4402cc4868cd 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 15 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 21 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 25 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 27 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 29 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 32 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap index 8bd0d423f226c..571bae8a77f91 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 13 column: 60 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 15 column: 62 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 22 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 24 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 28 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 30 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 32 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 34 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 36 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 38 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 40 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap index 487c7be4ed5b2..0a9ee54ef1c4c 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsafeYAMLLoad @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 24 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap index b7ca595297ce0..6277079c13563 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SnmpInsecureVersion @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap index 1bf0ffc498a03..7bc38d3448603 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SnmpWeakCryptography @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap index b2d2ca8a7c28f..a2ff09fdc92c3 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 6 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 11 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 12 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 14 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 15 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 16 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 17 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 19 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 20 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 21 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 22 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 28 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 30 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 31 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 32 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 33 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 34 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 36 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 37 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 38 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 39 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 41 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 42 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 43 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 44 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 52 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 59 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -507,7 +545,8 @@ expression: diagnostics end_location: row: 66 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -520,7 +559,8 @@ expression: diagnostics end_location: row: 73 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -533,7 +573,8 @@ expression: diagnostics end_location: row: 79 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -546,7 +587,8 @@ expression: diagnostics end_location: row: 83 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -559,7 +601,8 @@ expression: diagnostics end_location: row: 84 column: 65 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -572,7 +615,8 @@ expression: diagnostics end_location: row: 85 column: 73 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -585,6 +629,7 @@ expression: diagnostics end_location: row: 86 column: 71 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap index ac143ca11f1f1..09e476d709058 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap index 0e7fa8a033708..0441380c65079 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 76 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 29 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap b/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap index cd9d595361c72..44ce723448f37 100644 --- a/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap +++ b/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 31 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 42 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 45 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 54 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 60 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 62 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 69 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 75 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap index cb37ddd2160f8..e2107799a6c25 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 14 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 15 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 18 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 19 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 81 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap index 44649eb1c55de..8ae57d5b18d4b 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 49 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap index d2b89cf62137d..9187cafae87d2 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 42 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalValueInFunctionCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 57 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalValueInFunctionCall @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 57 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap index dfaa9a7433cf6..5b390942f51b0 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnaryPrefixIncrement @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 20 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap index 2adce9ce78a84..8bcff2a70fe85 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap index eed4c9dd27395..3397ce6c49649 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnreliableCallableCheck @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap index b7718c3bf0ce1..bbf00122b2721 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 24 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap index f7195ef02d292..c01f622ff2de3 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 60 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 64 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 68 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 72 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 76 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 80 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 85 column: 69 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 89 column: 72 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 93 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 97 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 170 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 203 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 204 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 205 column: 66 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap index 073bb80ebb84c..02b42a83f84c2 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -27,13 +28,14 @@ expression: diagnostics row: 18 column: 13 fix: - content: _k - location: - row: 18 - column: 12 - end_location: - row: 18 - column: 13 + edits: + - content: _k + location: + row: 18 + column: 12 + end_location: + row: 18 + column: 13 parent: ~ - kind: name: UnusedLoopControlVariable @@ -46,7 +48,8 @@ expression: diagnostics end_location: row: 30 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -60,13 +63,14 @@ expression: diagnostics row: 30 column: 13 fix: - content: _k - location: - row: 30 - column: 12 - end_location: - row: 30 - column: 13 + edits: + - content: _k + location: + row: 30 + column: 12 + end_location: + row: 30 + column: 13 parent: ~ - kind: name: UnusedLoopControlVariable @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 34 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -92,7 +97,8 @@ expression: diagnostics end_location: row: 38 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -105,7 +111,8 @@ expression: diagnostics end_location: row: 42 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -118,7 +125,8 @@ expression: diagnostics end_location: row: 46 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -132,13 +140,14 @@ expression: diagnostics row: 52 column: 16 fix: - content: _bar - location: - row: 52 - column: 13 - end_location: - row: 52 - column: 16 + edits: + - content: _bar + location: + row: 52 + column: 13 + end_location: + row: 52 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -151,7 +160,8 @@ expression: diagnostics end_location: row: 59 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -165,13 +175,14 @@ expression: diagnostics row: 68 column: 16 fix: - content: _bar - location: - row: 68 - column: 13 - end_location: - row: 68 - column: 16 + edits: + - content: _bar + location: + row: 68 + column: 13 + end_location: + row: 68 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -185,13 +196,14 @@ expression: diagnostics row: 77 column: 16 fix: - content: _bar - location: - row: 77 - column: 13 - end_location: - row: 77 - column: 16 + edits: + - content: _bar + location: + row: 77 + column: 13 + end_location: + row: 77 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -204,6 +216,7 @@ expression: diagnostics end_location: row: 87 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap index 41c0a8993ccdf..e9d193e677241 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 85 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 89 column: 71 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 93 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 109 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 113 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 113 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 117 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 155 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 160 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 164 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 170 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 170 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 176 column: 62 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 181 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -195,6 +209,7 @@ expression: diagnostics end_location: row: 181 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap index 7c5050b5b6f09..d3e7ab42b9721 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 19 column: 19 fix: - content: foo.bar - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 19 + edits: + - content: foo.bar + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 19 parent: ~ - kind: name: GetAttrWithConstant @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 23 fix: - content: foo._123abc - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 23 + edits: + - content: foo._123abc + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 23 parent: ~ - kind: name: GetAttrWithConstant @@ -54,13 +56,14 @@ expression: diagnostics row: 21 column: 26 fix: - content: foo.__123abc__ - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 26 + edits: + - content: foo.__123abc__ + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 26 parent: ~ - kind: name: GetAttrWithConstant @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 22 fix: - content: foo.abc123 - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 22 + edits: + - content: foo.abc123 + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 22 parent: ~ - kind: name: GetAttrWithConstant @@ -94,13 +98,14 @@ expression: diagnostics row: 23 column: 23 fix: - content: foo.abc123 - location: - row: 23 - column: 0 - end_location: - row: 23 - column: 23 + edits: + - content: foo.abc123 + location: + row: 23 + column: 0 + end_location: + row: 23 + column: 23 parent: ~ - kind: name: GetAttrWithConstant @@ -114,13 +119,14 @@ expression: diagnostics row: 24 column: 31 fix: - content: x.bar - location: - row: 24 - column: 14 - end_location: - row: 24 - column: 31 + edits: + - content: x.bar + location: + row: 24 + column: 14 + end_location: + row: 24 + column: 31 parent: ~ - kind: name: GetAttrWithConstant @@ -134,12 +140,13 @@ expression: diagnostics row: 25 column: 20 fix: - content: x.bar - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 20 + edits: + - content: x.bar + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap index ed2f64cb1e8e4..b226ab351739f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 25 fix: - content: foo.bar = None - location: - row: 40 - column: 0 - end_location: - row: 40 - column: 25 + edits: + - content: foo.bar = None + location: + row: 40 + column: 0 + end_location: + row: 40 + column: 25 parent: ~ - kind: name: SetAttrWithConstant @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 29 fix: - content: foo._123abc = None - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 29 + edits: + - content: foo._123abc = None + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 29 parent: ~ - kind: name: SetAttrWithConstant @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 32 fix: - content: foo.__123abc__ = None - location: - row: 42 - column: 0 - end_location: - row: 42 - column: 32 + edits: + - content: foo.__123abc__ = None + location: + row: 42 + column: 0 + end_location: + row: 42 + column: 32 parent: ~ - kind: name: SetAttrWithConstant @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 28 fix: - content: foo.abc123 = None - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 28 + edits: + - content: foo.abc123 = None + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 28 parent: ~ - kind: name: SetAttrWithConstant @@ -94,13 +98,14 @@ expression: diagnostics row: 44 column: 29 fix: - content: foo.abc123 = None - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 29 + edits: + - content: foo.abc123 = None + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 29 parent: ~ - kind: name: SetAttrWithConstant @@ -114,12 +119,13 @@ expression: diagnostics row: 45 column: 30 fix: - content: foo.bar.baz = None - location: - row: 45 - column: 0 - end_location: - row: 45 - column: 30 + edits: + - content: foo.bar.baz = None + location: + row: 45 + column: 0 + end_location: + row: 45 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap index 348e8c87ced73..4a36eb335c9c6 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 8 column: 12 fix: - content: raise AssertionError() - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 12 + edits: + - content: raise AssertionError() + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 12 parent: ~ - kind: name: AssertFalse @@ -34,12 +35,13 @@ expression: diagnostics row: 10 column: 12 fix: - content: "raise AssertionError(\"message\")" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 23 + edits: + - content: "raise AssertionError(\"message\")" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap index aabded9d78297..38e21726550ad 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 31 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 44 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 66 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 78 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 94 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 101 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 107 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 118 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap index d95a9ced7cdb5..cfa257c4a4c05 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 20 fix: - content: ValueError - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 20 + edits: + - content: ValueError + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap index aac00b0bef8b8..e715ab983ad19 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 17 column: 25 fix: - content: OSError - location: - row: 17 - column: 7 - end_location: - row: 17 - column: 25 + edits: + - content: OSError + location: + row: 17 + column: 7 + end_location: + row: 17 + column: 25 parent: ~ - kind: name: DuplicateHandlerException @@ -34,13 +35,14 @@ expression: diagnostics row: 28 column: 25 fix: - content: MyError - location: - row: 28 - column: 7 - end_location: - row: 28 - column: 25 + edits: + - content: MyError + location: + row: 28 + column: 7 + end_location: + row: 28 + column: 25 parent: ~ - kind: name: DuplicateHandlerException @@ -54,12 +56,13 @@ expression: diagnostics row: 49 column: 27 fix: - content: re.error - location: - row: 49 - column: 7 - end_location: - row: 49 - column: 27 + edits: + - content: re.error + location: + row: 49 + column: 7 + end_location: + row: 49 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap index 391615c4ded5a..89d7d5572b5d9 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 24 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap index 9666b4dd3c162..9cf059449c13d 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CannotRaiseLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CannotRaiseLiteral @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap index 617fdb93803b5..6e43abc8114d7 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 23 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap index 540551f01328c..55362e6f9169b 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 14 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 15 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 18 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 19 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 20 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 39 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 40 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 41 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 42 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 43 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 44 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 45 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 46 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 47 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 48 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 52 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 55 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 63 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 64 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -351,6 +377,7 @@ expression: diagnostics end_location: row: 65 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap index 26da311a77513..1e1a51798d3d1 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 78 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 82 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 86 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 90 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 94 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 98 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 102 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 106 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap index 52633aacadd53..244b132127d9e 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoopVariableOverridesIterator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 21 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoopVariableOverridesIterator @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 36 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap index ca66eb17d0f7f..cd1a1659a1225 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 30 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 38 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 46 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 54 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 62 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 70 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 74 column: 48 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap index 6674168f69a1b..9bc67edcad18f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessContextlibSuppress @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 12 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap index 6650cec55f8f2..c41801ac79ac5 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 30 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 31 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 40 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 42 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 50 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 51 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 52 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 53 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 61 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 61 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 68 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 82 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 117 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 118 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 119 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 120 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 121 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 171 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -312,6 +335,7 @@ expression: diagnostics end_location: row: 174 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap index e8dcfa070ca1c..56b33c8259314 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 73 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 84 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 89 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 94 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 142 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap index fe24098b5352c..18129b71b861d 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 19 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 28 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 35 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 37 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap index 52155fbcd043a..f2d16d8a1e894 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 16 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 18 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 20 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 21 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap index 7c3bb97a55649..4e08d2c860c30 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 28 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap index e2c47aa6d1d00..795024af51be9 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoExplicitStacklevel @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap index ba094d325c145..ad4c881e39a84 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithEmptyTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap index 23491995231af..0d4e8746bbc5a 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 27 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap index 7c5ff806a7e95..320d1c7f8acb6 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 27 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 29 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 33 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 46 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 56 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 79 column: 49 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap index e0a74a5b84637..ccd553fd15352 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 18 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 19 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap index ebadbcb251f63..7eaa8787d1c71 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 62 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 64 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 72 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap index 46975425f22c3..56b5b3c5af439 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 4 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 6 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap index 0470194350e7a..647cd9fe7b0e9 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 19 column: 63 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap index cb3108f14f117..9d66a6b00fafe 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 9 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 11 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 24 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 27 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 27 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 27 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -260,6 +279,7 @@ expression: diagnostics end_location: row: 30 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap index a747afe215b11..048efcbd7ba91 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 9 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 24 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 27 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 27 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 30 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap index 4a89c5e360d97..1be32f790c39e 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 1 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 1 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 1 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 8 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 11 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap index 55015f60e20d0..538ab0b40f4a6 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 1 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 1 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 1 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 11 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap index c6a519258bede..7f1a07d5000b6 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap index 9e104005e9a05..902369c18d272 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap b/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap index cdc936e53e224..7a1be463e833c 100644 --- a/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap +++ b/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 17 fix: - content: "'test'," - location: - row: 4 - column: 11 - end_location: - row: 4 - column: 17 + edits: + - content: "'test'," + location: + row: 4 + column: 11 + end_location: + row: 4 + column: 17 parent: ~ - kind: name: MissingTrailingComma @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 5 fix: - content: "3," - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 5 + edits: + - content: "3," + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "3," - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 5 + edits: + - content: "3," + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -74,13 +77,14 @@ expression: diagnostics row: 23 column: 5 fix: - content: "3," - location: - row: 23 - column: 4 - end_location: - row: 23 - column: 5 + edits: + - content: "3," + location: + row: 23 + column: 4 + end_location: + row: 23 + column: 5 parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 36 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -106,7 +111,8 @@ expression: diagnostics end_location: row: 38 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -119,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -132,7 +139,8 @@ expression: diagnostics end_location: row: 49 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -145,7 +153,8 @@ expression: diagnostics end_location: row: 56 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -158,7 +167,8 @@ expression: diagnostics end_location: row: 58 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -171,7 +181,8 @@ expression: diagnostics end_location: row: 61 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTrailingComma @@ -185,13 +196,14 @@ expression: diagnostics row: 70 column: 7 fix: - content: "bar," - location: - row: 70 - column: 4 - end_location: - row: 70 - column: 7 + edits: + - content: "bar," + location: + row: 70 + column: 4 + end_location: + row: 70 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -205,13 +217,14 @@ expression: diagnostics row: 78 column: 7 fix: - content: "bar," - location: - row: 78 - column: 4 - end_location: - row: 78 - column: 7 + edits: + - content: "bar," + location: + row: 78 + column: 4 + end_location: + row: 78 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -225,13 +238,14 @@ expression: diagnostics row: 86 column: 7 fix: - content: "bar," - location: - row: 86 - column: 4 - end_location: - row: 86 - column: 7 + edits: + - content: "bar," + location: + row: 86 + column: 4 + end_location: + row: 86 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -245,13 +259,14 @@ expression: diagnostics row: 152 column: 5 fix: - content: "y," - location: - row: 152 - column: 4 - end_location: - row: 152 - column: 5 + edits: + - content: "y," + location: + row: 152 + column: 4 + end_location: + row: 152 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -265,13 +280,14 @@ expression: diagnostics row: 158 column: 10 fix: - content: "Anyway," - location: - row: 158 - column: 4 - end_location: - row: 158 - column: 10 + edits: + - content: "Anyway," + location: + row: 158 + column: 4 + end_location: + row: 158 + column: 10 parent: ~ - kind: name: MissingTrailingComma @@ -285,13 +301,14 @@ expression: diagnostics row: 293 column: 14 fix: - content: "123," - location: - row: 293 - column: 11 - end_location: - row: 293 - column: 14 + edits: + - content: "123," + location: + row: 293 + column: 11 + end_location: + row: 293 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -305,13 +322,14 @@ expression: diagnostics row: 304 column: 13 fix: - content: "2," - location: - row: 304 - column: 12 - end_location: - row: 304 - column: 13 + edits: + - content: "2," + location: + row: 304 + column: 12 + end_location: + row: 304 + column: 13 parent: ~ - kind: name: MissingTrailingComma @@ -325,13 +343,14 @@ expression: diagnostics row: 310 column: 13 fix: - content: "3," - location: - row: 310 - column: 12 - end_location: - row: 310 - column: 13 + edits: + - content: "3," + location: + row: 310 + column: 12 + end_location: + row: 310 + column: 13 parent: ~ - kind: name: MissingTrailingComma @@ -345,13 +364,14 @@ expression: diagnostics row: 316 column: 9 fix: - content: "3," - location: - row: 316 - column: 8 - end_location: - row: 316 - column: 9 + edits: + - content: "3," + location: + row: 316 + column: 8 + end_location: + row: 316 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -365,13 +385,14 @@ expression: diagnostics row: 322 column: 14 fix: - content: "123," - location: - row: 322 - column: 11 - end_location: - row: 322 - column: 14 + edits: + - content: "123," + location: + row: 322 + column: 11 + end_location: + row: 322 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -385,13 +406,14 @@ expression: diagnostics row: 368 column: 14 fix: - content: "\"not good\"," - location: - row: 368 - column: 4 - end_location: - row: 368 - column: 14 + edits: + - content: "\"not good\"," + location: + row: 368 + column: 4 + end_location: + row: 368 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -405,13 +427,14 @@ expression: diagnostics row: 375 column: 14 fix: - content: "\"not good\"," - location: - row: 375 - column: 4 - end_location: - row: 375 - column: 14 + edits: + - content: "\"not good\"," + location: + row: 375 + column: 4 + end_location: + row: 375 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -425,13 +448,14 @@ expression: diagnostics row: 404 column: 14 fix: - content: "\"not fine\"," - location: - row: 404 - column: 4 - end_location: - row: 404 - column: 14 + edits: + - content: "\"not fine\"," + location: + row: 404 + column: 4 + end_location: + row: 404 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -445,13 +469,14 @@ expression: diagnostics row: 432 column: 14 fix: - content: "\"not fine\"," - location: - row: 432 - column: 4 - end_location: - row: 432 - column: 14 + edits: + - content: "\"not fine\"," + location: + row: 432 + column: 4 + end_location: + row: 432 + column: 14 parent: ~ - kind: name: ProhibitedTrailingComma @@ -465,13 +490,14 @@ expression: diagnostics row: 485 column: 21 fix: - content: "" - location: - row: 485 - column: 20 - end_location: - row: 485 - column: 21 + edits: + - content: "" + location: + row: 485 + column: 20 + end_location: + row: 485 + column: 21 parent: ~ - kind: name: ProhibitedTrailingComma @@ -485,13 +511,14 @@ expression: diagnostics row: 487 column: 13 fix: - content: "" - location: - row: 487 - column: 12 - end_location: - row: 487 - column: 13 + edits: + - content: "" + location: + row: 487 + column: 12 + end_location: + row: 487 + column: 13 parent: ~ - kind: name: ProhibitedTrailingComma @@ -505,13 +532,14 @@ expression: diagnostics row: 489 column: 18 fix: - content: "" - location: - row: 489 - column: 17 - end_location: - row: 489 - column: 18 + edits: + - content: "" + location: + row: 489 + column: 17 + end_location: + row: 489 + column: 18 parent: ~ - kind: name: ProhibitedTrailingComma @@ -525,13 +553,14 @@ expression: diagnostics row: 494 column: 6 fix: - content: "" - location: - row: 494 - column: 5 - end_location: - row: 494 - column: 6 + edits: + - content: "" + location: + row: 494 + column: 5 + end_location: + row: 494 + column: 6 parent: ~ - kind: name: ProhibitedTrailingComma @@ -545,13 +574,14 @@ expression: diagnostics row: 496 column: 21 fix: - content: "" - location: - row: 496 - column: 20 - end_location: - row: 496 - column: 21 + edits: + - content: "" + location: + row: 496 + column: 20 + end_location: + row: 496 + column: 21 parent: ~ - kind: name: ProhibitedTrailingComma @@ -565,13 +595,14 @@ expression: diagnostics row: 498 column: 13 fix: - content: "" - location: - row: 498 - column: 12 - end_location: - row: 498 - column: 13 + edits: + - content: "" + location: + row: 498 + column: 12 + end_location: + row: 498 + column: 13 parent: ~ - kind: name: ProhibitedTrailingComma @@ -585,13 +616,14 @@ expression: diagnostics row: 500 column: 18 fix: - content: "" - location: - row: 500 - column: 17 - end_location: - row: 500 - column: 18 + edits: + - content: "" + location: + row: 500 + column: 17 + end_location: + row: 500 + column: 18 parent: ~ - kind: name: ProhibitedTrailingComma @@ -605,13 +637,14 @@ expression: diagnostics row: 505 column: 6 fix: - content: "" - location: - row: 505 - column: 5 - end_location: - row: 505 - column: 6 + edits: + - content: "" + location: + row: 505 + column: 5 + end_location: + row: 505 + column: 6 parent: ~ - kind: name: ProhibitedTrailingComma @@ -625,13 +658,14 @@ expression: diagnostics row: 511 column: 10 fix: - content: "" - location: - row: 511 - column: 9 - end_location: - row: 511 - column: 10 + edits: + - content: "" + location: + row: 511 + column: 9 + end_location: + row: 511 + column: 10 parent: ~ - kind: name: ProhibitedTrailingComma @@ -645,13 +679,14 @@ expression: diagnostics row: 513 column: 9 fix: - content: "" - location: - row: 513 - column: 8 - end_location: - row: 513 - column: 9 + edits: + - content: "" + location: + row: 513 + column: 8 + end_location: + row: 513 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -665,13 +700,14 @@ expression: diagnostics row: 519 column: 12 fix: - content: "kwargs," - location: - row: 519 - column: 6 - end_location: - row: 519 - column: 12 + edits: + - content: "kwargs," + location: + row: 519 + column: 6 + end_location: + row: 519 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -685,13 +721,14 @@ expression: diagnostics row: 526 column: 9 fix: - content: "args," - location: - row: 526 - column: 5 - end_location: - row: 526 - column: 9 + edits: + - content: "args," + location: + row: 526 + column: 5 + end_location: + row: 526 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -705,13 +742,14 @@ expression: diagnostics row: 534 column: 15 fix: - content: "extra_kwarg," - location: - row: 534 - column: 4 - end_location: - row: 534 - column: 15 + edits: + - content: "extra_kwarg," + location: + row: 534 + column: 4 + end_location: + row: 534 + column: 15 parent: ~ - kind: name: MissingTrailingComma @@ -725,13 +763,14 @@ expression: diagnostics row: 541 column: 12 fix: - content: "kwargs," - location: - row: 541 - column: 6 - end_location: - row: 541 - column: 12 + edits: + - content: "kwargs," + location: + row: 541 + column: 6 + end_location: + row: 541 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -745,13 +784,14 @@ expression: diagnostics row: 547 column: 23 fix: - content: "not_called_kwargs," - location: - row: 547 - column: 6 - end_location: - row: 547 - column: 23 + edits: + - content: "not_called_kwargs," + location: + row: 547 + column: 6 + end_location: + row: 547 + column: 23 parent: ~ - kind: name: MissingTrailingComma @@ -765,13 +805,14 @@ expression: diagnostics row: 554 column: 14 fix: - content: "kwarg_only," - location: - row: 554 - column: 4 - end_location: - row: 554 - column: 14 + edits: + - content: "kwarg_only," + location: + row: 554 + column: 4 + end_location: + row: 554 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -785,13 +826,14 @@ expression: diagnostics row: 561 column: 12 fix: - content: "kwargs," - location: - row: 561 - column: 6 - end_location: - row: 561 - column: 12 + edits: + - content: "kwargs," + location: + row: 561 + column: 6 + end_location: + row: 561 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -805,13 +847,14 @@ expression: diagnostics row: 565 column: 12 fix: - content: "kwargs," - location: - row: 565 - column: 6 - end_location: - row: 565 - column: 12 + edits: + - content: "kwargs," + location: + row: 565 + column: 6 + end_location: + row: 565 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -825,13 +868,14 @@ expression: diagnostics row: 573 column: 9 fix: - content: "args," - location: - row: 573 - column: 5 - end_location: - row: 573 - column: 9 + edits: + - content: "args," + location: + row: 573 + column: 5 + end_location: + row: 573 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -845,13 +889,14 @@ expression: diagnostics row: 577 column: 9 fix: - content: "args," - location: - row: 577 - column: 5 - end_location: - row: 577 - column: 9 + edits: + - content: "args," + location: + row: 577 + column: 5 + end_location: + row: 577 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -865,13 +910,14 @@ expression: diagnostics row: 583 column: 9 fix: - content: "args," - location: - row: 583 - column: 5 - end_location: - row: 583 - column: 9 + edits: + - content: "args," + location: + row: 583 + column: 5 + end_location: + row: 583 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -885,13 +931,14 @@ expression: diagnostics row: 590 column: 12 fix: - content: "kwargs," - location: - row: 590 - column: 6 - end_location: - row: 590 - column: 12 + edits: + - content: "kwargs," + location: + row: 590 + column: 6 + end_location: + row: 590 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -905,13 +952,14 @@ expression: diagnostics row: 598 column: 14 fix: - content: "kwarg_only," - location: - row: 598 - column: 4 - end_location: - row: 598 - column: 14 + edits: + - content: "kwarg_only," + location: + row: 598 + column: 4 + end_location: + row: 598 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -925,13 +973,14 @@ expression: diagnostics row: 627 column: 19 fix: - content: "}," - location: - row: 627 - column: 18 - end_location: - row: 627 - column: 19 + edits: + - content: "}," + location: + row: 627 + column: 18 + end_location: + row: 627 + column: 19 parent: ~ - kind: name: MissingTrailingComma @@ -945,12 +994,13 @@ expression: diagnostics row: 632 column: 41 fix: - content: ")," - location: - row: 632 - column: 40 - end_location: - row: 632 - column: 41 + edits: + - content: ")," + location: + row: 632 + column: 40 + end_location: + row: 632 + column: 41 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap index cf32bd5e13e67..d849bb8d10e54 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 29 fix: - content: "[x for x in range(3)]" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 29 + edits: + - content: "[x for x in range(3)]" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 29 parent: ~ - kind: name: UnnecessaryGeneratorList @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 1 fix: - content: "[\n x for x in range(3)\n]" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "[\n x for x in range(3)\n]" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap index b7db1be95efaa..d515ed3e7f5e4 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 28 fix: - content: "{x for x in range(3)}" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 28 + edits: + - content: "{x for x in range(3)}" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 28 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x for x in range(3)\n}" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x for x in range(3)\n}" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 48 fix: - content: " {a if a < 6 else 0 for a in range(3)} " - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 48 + edits: + - content: " {a if a < 6 else 0 for a in range(3)} " + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 48 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "{a if a < 6 else 0 for a in range(3)}" - location: - row: 6 - column: 16 - end_location: - row: 6 - column: 57 + edits: + - content: "{a if a < 6 else 0 for a in range(3)}" + location: + row: 6 + column: 16 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -94,12 +98,13 @@ expression: diagnostics row: 7 column: 39 fix: - content: " {a for a in range(3)} " - location: - row: 7 - column: 15 - end_location: - row: 7 - column: 39 + edits: + - content: " {a for a in range(3)} " + location: + row: 7 + column: 15 + end_location: + row: 7 + column: 39 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap index 84c336712bc76..930efa31b876b 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 30 fix: - content: "{x: x for x in range(3)}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 30 + edits: + - content: "{x: x for x in range(3)}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 30 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x: x for x in range(3)\n}" - location: - row: 2 - column: 0 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x: x for x in range(3)\n}" + location: + row: 2 + column: 0 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 37 fix: - content: " {x: x for x in range(3)} " - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 37 + edits: + - content: " {x: x for x in range(3)} " + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 37 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -74,12 +77,13 @@ expression: diagnostics row: 7 column: 45 fix: - content: " {x: x for x in range(3)} " - location: - row: 7 - column: 15 - end_location: - row: 7 - column: 45 + edits: + - content: " {x: x for x in range(3)} " + location: + row: 7 + column: 15 + end_location: + row: 7 + column: 45 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap index a39ed25045ef0..91fb7bd211669 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 30 fix: - content: "{x for x in range(3)}" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 30 + edits: + - content: "{x for x in range(3)}" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 30 parent: ~ - kind: name: UnnecessaryListComprehensionSet @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x for x in range(3)\n}" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x for x in range(3)\n}" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap index 536493cb5dc7d..b8fd33ecbd755 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 32 fix: - content: "{i: i for i in range(3)}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 32 + edits: + - content: "{i: i for i in range(3)}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap index f4ce11b013846..311b45fdbc10a 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: "{1, 2}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 11 + edits: + - content: "{1, 2}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "{1, 2}" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 11 + edits: + - content: "{1, 2}" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 11 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 7 fix: - content: set() - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 7 + edits: + - content: set() + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 7 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 7 fix: - content: set() - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 7 + edits: + - content: set() + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 7 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 9 fix: - content: "{1}" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 9 + edits: + - content: "{1}" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 9 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -114,13 +119,14 @@ expression: diagnostics row: 9 column: 2 fix: - content: "{\n 1,\n}" - location: - row: 7 - column: 0 - end_location: - row: 9 - column: 2 + edits: + - content: "{\n 1,\n}" + location: + row: 7 + column: 0 + end_location: + row: 9 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -134,13 +140,14 @@ expression: diagnostics row: 12 column: 2 fix: - content: "{\n 1,\n}" - location: - row: 10 - column: 0 - end_location: - row: 12 - column: 2 + edits: + - content: "{\n 1,\n}" + location: + row: 10 + column: 0 + end_location: + row: 12 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -154,13 +161,14 @@ expression: diagnostics row: 15 column: 1 fix: - content: "{1}" - location: - row: 13 - column: 0 - end_location: - row: 15 - column: 1 + edits: + - content: "{1}" + location: + row: 13 + column: 0 + end_location: + row: 15 + column: 1 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -174,12 +182,13 @@ expression: diagnostics row: 18 column: 1 fix: - content: "{1,}" - location: - row: 16 - column: 0 - end_location: - row: 18 - column: 1 + edits: + - content: "{1,}" + location: + row: 16 + column: 0 + end_location: + row: 18 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap index 01d7fb247708f..ddf665ffabc8e 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 19 fix: - content: "{1: 2}" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 19 + edits: + - content: "{1: 2}" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 20 fix: - content: "{1: 2,}" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 20 + edits: + - content: "{1: 2,}" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 20 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 13 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 13 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 13 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 13 fix: - content: "{}" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 13 + edits: + - content: "{}" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap index 19e087d78b8a1..80ccc84fe1f08 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: () - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 11 + edits: + - content: () + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "[]" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "[]" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 11 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 11 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 14 fix: - content: "{\"a\": 1}" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 14 + edits: + - content: "{\"a\": 1}" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap index 9970b164e33f6..031d4d0077b23 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: () - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 11 + edits: + - content: () + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "[]" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "[]" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 11 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 11 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap index 7b6219eac6c58..3df44dfe04bf0 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: () - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 14 + edits: + - content: () + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 18 fix: - content: "(1, 2)" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 18 + edits: + - content: "(1, 2)" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 18 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "(1, 2)" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 18 + edits: + - content: "(1, 2)" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 18 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 2 fix: - content: "(\n 1,\n 2\n)" - location: - row: 4 - column: 5 - end_location: - row: 7 - column: 2 + edits: + - content: "(\n 1,\n 2\n)" + location: + row: 4 + column: 5 + end_location: + row: 7 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -94,12 +98,13 @@ expression: diagnostics row: 10 column: 1 fix: - content: "(1, 2)" - location: - row: 8 - column: 5 - end_location: - row: 10 - column: 1 + edits: + - content: "(1, 2)" + location: + row: 8 + column: 5 + end_location: + row: 10 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap index d880407494325..27a7e5b7412a7 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 17 fix: - content: "[1, 2]" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 17 + edits: + - content: "[1, 2]" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 17 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "[1, 2]" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 17 + edits: + - content: "[1, 2]" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 17 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 13 fix: - content: "[]" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 13 + edits: + - content: "[]" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 13 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 13 fix: - content: "[]" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 13 + edits: + - content: "[]" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap index 699c9e5bdd755..8daaa48bad3cd 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 20 fix: - content: "[i for i in x]" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 20 + edits: + - content: "[i for i in x]" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap index 10654bda4eb31..5ed1afc07c309 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: sorted(x) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 15 + edits: + - content: sorted(x) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "sorted(x, reverse=True)" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 19 + edits: + - content: "sorted(x, reverse=True)" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 36 fix: - content: "sorted(x, key=lambda e: e, reverse=True)" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 36 + edits: + - content: "sorted(x, key=lambda e: e, reverse=True)" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 36 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 33 fix: - content: "sorted(x, reverse=False)" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 33 + edits: + - content: "sorted(x, reverse=False)" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 33 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 50 fix: - content: "sorted(x, key=lambda e: e, reverse=False)" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 50 + edits: + - content: "sorted(x, key=lambda e: e, reverse=False)" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 50 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -114,13 +119,14 @@ expression: diagnostics row: 8 column: 50 fix: - content: "sorted(x, reverse=False, key=lambda e: e)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 50 + edits: + - content: "sorted(x, reverse=False, key=lambda e: e)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 50 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -134,12 +140,13 @@ expression: diagnostics row: 9 column: 34 fix: - content: "sorted(x, reverse=True)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 34 + edits: + - content: "sorted(x, reverse=True)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap index df977690d032c..92368ca698b01 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: list(x) - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 13 + edits: + - content: list(x) + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 14 fix: - content: list(x) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 14 + edits: + - content: list(x) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: tuple(x) - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 14 + edits: + - content: tuple(x) + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: tuple(x) - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 15 + edits: + - content: tuple(x) + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 11 fix: - content: set(x) - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 11 + edits: + - content: set(x) + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 11 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 12 fix: - content: set(x) - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 12 + edits: + - content: set(x) + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 12 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -134,13 +140,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: set(x) - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 13 + edits: + - content: set(x) + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 13 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -154,13 +161,14 @@ expression: diagnostics row: 9 column: 14 fix: - content: set(x) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 14 + edits: + - content: set(x) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 16 fix: - content: set(x) - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 16 + edits: + - content: set(x) + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 16 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -194,13 +203,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: sorted(x) - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 15 + edits: + - content: sorted(x) + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 15 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -214,13 +224,14 @@ expression: diagnostics row: 12 column: 16 fix: - content: sorted(x) - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 16 + edits: + - content: sorted(x) + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 16 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -234,13 +245,14 @@ expression: diagnostics row: 13 column: 17 fix: - content: sorted(x) - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 17 + edits: + - content: sorted(x) + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 17 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -254,13 +266,14 @@ expression: diagnostics row: 14 column: 19 fix: - content: sorted(x) - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 19 + edits: + - content: sorted(x) + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 19 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -274,12 +287,13 @@ expression: diagnostics row: 20 column: 1 fix: - content: "tuple(\n [x, 3, \"hell\"\\\n \"o\"]\n )" - location: - row: 15 - column: 0 - end_location: - row: 20 - column: 1 + edits: + - content: "tuple(\n [x, 3, \"hell\"\\\n \"o\"]\n )" + location: + row: 15 + column: 0 + end_location: + row: 20 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap index d919696982166..0b5adff9a7e92 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 5 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap index 024e557a99fd1..b63005d7520f9 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 14 fix: - content: list(x) - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 14 + edits: + - content: list(x) + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 14 parent: ~ - kind: name: UnnecessaryComprehension @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 14 fix: - content: set(x) - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 14 + edits: + - content: set(x) + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 14 parent: ~ - kind: name: UnnecessaryComprehension @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: dict(y) - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 20 + edits: + - content: dict(y) + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: UnnecessaryComprehension @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 28 fix: - content: dict(d.items()) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 28 + edits: + - content: dict(d.items()) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap index efa0e02d8ee2a..26ec8bfbe43f7 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: (x + 1 for x in nums) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 26 + edits: + - content: (x + 1 for x in nums) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: UnnecessaryMap @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 27 fix: - content: (str(x) for x in nums) - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 27 + edits: + - content: (str(x) for x in nums) + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 27 parent: ~ - kind: name: UnnecessaryMap @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 32 fix: - content: "[x * 2 for x in nums]" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 32 + edits: + - content: "[x * 2 for x in nums]" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 32 parent: ~ - kind: name: UnnecessaryMap @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 36 fix: - content: "{x % 2 == 0 for x in nums}" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 36 + edits: + - content: "{x % 2 == 0 for x in nums}" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 36 parent: ~ - kind: name: UnnecessaryMap @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 36 fix: - content: "{v: v**2 for v in nums}" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 36 + edits: + - content: "{v: v**2 for v in nums}" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 36 parent: ~ - kind: name: UnnecessaryMap @@ -114,13 +119,14 @@ expression: diagnostics row: 8 column: 26 fix: - content: "(\"const\" for _ in nums)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 26 + edits: + - content: "(\"const\" for _ in nums)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 26 parent: ~ - kind: name: UnnecessaryMap @@ -134,13 +140,14 @@ expression: diagnostics row: 9 column: 24 fix: - content: (3.0 for _ in nums) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 24 + edits: + - content: (3.0 for _ in nums) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 24 parent: ~ - kind: name: UnnecessaryMap @@ -154,13 +161,14 @@ expression: diagnostics row: 10 column: 63 fix: - content: "(x in nums and \"1\" or \"0\" for x in range(123))" - location: - row: 10 - column: 12 - end_location: - row: 10 - column: 63 + edits: + - content: "(x in nums and \"1\" or \"0\" for x in range(123))" + location: + row: 10 + column: 12 + end_location: + row: 10 + column: 63 parent: ~ - kind: name: UnnecessaryMap @@ -174,13 +182,14 @@ expression: diagnostics row: 11 column: 44 fix: - content: "(isinstance(v, dict) for v in nums)" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 44 + edits: + - content: "(isinstance(v, dict) for v in nums)" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 44 parent: ~ - kind: name: UnnecessaryMap @@ -194,13 +203,14 @@ expression: diagnostics row: 12 column: 35 fix: - content: (v for v in nums) - location: - row: 12 - column: 13 - end_location: - row: 12 - column: 35 + edits: + - content: (v for v in nums) + location: + row: 12 + column: 13 + end_location: + row: 12 + column: 35 parent: ~ - kind: name: UnnecessaryMap @@ -214,13 +224,14 @@ expression: diagnostics row: 15 column: 43 fix: - content: " {x % 2 == 0 for x in nums} " - location: - row: 15 - column: 7 - end_location: - row: 15 - column: 43 + edits: + - content: " {x % 2 == 0 for x in nums} " + location: + row: 15 + column: 7 + end_location: + row: 15 + column: 43 parent: ~ - kind: name: UnnecessaryMap @@ -234,13 +245,14 @@ expression: diagnostics row: 16 column: 43 fix: - content: " {v: v**2 for v in nums} " - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 43 + edits: + - content: " {v: v**2 for v in nums} " + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 43 parent: ~ - kind: name: UnnecessaryMap @@ -253,6 +265,7 @@ expression: diagnostics end_location: row: 21 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap index 5aa766e1583a2..0f6a86011e16b 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 21 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap index a6c95716ba6d3..95000634c1bf4 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeToday @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap index 3876b15c6f5fd..2e395fd66e8fb 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeUtcnow @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap index 86d06b2492891..62b7091512993 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeUtcfromtimestamp @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap index e074b603f106c..fac262f86f2b7 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 18 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap index a7ba9c66fb5c0..2dbae5d21e342 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 18 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap index 3325a865e23a6..8694ec19afab3 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 35 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap index bb6ef5d79cc51..ae8fe640220e7 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDateToday @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap index 8de285a1bec83..6d0e2ff5a01c8 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDateFromtimestamp @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap b/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap index 7b9b19bebfb9d..38a1a09748ec7 100644 --- a/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap +++ b/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 12 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 13 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap index 99ba364723cf5..c041c953d5a69 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 16 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 17 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 18 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 19 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 20 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 21 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 30 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap index 5a86561a04625..da9bcdbd53884 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoLocalsInRenderFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap index 1cdaff23ee804..b224c415ab164 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap index c9113abcf042f..5c878ad61bbfa 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoAllWithModelForm @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap index e0b6192287c8c..b62eec87d1d53 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoModelWithoutDunderStr @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 33 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoModelWithoutDunderStr @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 47 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap index 392f1d4bc7422..503e18886c163 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 28 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 43 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 57 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 70 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap index ec9e715f78bcb..74f238f5ca081 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNonLeadingReceiverDecorator @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 35 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap index 11953d88fab00..61cd7a9c3df1f 100644 --- a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap +++ b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringInException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DotFormatInException @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 18 column: 81 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap index 65c53e83ed2e7..4f15af64677ec 100644 --- a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RawStringInException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringInException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DotFormatInException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 18 column: 81 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap index b3f3f24af7419..10ceb272f97bf 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap index 0385da5a1cf11..c8d820b70df94 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap index 568ca113e0976..e3d62484ef459 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap index fb781d1198dac..963c1418b7e68 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 4 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 4 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap index 0385da5a1cf11..c8d820b70df94 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap index 292472d5c5f18..b4c94ecb90f99 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap index f6258b4dfb982..18f92b7231ff2 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap index 46b0655e08c07..6887eb924ce98 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap index 45749af82942b..1ff6af28b3b88 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SingleLineImplicitStringConcatenation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap index 39275dd7c04b9..3050cc0b0b643 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap index c456628a15b37..30c76f5cd8cf5 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap index 45749af82942b..1ff6af28b3b88 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SingleLineImplicitStringConcatenation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap index 1564ce7da40d9..18d7c3a92b529 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 25 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 35 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap index c456628a15b37..30c76f5cd8cf5 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap index dc82abb0e7798..ef1513d700991 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 11 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 13 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 14 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 15 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 18 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 19 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 20 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 21 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 22 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 23 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 24 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 25 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 26 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 27 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 28 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 29 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 30 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -364,6 +391,7 @@ expression: diagnostics end_location: row: 31 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap index 4099963bfbb85..991df77a62ff8 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap index 4ebb3c5e69974..869ab96bdbcf1 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 10 column: 61 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap index ee169a6bc9bf6..c305440d12fd6 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap index 3fa3cc89eca06..6545f8eaee7b8 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap index 39fe94410443c..338e11c635cd8 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 63 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 9 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap index ea4bc943842f9..9d80444bc7edc 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingPercentFormat @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap index 4ce0e9cf6f64a..0cf36fb8efe02 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringConcat @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 50 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap index 6d3a7ff1d6304..cf08da91cf975 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingFString @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 41 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap index 8acad06bf0a30..d32b8cd648449 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: warning - location: - row: 3 - column: 8 - end_location: - row: 3 - column: 12 + edits: + - content: warning + location: + row: 3 + column: 8 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap index 772347a51fe36..e0604197d0503 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap index 52f92e5f0e0b6..da6a5b6b16e07 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap index 8a84f8095e4c3..ed2474285b167 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingExcInfo @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap index 618250295301b..f861f21132a21 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingRedundantExcInfo @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 60 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap index b38e65e42ff17..f835ead1724de 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap index 0adfeb0881d98..a4f90685e4a71 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap index 8a931e5242bd9..c509ccf551492 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap index a82fccfa28e89..fb6a863790bb2 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -54,13 +56,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: "" - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 10 + edits: + - content: "" + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 10 parent: ~ - kind: name: UnnecessaryPass @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 8 fix: - content: "" - location: - row: 21 - column: 0 - end_location: - row: 22 - column: 0 + edits: + - content: "" + location: + row: 21 + column: 0 + end_location: + row: 22 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -94,13 +98,14 @@ expression: diagnostics row: 28 column: 8 fix: - content: "" - location: - row: 28 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: "" + location: + row: 28 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 8 fix: - content: "" - location: - row: 35 - column: 0 - end_location: - row: 36 - column: 0 + edits: + - content: "" + location: + row: 35 + column: 0 + end_location: + row: 36 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -134,13 +140,14 @@ expression: diagnostics row: 42 column: 8 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 43 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 43 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -154,13 +161,14 @@ expression: diagnostics row: 50 column: 8 fix: - content: "" - location: - row: 50 - column: 0 - end_location: - row: 51 - column: 0 + edits: + - content: "" + location: + row: 50 + column: 0 + end_location: + row: 51 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -174,13 +182,14 @@ expression: diagnostics row: 58 column: 8 fix: - content: "" - location: - row: 58 - column: 0 - end_location: - row: 59 - column: 0 + edits: + - content: "" + location: + row: 58 + column: 0 + end_location: + row: 59 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -194,13 +203,14 @@ expression: diagnostics row: 65 column: 8 fix: - content: "" - location: - row: 65 - column: 0 - end_location: - row: 66 - column: 0 + edits: + - content: "" + location: + row: 65 + column: 0 + end_location: + row: 66 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -214,13 +224,14 @@ expression: diagnostics row: 74 column: 8 fix: - content: "" - location: - row: 74 - column: 0 - end_location: - row: 75 - column: 0 + edits: + - content: "" + location: + row: 74 + column: 0 + end_location: + row: 75 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -234,13 +245,14 @@ expression: diagnostics row: 79 column: 8 fix: - content: "" - location: - row: 79 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "" + location: + row: 79 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -254,13 +266,14 @@ expression: diagnostics row: 83 column: 8 fix: - content: "" - location: - row: 83 - column: 0 - end_location: - row: 84 - column: 0 + edits: + - content: "" + location: + row: 83 + column: 0 + end_location: + row: 84 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -274,13 +287,14 @@ expression: diagnostics row: 87 column: 8 fix: - content: "" - location: - row: 87 - column: 0 - end_location: - row: 88 - column: 0 + edits: + - content: "" + location: + row: 87 + column: 0 + end_location: + row: 88 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -294,13 +308,14 @@ expression: diagnostics row: 92 column: 8 fix: - content: "" - location: - row: 92 - column: 0 - end_location: - row: 93 - column: 0 + edits: + - content: "" + location: + row: 92 + column: 0 + end_location: + row: 93 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -314,13 +329,14 @@ expression: diagnostics row: 96 column: 8 fix: - content: "" - location: - row: 96 - column: 0 - end_location: - row: 97 - column: 0 + edits: + - content: "" + location: + row: 96 + column: 0 + end_location: + row: 97 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -334,12 +350,13 @@ expression: diagnostics row: 101 column: 8 fix: - content: "" - location: - row: 101 - column: 4 - end_location: - row: 101 - column: 10 + edits: + - content: "" + location: + row: 101 + column: 4 + end_location: + row: 101 + column: 10 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap index f33101674f193..4d6fac4819551 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 24 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 24 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -54,13 +56,14 @@ expression: diagnostics row: 23 column: 23 fix: - content: "" - location: - row: 23 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "" + location: + row: 23 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -74,12 +77,13 @@ expression: diagnostics row: 40 column: 23 fix: - content: "" - location: - row: 40 - column: 0 - end_location: - row: 41 - column: 0 + edits: + - content: "" + location: + row: 40 + column: 0 + end_location: + row: 41 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap index 0c1213690c6bf..73657559d292f 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 26 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 33 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 54 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap index 0340c05a869d3..97c2126662d6c 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap index a1d76581909e9..d23e0c30e2aac 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 23 fix: - content: any(x.id for x in bar) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 24 + edits: + - content: any(x.id for x in bar) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 24 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: all(x.id for x in bar) - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 24 + edits: + - content: all(x.id for x in bar) + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 24 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -54,13 +56,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "any( # first comment\n x.id for x in bar # second comment\n)" - location: - row: 11 - column: 0 - end_location: - row: 13 - column: 1 + edits: + - content: "any( # first comment\n x.id for x in bar # second comment\n)" + location: + row: 11 + column: 0 + end_location: + row: 13 + column: 1 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -74,12 +77,13 @@ expression: diagnostics row: 15 column: 23 fix: - content: "all( # first comment\n x.id for x in bar # second comment\n)" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 1 + edits: + - content: "all( # first comment\n x.id for x in bar # second comment\n)" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap index eb74b1c063f83..39163f4b7517c 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 9 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap index 70d696c91bf7d..697a7538e7083 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 53 fix: - content: list - location: - row: 3 - column: 43 - end_location: - row: 3 - column: 53 + edits: + - content: list + location: + row: 3 + column: 43 + end_location: + row: 3 + column: 53 parent: ~ - kind: name: ReimplementedListBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 45 fix: - content: list - location: - row: 7 - column: 35 - end_location: - row: 7 - column: 45 + edits: + - content: list + location: + row: 7 + column: 35 + end_location: + row: 7 + column: 45 parent: ~ - kind: name: ReimplementedListBuiltin @@ -54,12 +56,13 @@ expression: diagnostics row: 11 column: 37 fix: - content: list - location: - row: 11 - column: 27 - end_location: - row: 11 - column: 37 + edits: + - content: list + location: + row: 11 + column: 27 + end_location: + row: 11 + column: 37 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap index 663b10d21fd44..02a01d4b4865f 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "obj.startswith((\"foo\", \"bar\"))" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 46 + edits: + - content: "obj.startswith((\"foo\", \"bar\"))" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: MultipleStartsEndsWith @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 42 fix: - content: "obj.endswith((\"foo\", \"bar\"))" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 42 + edits: + - content: "obj.endswith((\"foo\", \"bar\"))" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 42 parent: ~ - kind: name: MultipleStartsEndsWith @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 42 fix: - content: "obj.startswith((foo, bar))" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 42 + edits: + - content: "obj.startswith((foo, bar))" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 42 parent: ~ - kind: name: MultipleStartsEndsWith @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 44 fix: - content: "obj.startswith((foo, \"foo\"))" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 44 + edits: + - content: "obj.startswith((foo, \"foo\"))" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 44 parent: ~ - kind: name: MultipleStartsEndsWith @@ -94,12 +98,13 @@ expression: diagnostics row: 10 column: 65 fix: - content: "obj.endswith(foo) or obj.startswith((foo, \"foo\"))" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 65 + edits: + - content: "obj.endswith(foo) or obj.startswith((foo, \"foo\"))" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 65 parent: ~ diff --git a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap index 17c1879ad231f..ea0f7bd5fc07e 100644 --- a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap +++ b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap index 5458fbb96cd66..ed14e35b3d00a 100644 --- a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap +++ b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PPrint @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap index cf8b4fcb0b6ce..12af46a6881db 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnprefixedTypeParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnprefixedTypeParam @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap index 8c4709125632e..78d0b572ae883 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 14 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 18 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap index 8090f8af5e8a4..afbf661b8af2c 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnrecognizedPlatformCheck @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnrecognizedPlatformCheck @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap index a9aa4f172d80b..8babcae52c9c8 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap index 04449211461a1..9480fd3458aa4 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PassStatementStubBody @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap index 67cd575147183..91225970d9b39 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonEmptyStubBody @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonEmptyStubBody @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 12 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap index 303e28060b3b8..dd6e914a08539 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: "..." - location: - row: 10 - column: 13 - end_location: - row: 10 - column: 23 + edits: + - content: "..." + location: + row: 10 + column: 13 + end_location: + row: 10 + column: 23 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 5 fix: - content: "..." - location: - row: 38 - column: 8 - end_location: - row: 41 - column: 5 + edits: + - content: "..." + location: + row: 38 + column: 8 + end_location: + row: 41 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 58 column: 5 fix: - content: "..." - location: - row: 46 - column: 8 - end_location: - row: 58 - column: 5 + edits: + - content: "..." + location: + row: 46 + column: 8 + end_location: + row: 58 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 66 column: 5 fix: - content: "..." - location: - row: 63 - column: 8 - end_location: - row: 66 - column: 5 + edits: + - content: "..." + location: + row: 63 + column: 8 + end_location: + row: 66 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 73 column: 5 fix: - content: "..." - location: - row: 71 - column: 8 - end_location: - row: 73 - column: 5 + edits: + - content: "..." + location: + row: 71 + column: 8 + end_location: + row: 73 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 80 column: 5 fix: - content: "..." - location: - row: 78 - column: 8 - end_location: - row: 80 - column: 5 + edits: + - content: "..." + location: + row: 78 + column: 8 + end_location: + row: 80 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 5 fix: - content: "..." - location: - row: 85 - column: 8 - end_location: - row: 87 - column: 5 + edits: + - content: "..." + location: + row: 85 + column: 8 + end_location: + row: 87 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 91 column: 11 fix: - content: "..." - location: - row: 90 - column: 13 - end_location: - row: 91 - column: 11 + edits: + - content: "..." + location: + row: 90 + column: 13 + end_location: + row: 91 + column: 11 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 95 column: 12 fix: - content: "..." - location: - row: 94 - column: 13 - end_location: - row: 95 - column: 12 + edits: + - content: "..." + location: + row: 94 + column: 13 + end_location: + row: 95 + column: 12 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 99 column: 7 fix: - content: "..." - location: - row: 98 - column: 16 - end_location: - row: 99 - column: 7 + edits: + - content: "..." + location: + row: 98 + column: 16 + end_location: + row: 99 + column: 7 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -214,13 +224,14 @@ expression: diagnostics row: 103 column: 7 fix: - content: "..." - location: - row: 102 - column: 13 - end_location: - row: 103 - column: 7 + edits: + - content: "..." + location: + row: 102 + column: 13 + end_location: + row: 103 + column: 7 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -234,13 +245,14 @@ expression: diagnostics row: 107 column: 8 fix: - content: "..." - location: - row: 106 - column: 17 - end_location: - row: 107 - column: 8 + edits: + - content: "..." + location: + row: 106 + column: 17 + end_location: + row: 107 + column: 8 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -254,13 +266,14 @@ expression: diagnostics row: 111 column: 10 fix: - content: "..." - location: - row: 110 - column: 17 - end_location: - row: 111 - column: 10 + edits: + - content: "..." + location: + row: 110 + column: 17 + end_location: + row: 111 + column: 10 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -274,13 +287,14 @@ expression: diagnostics row: 138 column: 18 fix: - content: "..." - location: - row: 138 - column: 15 - end_location: - row: 138 - column: 18 + edits: + - content: "..." + location: + row: 138 + column: 15 + end_location: + row: 138 + column: 18 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -294,13 +308,14 @@ expression: diagnostics row: 141 column: 21 fix: - content: "..." - location: - row: 141 - column: 15 - end_location: - row: 141 - column: 21 + edits: + - content: "..." + location: + row: 141 + column: 15 + end_location: + row: 141 + column: 21 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -314,13 +329,14 @@ expression: diagnostics row: 147 column: 24 fix: - content: "..." - location: - row: 147 - column: 15 - end_location: - row: 147 - column: 24 + edits: + - content: "..." + location: + row: 147 + column: 15 + end_location: + row: 147 + column: 24 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -334,13 +350,14 @@ expression: diagnostics row: 151 column: 8 fix: - content: "..." - location: - row: 150 - column: 17 - end_location: - row: 151 - column: 8 + edits: + - content: "..." + location: + row: 150 + column: 17 + end_location: + row: 151 + column: 8 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -354,12 +371,13 @@ expression: diagnostics row: 160 column: 8 fix: - content: "..." - location: - row: 159 - column: 13 - end_location: - row: 160 - column: 8 + edits: + - content: "..." + location: + row: 159 + column: 13 + end_location: + row: 160 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap index caea80f524cb9..8121f1de46c64 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 16 fix: - content: "..." - location: - row: 3 - column: 6 - end_location: - row: 3 - column: 16 + edits: + - content: "..." + location: + row: 3 + column: 6 + end_location: + row: 3 + column: 16 parent: ~ - kind: name: ArgumentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 32 column: 5 fix: - content: "..." - location: - row: 29 - column: 6 - end_location: - row: 32 - column: 5 + edits: + - content: "..." + location: + row: 29 + column: 6 + end_location: + row: 32 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 47 column: 5 fix: - content: "..." - location: - row: 35 - column: 6 - end_location: - row: 47 - column: 5 + edits: + - content: "..." + location: + row: 35 + column: 6 + end_location: + row: 47 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 53 column: 5 fix: - content: "..." - location: - row: 50 - column: 6 - end_location: - row: 53 - column: 5 + edits: + - content: "..." + location: + row: 50 + column: 6 + end_location: + row: 53 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 56 column: 18 fix: - content: "..." - location: - row: 56 - column: 6 - end_location: - row: 56 - column: 18 + edits: + - content: "..." + location: + row: 56 + column: 6 + end_location: + row: 56 + column: 18 parent: ~ - kind: name: ArgumentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 59 column: 21 fix: - content: "..." - location: - row: 59 - column: 6 - end_location: - row: 59 - column: 21 + edits: + - content: "..." + location: + row: 59 + column: 6 + end_location: + row: 59 + column: 21 parent: ~ - kind: name: ArgumentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 61 column: 45 fix: - content: "..." - location: - row: 61 - column: 10 - end_location: - row: 61 - column: 45 + edits: + - content: "..." + location: + row: 61 + column: 10 + end_location: + row: 61 + column: 45 parent: ~ - kind: name: ArgumentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 63 column: 19 fix: - content: "..." - location: - row: 63 - column: 6 - end_location: - row: 63 - column: 19 + edits: + - content: "..." + location: + row: 63 + column: 6 + end_location: + row: 63 + column: 19 parent: ~ - kind: name: ArgumentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 66 column: 21 fix: - content: "..." - location: - row: 66 - column: 6 - end_location: - row: 66 - column: 21 + edits: + - content: "..." + location: + row: 66 + column: 6 + end_location: + row: 66 + column: 21 parent: ~ - kind: name: ArgumentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 69 column: 15 fix: - content: "..." - location: - row: 69 - column: 6 - end_location: - row: 69 - column: 15 + edits: + - content: "..." + location: + row: 69 + column: 6 + end_location: + row: 69 + column: 15 parent: ~ - kind: name: ArgumentDefaultInStub @@ -214,13 +224,14 @@ expression: diagnostics row: 72 column: 11 fix: - content: "..." - location: - row: 72 - column: 6 - end_location: - row: 72 - column: 11 + edits: + - content: "..." + location: + row: 72 + column: 6 + end_location: + row: 72 + column: 11 parent: ~ - kind: name: ArgumentDefaultInStub @@ -234,13 +245,14 @@ expression: diagnostics row: 75 column: 13 fix: - content: "..." - location: - row: 75 - column: 6 - end_location: - row: 75 - column: 13 + edits: + - content: "..." + location: + row: 75 + column: 6 + end_location: + row: 75 + column: 13 parent: ~ - kind: name: ArgumentDefaultInStub @@ -254,12 +266,13 @@ expression: diagnostics row: 78 column: 19 fix: - content: "..." - location: - row: 78 - column: 6 - end_location: - row: 78 - column: 19 + edits: + - content: "..." + location: + row: 78 + column: 6 + end_location: + row: 78 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap index 8424002ee2f40..90222cb269c84 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 57 fix: - content: "..." - location: - row: 40 - column: 22 - end_location: - row: 40 - column: 57 + edits: + - content: "..." + location: + row: 40 + column: 22 + end_location: + row: 40 + column: 57 parent: ~ - kind: name: AssignmentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 34 fix: - content: "..." - location: - row: 41 - column: 22 - end_location: - row: 41 - column: 34 + edits: + - content: "..." + location: + row: 41 + column: 22 + end_location: + row: 41 + column: 34 parent: ~ - kind: name: AssignmentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 37 fix: - content: "..." - location: - row: 42 - column: 22 - end_location: - row: 42 - column: 37 + edits: + - content: "..." + location: + row: 42 + column: 22 + end_location: + row: 42 + column: 37 parent: ~ - kind: name: AssignmentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 35 fix: - content: "..." - location: - row: 43 - column: 25 - end_location: - row: 43 - column: 35 + edits: + - content: "..." + location: + row: 43 + column: 25 + end_location: + row: 43 + column: 35 parent: ~ - kind: name: AssignmentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 44 column: 69 fix: - content: "..." - location: - row: 44 - column: 46 - end_location: - row: 44 - column: 69 + edits: + - content: "..." + location: + row: 44 + column: 46 + end_location: + row: 44 + column: 69 parent: ~ - kind: name: AssignmentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 45 column: 53 fix: - content: "..." - location: - row: 45 - column: 30 - end_location: - row: 45 - column: 53 + edits: + - content: "..." + location: + row: 45 + column: 30 + end_location: + row: 45 + column: 53 parent: ~ - kind: name: AssignmentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 46 column: 47 fix: - content: "..." - location: - row: 46 - column: 36 - end_location: - row: 46 - column: 47 + edits: + - content: "..." + location: + row: 46 + column: 36 + end_location: + row: 46 + column: 47 parent: ~ - kind: name: AssignmentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 48 column: 43 fix: - content: "..." - location: - row: 48 - column: 27 - end_location: - row: 48 - column: 43 + edits: + - content: "..." + location: + row: 48 + column: 27 + end_location: + row: 48 + column: 43 parent: ~ - kind: name: AssignmentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 49 column: 23 fix: - content: "..." - location: - row: 49 - column: 10 - end_location: - row: 49 - column: 23 + edits: + - content: "..." + location: + row: 49 + column: 10 + end_location: + row: 49 + column: 23 parent: ~ - kind: name: AssignmentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 50 column: 25 fix: - content: "..." - location: - row: 50 - column: 10 - end_location: - row: 50 - column: 25 + edits: + - content: "..." + location: + row: 50 + column: 10 + end_location: + row: 50 + column: 25 parent: ~ - kind: name: AssignmentDefaultInStub @@ -214,12 +224,13 @@ expression: diagnostics row: 51 column: 15 fix: - content: "..." - location: - row: 51 - column: 10 - end_location: - row: 51 - column: 15 + edits: + - content: "..." + location: + row: 51 + column: 10 + end_location: + row: 51 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap index 690e85b6b1898..c4b65aad1b776 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringInStub @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringInStub @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap index c6efc83c9cb48..d42087af7df13 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 127 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 183 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 126 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 132 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 128 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 123 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 128 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 172 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 19 column: 139 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 29 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 32 column: 55 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap index cd4a9bb0e2374..72a091d1c6de9 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 15 fix: - content: () - location: - row: 9 - column: 15 - end_location: - row: 9 - column: 15 + edits: + - content: () + location: + row: 9 + column: 15 + end_location: + row: 9 + column: 15 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 34 column: 8 fix: - content: () - location: - row: 34 - column: 8 - end_location: - row: 34 - column: 8 + edits: + - content: () + location: + row: 34 + column: 8 + end_location: + row: 34 + column: 8 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -54,12 +56,13 @@ expression: diagnostics row: 59 column: 8 fix: - content: () - location: - row: 59 - column: 8 - end_location: - row: 59 - column: 8 + edits: + - content: () + location: + row: 59 + column: 8 + end_location: + row: 59 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap index 9fedc34125032..d8a17a3683ff9 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "" - location: - row: 14 - column: 15 - end_location: - row: 14 - column: 17 + edits: + - content: "" + location: + row: 14 + column: 15 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 26 column: 1 fix: - content: "" - location: - row: 24 - column: 15 - end_location: - row: 26 - column: 1 + edits: + - content: "" + location: + row: 24 + column: 15 + end_location: + row: 26 + column: 1 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 39 column: 10 fix: - content: "" - location: - row: 39 - column: 8 - end_location: - row: 39 - column: 10 + edits: + - content: "" + location: + row: 39 + column: 8 + end_location: + row: 39 + column: 10 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 51 column: 1 fix: - content: "" - location: - row: 49 - column: 8 - end_location: - row: 51 - column: 1 + edits: + - content: "" + location: + row: 49 + column: 8 + end_location: + row: 51 + column: 1 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -94,13 +98,14 @@ expression: diagnostics row: 64 column: 10 fix: - content: "" - location: - row: 64 - column: 8 - end_location: - row: 64 - column: 10 + edits: + - content: "" + location: + row: 64 + column: 8 + end_location: + row: 64 + column: 10 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -114,12 +119,13 @@ expression: diagnostics row: 76 column: 1 fix: - content: "" - location: - row: 74 - column: 8 - end_location: - row: 76 - column: 1 + edits: + - content: "" + location: + row: 74 + column: 8 + end_location: + row: 76 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap index 2c8c743fffc25..44a99eba56178 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixturePositionalArgs @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 19 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap index a2390e08df78e..fb633c8addf19 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 32 fix: - content: "" - location: - row: 14 - column: 16 - end_location: - row: 14 - column: 32 + edits: + - content: "" + location: + row: 14 + column: 16 + end_location: + row: 14 + column: 32 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 19 column: 32 fix: - content: "" - location: - row: 19 - column: 16 - end_location: - row: 19 - column: 34 + edits: + - content: "" + location: + row: 19 + column: 16 + end_location: + row: 19 + column: 34 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 51 fix: - content: "" - location: - row: 24 - column: 33 - end_location: - row: 24 - column: 51 + edits: + - content: "" + location: + row: 24 + column: 33 + end_location: + row: 24 + column: 51 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -74,13 +77,14 @@ expression: diagnostics row: 29 column: 51 fix: - content: "" - location: - row: 29 - column: 35 - end_location: - row: 29 - column: 53 + edits: + - content: "" + location: + row: 29 + column: 35 + end_location: + row: 29 + column: 53 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -94,13 +98,14 @@ expression: diagnostics row: 37 column: 46 fix: - content: "" - location: - row: 37 - column: 28 - end_location: - row: 37 - column: 46 + edits: + - content: "" + location: + row: 37 + column: 28 + end_location: + row: 37 + column: 46 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -114,13 +119,14 @@ expression: diagnostics row: 43 column: 20 fix: - content: "" - location: - row: 43 - column: 4 - end_location: - row: 44 - column: 4 + edits: + - content: "" + location: + row: 43 + column: 4 + end_location: + row: 44 + column: 4 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -134,13 +140,14 @@ expression: diagnostics row: 52 column: 20 fix: - content: "" - location: - row: 51 - column: 21 - end_location: - row: 52 - column: 20 + edits: + - content: "" + location: + row: 51 + column: 21 + end_location: + row: 52 + column: 20 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -154,12 +161,13 @@ expression: diagnostics row: 67 column: 18 fix: - content: "" - location: - row: 66 - column: 4 - end_location: - row: 70 - column: 4 + edits: + - content: "" + location: + row: 66 + column: 4 + end_location: + row: 70 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap index a067775cf4a7e..e98c03865b70e 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 52 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestMissingFixtureNameUnderscore @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 58 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap index 2e21e8b058bf5..d73265fc0d5a0 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 42 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectFixtureNameUnderscore @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 48 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectFixtureNameUnderscore @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 57 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap index 5f4ef2dd97e1e..0aef088f253e3 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 24 column: 45 fix: - content: "\"param1,param2\"" - location: - row: 24 - column: 25 - end_location: - row: 24 - column: 45 + edits: + - content: "\"param1,param2\"" + location: + row: 24 + column: 25 + end_location: + row: 24 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 34 column: 45 fix: - content: "\"param1,param2\"" - location: - row: 34 - column: 25 - end_location: - row: 34 - column: 45 + edits: + - content: "\"param1,param2\"" + location: + row: 34 + column: 25 + end_location: + row: 34 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 44 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -106,6 +111,7 @@ expression: diagnostics end_location: row: 49 column: 46 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap index 6cb5e67345cef..fa85a5ddaade1 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 40 fix: - content: "(\"param1\", \"param2\")" - location: - row: 9 - column: 25 - end_location: - row: 9 - column: 40 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 9 + column: 25 + end_location: + row: 9 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 56 fix: - content: "(\"param1\", \"param2\")" - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 56 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 56 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: "(\"param1\", \"param2\")" - location: - row: 19 - column: 25 - end_location: - row: 19 - column: 40 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 19 + column: 25 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -94,13 +98,14 @@ expression: diagnostics row: 34 column: 45 fix: - content: "(\"param1\", \"param2\")" - location: - row: 34 - column: 25 - end_location: - row: 34 - column: 45 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 34 + column: 25 + end_location: + row: 34 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -114,13 +119,14 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -134,13 +140,14 @@ expression: diagnostics row: 44 column: 50 fix: - content: "(some_expr, another_expr)" - location: - row: 44 - column: 25 - end_location: - row: 44 - column: 50 + edits: + - content: "(some_expr, another_expr)" + location: + row: 44 + column: 25 + end_location: + row: 44 + column: 50 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -154,12 +161,13 @@ expression: diagnostics row: 49 column: 46 fix: - content: "(some_expr, \"param2\")" - location: - row: 49 - column: 25 - end_location: - row: 49 - column: 46 + edits: + - content: "(some_expr, \"param2\")" + location: + row: 49 + column: 25 + end_location: + row: 49 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap index a7c68156f2c7a..4dc115f33a599 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 40 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 9 - column: 25 - end_location: - row: 9 - column: 40 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 9 + column: 25 + end_location: + row: 9 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 56 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 56 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 56 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 19 - column: 25 - end_location: - row: 19 - column: 40 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 19 + column: 25 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 45 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 24 - column: 25 - end_location: - row: 24 - column: 45 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 24 + column: 25 + end_location: + row: 24 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -94,13 +98,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -114,12 +119,13 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap index 99ea8cf29babc..3ef473fe6da1c 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 39 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 81 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 81 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap index 9898f62a892cd..f34cea20b5448 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 51 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 61 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 62 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap index cca472b35832f..55329bc2b8673 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 31 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 39 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 80 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 81 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 81 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap index 97bc32004d581..c0dcbef2a73a7 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 31 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 51 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 61 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 62 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 80 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap index c631f1167af85..8222d2838ed81 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 35 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 37 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 38 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 41 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 42 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 43 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 46 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 47 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 48 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap index 17ba496c87a2a..c6c37f37ff52b 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 11 column: 23 fix: - content: assert expr - location: - row: 11 - column: 8 - end_location: - row: 11 - column: 29 + edits: + - content: assert expr + location: + row: 11 + column: 8 + end_location: + row: 11 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: assert expr - location: - row: 12 - column: 8 - end_location: - row: 12 - column: 34 + edits: + - content: assert expr + location: + row: 12 + column: 8 + end_location: + row: 12 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 23 fix: - content: "assert expr, msg" - location: - row: 13 - column: 8 - end_location: - row: 13 - column: 34 + edits: + - content: "assert expr, msg" + location: + row: 13 + column: 8 + end_location: + row: 13 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 23 fix: - content: "assert expr, msg" - location: - row: 14 - column: 8 - end_location: - row: 14 - column: 43 + edits: + - content: "assert expr, msg" + location: + row: 14 + column: 8 + end_location: + row: 14 + column: 43 parent: ~ - kind: name: PytestUnittestAssertion @@ -94,13 +98,14 @@ expression: diagnostics row: 15 column: 23 fix: - content: "assert expr, msg" - location: - row: 15 - column: 8 - end_location: - row: 15 - column: 43 + edits: + - content: "assert expr, msg" + location: + row: 15 + column: 8 + end_location: + row: 15 + column: 43 parent: ~ - kind: name: PytestUnittestAssertion @@ -113,7 +118,8 @@ expression: diagnostics end_location: row: 16 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -126,7 +132,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -139,7 +146,8 @@ expression: diagnostics end_location: row: 18 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -152,7 +160,8 @@ expression: diagnostics end_location: row: 19 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -165,7 +174,8 @@ expression: diagnostics end_location: row: 21 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -178,7 +188,8 @@ expression: diagnostics end_location: row: 23 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -191,7 +202,8 @@ expression: diagnostics end_location: row: 25 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -205,13 +217,14 @@ expression: diagnostics row: 28 column: 24 fix: - content: assert not True - location: - row: 28 - column: 8 - end_location: - row: 28 - column: 30 + edits: + - content: assert not True + location: + row: 28 + column: 8 + end_location: + row: 28 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -225,13 +238,14 @@ expression: diagnostics row: 31 column: 24 fix: - content: assert 1 == 2 - location: - row: 31 - column: 8 - end_location: - row: 31 - column: 30 + edits: + - content: assert 1 == 2 + location: + row: 31 + column: 8 + end_location: + row: 31 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -245,13 +259,14 @@ expression: diagnostics row: 34 column: 27 fix: - content: assert 1 != 1 - location: - row: 34 - column: 8 - end_location: - row: 34 - column: 33 + edits: + - content: assert 1 != 1 + location: + row: 34 + column: 8 + end_location: + row: 34 + column: 33 parent: ~ - kind: name: PytestUnittestAssertion @@ -265,13 +280,14 @@ expression: diagnostics row: 37 column: 26 fix: - content: assert 1 > 2 - location: - row: 37 - column: 8 - end_location: - row: 37 - column: 32 + edits: + - content: assert 1 > 2 + location: + row: 37 + column: 8 + end_location: + row: 37 + column: 32 parent: ~ - kind: name: PytestUnittestAssertion @@ -285,13 +301,14 @@ expression: diagnostics row: 40 column: 31 fix: - content: assert 1 >= 2 - location: - row: 40 - column: 8 - end_location: - row: 40 - column: 37 + edits: + - content: assert 1 >= 2 + location: + row: 40 + column: 8 + end_location: + row: 40 + column: 37 parent: ~ - kind: name: PytestUnittestAssertion @@ -305,13 +322,14 @@ expression: diagnostics row: 43 column: 23 fix: - content: assert 2 < 1 - location: - row: 43 - column: 8 - end_location: - row: 43 - column: 29 + edits: + - content: assert 2 < 1 + location: + row: 43 + column: 8 + end_location: + row: 43 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -325,13 +343,14 @@ expression: diagnostics row: 46 column: 28 fix: - content: assert 1 <= 2 - location: - row: 46 - column: 8 - end_location: - row: 46 - column: 34 + edits: + - content: assert 1 <= 2 + location: + row: 46 + column: 8 + end_location: + row: 46 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -345,13 +364,14 @@ expression: diagnostics row: 49 column: 21 fix: - content: "assert 1 in [2, 3]" - location: - row: 49 - column: 8 - end_location: - row: 49 - column: 32 + edits: + - content: "assert 1 in [2, 3]" + location: + row: 49 + column: 8 + end_location: + row: 49 + column: 32 parent: ~ - kind: name: PytestUnittestAssertion @@ -365,13 +385,14 @@ expression: diagnostics row: 52 column: 24 fix: - content: "assert 2 not in [2, 3]" - location: - row: 52 - column: 8 - end_location: - row: 52 - column: 35 + edits: + - content: "assert 2 not in [2, 3]" + location: + row: 52 + column: 8 + end_location: + row: 52 + column: 35 parent: ~ - kind: name: PytestUnittestAssertion @@ -385,13 +406,14 @@ expression: diagnostics row: 55 column: 25 fix: - content: assert 0 is None - location: - row: 55 - column: 8 - end_location: - row: 55 - column: 28 + edits: + - content: assert 0 is None + location: + row: 55 + column: 8 + end_location: + row: 55 + column: 28 parent: ~ - kind: name: PytestUnittestAssertion @@ -405,13 +427,14 @@ expression: diagnostics row: 58 column: 28 fix: - content: assert 0 is not None - location: - row: 58 - column: 8 - end_location: - row: 58 - column: 31 + edits: + - content: assert 0 is not None + location: + row: 58 + column: 8 + end_location: + row: 58 + column: 31 parent: ~ - kind: name: PytestUnittestAssertion @@ -425,13 +448,14 @@ expression: diagnostics row: 61 column: 21 fix: - content: "assert [] is []" - location: - row: 61 - column: 8 - end_location: - row: 61 - column: 29 + edits: + - content: "assert [] is []" + location: + row: 61 + column: 8 + end_location: + row: 61 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -445,13 +469,14 @@ expression: diagnostics row: 64 column: 24 fix: - content: assert 1 is not 1 - location: - row: 64 - column: 8 - end_location: - row: 64 - column: 30 + edits: + - content: assert 1 is not 1 + location: + row: 64 + column: 8 + end_location: + row: 64 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -465,13 +490,14 @@ expression: diagnostics row: 67 column: 29 fix: - content: "assert isinstance(1, str)" - location: - row: 67 - column: 8 - end_location: - row: 67 - column: 37 + edits: + - content: "assert isinstance(1, str)" + location: + row: 67 + column: 8 + end_location: + row: 67 + column: 37 parent: ~ - kind: name: PytestUnittestAssertion @@ -485,13 +511,14 @@ expression: diagnostics row: 70 column: 32 fix: - content: "assert not isinstance(1, int)" - location: - row: 70 - column: 8 - end_location: - row: 70 - column: 40 + edits: + - content: "assert not isinstance(1, int)" + location: + row: 70 + column: 8 + end_location: + row: 70 + column: 40 parent: ~ - kind: name: PytestUnittestAssertion @@ -505,13 +532,14 @@ expression: diagnostics row: 73 column: 24 fix: - content: "assert re.search(\"def\", \"abc\")" - location: - row: 73 - column: 8 - end_location: - row: 73 - column: 39 + edits: + - content: "assert re.search(\"def\", \"abc\")" + location: + row: 73 + column: 8 + end_location: + row: 73 + column: 39 parent: ~ - kind: name: PytestUnittestAssertion @@ -525,13 +553,14 @@ expression: diagnostics row: 76 column: 27 fix: - content: "assert not re.search(\"abc\", \"abc\")" - location: - row: 76 - column: 8 - end_location: - row: 76 - column: 42 + edits: + - content: "assert not re.search(\"abc\", \"abc\")" + location: + row: 76 + column: 8 + end_location: + row: 76 + column: 42 parent: ~ - kind: name: PytestUnittestAssertion @@ -545,13 +574,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "assert re.search(\"def\", \"abc\")" - location: - row: 79 - column: 8 - end_location: - row: 79 - column: 47 + edits: + - content: "assert re.search(\"def\", \"abc\")" + location: + row: 79 + column: 8 + end_location: + row: 79 + column: 47 parent: ~ - kind: name: PytestUnittestAssertion @@ -565,12 +595,13 @@ expression: diagnostics row: 82 column: 27 fix: - content: "assert not re.search(\"abc\", \"abc\")" - location: - row: 82 - column: 8 - end_location: - row: 82 - column: 42 + edits: + - content: "assert not re.search(\"abc\", \"abc\")" + location: + row: 82 + column: 8 + end_location: + row: 82 + column: 42 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap index 6d295902540b4..91916c2abd660 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap index e9d8b5fc454c6..ff02aaf4c54b5 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 20 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 31 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap index b0624bbf0b7ab..1097766c0f072 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 25 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 28 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 31 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap index 01714c386a90c..c6de8582a9ab4 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 12 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap index 5b851a1c220d1..1abddeccb3cdb 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 30 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 40 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 48 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 52 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 56 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 64 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap index d7072c8d8b648..4f25141539eef 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectPytestImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectPytestImport @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap index d4e3fd3a7785b..5ac9a44ca6001 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 13 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 14 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 15 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 16 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 17 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 19 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 20 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 21 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 22 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 24 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -221,6 +237,7 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap index 9cd8bf8e5cda9..2c7aac72bab9d 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap index e8eee3056d895..07c569b7cb93a 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 19 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap index 6c43f75955c5d..ea67e61f52c47 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 39 fix: - content: " assert something\n assert something_else\n" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: " assert something\n assert something_else\n" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -34,13 +35,14 @@ expression: diagnostics row: 15 column: 59 fix: - content: " assert something and something_else\n assert something_third\n" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: " assert something and something_else\n assert something_third\n" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 43 fix: - content: " assert something\n assert not something_else\n" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: " assert something\n assert not something_else\n" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 60 fix: - content: " assert something\n assert (something_else or something_third)\n" - location: - row: 17 - column: 0 - end_location: - row: 18 - column: 0 + edits: + - content: " assert something\n assert (something_else or something_third)\n" + location: + row: 17 + column: 0 + end_location: + row: 18 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -94,13 +98,14 @@ expression: diagnostics row: 18 column: 43 fix: - content: " assert not something\n assert something_else\n" - location: - row: 18 - column: 0 - end_location: - row: 19 - column: 0 + edits: + - content: " assert not something\n assert something_else\n" + location: + row: 18 + column: 0 + end_location: + row: 19 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -114,13 +119,14 @@ expression: diagnostics row: 19 column: 44 fix: - content: " assert not something\n assert not something_else\n" - location: - row: 19 - column: 0 - end_location: - row: 20 - column: 0 + edits: + - content: " assert not something\n assert not something_else\n" + location: + row: 19 + column: 0 + end_location: + row: 20 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 63 fix: - content: " assert not something or something_else\n assert not something_third\n" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: " assert not something or something_else\n assert not something_third\n" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: " assert something\n assert something_else == \"\"\"error\n message\n \"\"\"\n" - location: - row: 21 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: " assert something\n assert something_else == \"\"\"error\n message\n \"\"\"\n" + location: + row: 21 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 34 fix: - content: " assert not a\n assert (b or c)\n" - location: - row: 26 - column: 0 - end_location: - row: 27 - column: 0 + edits: + - content: " assert not a\n assert (b or c)\n" + location: + row: 26 + column: 0 + end_location: + row: 27 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -194,13 +203,14 @@ expression: diagnostics row: 27 column: 35 fix: - content: " assert not a\n assert (b and c)\n" - location: - row: 27 - column: 0 - end_location: - row: 28 - column: 0 + edits: + - content: " assert not a\n assert (b and c)\n" + location: + row: 27 + column: 0 + end_location: + row: 28 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -213,7 +223,8 @@ expression: diagnostics end_location: row: 30 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -226,7 +237,8 @@ expression: diagnostics end_location: row: 31 column: 80 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -239,7 +251,8 @@ expression: diagnostics end_location: row: 33 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -252,6 +265,7 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap index e558f647d9b92..d4ecc30b0cc03 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixtureParamWithoutValue @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap index 6a11a6d3dcef4..eed92a1e71944 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestDeprecatedYieldFixture @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 19 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap index 5c5f123d52ed0..9b50d8b831260 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 49 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixtureFinalizerCallback @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 56 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap index d2341c9050ae1..29282d16ad69d 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 18 fix: - content: return - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 9 + edits: + - content: return + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap index 619a4e58eb0e2..6ee9044166719 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 12 column: 16 fix: - content: () - location: - row: 12 - column: 16 - end_location: - row: 12 - column: 16 + edits: + - content: () + location: + row: 12 + column: 16 + end_location: + row: 12 + column: 16 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 17 column: 16 fix: - content: () - location: - row: 17 - column: 16 - end_location: - row: 17 - column: 16 + edits: + - content: () + location: + row: 17 + column: 16 + end_location: + row: 17 + column: 16 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 20 fix: - content: () - location: - row: 24 - column: 20 - end_location: - row: 24 - column: 20 + edits: + - content: () + location: + row: 24 + column: 20 + end_location: + row: 24 + column: 20 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 30 column: 20 fix: - content: () - location: - row: 30 - column: 20 - end_location: - row: 30 - column: 20 + edits: + - content: () + location: + row: 30 + column: 20 + end_location: + row: 30 + column: 20 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -94,12 +98,13 @@ expression: diagnostics row: 38 column: 24 fix: - content: () - location: - row: 38 - column: 24 - end_location: - row: 38 - column: 24 + edits: + - content: () + location: + row: 38 + column: 24 + end_location: + row: 38 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap index 6749d8e44429f..9158e32c32ca9 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 46 column: 18 fix: - content: "" - location: - row: 46 - column: 16 - end_location: - row: 46 - column: 18 + edits: + - content: "" + location: + row: 46 + column: 16 + end_location: + row: 46 + column: 18 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 51 column: 18 fix: - content: "" - location: - row: 51 - column: 16 - end_location: - row: 51 - column: 18 + edits: + - content: "" + location: + row: 51 + column: 16 + end_location: + row: 51 + column: 18 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 58 column: 22 fix: - content: "" - location: - row: 58 - column: 20 - end_location: - row: 58 - column: 22 + edits: + - content: "" + location: + row: 58 + column: 20 + end_location: + row: 58 + column: 22 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 64 column: 22 fix: - content: "" - location: - row: 64 - column: 20 - end_location: - row: 64 - column: 22 + edits: + - content: "" + location: + row: 64 + column: 20 + end_location: + row: 64 + column: 22 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -94,12 +98,13 @@ expression: diagnostics row: 72 column: 26 fix: - content: "" - location: - row: 72 - column: 24 - end_location: - row: 72 - column: 26 + edits: + - content: "" + location: + row: 72 + column: 24 + end_location: + row: 72 + column: 26 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap index 262422e91a0ff..2a53e8aeeffc1 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 22 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 20 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -54,13 +56,14 @@ expression: diagnostics row: 27 column: 22 fix: - content: "" - location: - row: 27 - column: 0 - end_location: - row: 28 - column: 0 + edits: + - content: "" + location: + row: 27 + column: 0 + end_location: + row: 28 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -74,12 +77,13 @@ expression: diagnostics row: 33 column: 20 fix: - content: "" - location: - row: 33 - column: 0 - end_location: - row: 34 - column: 0 + edits: + - content: "" + location: + row: 33 + column: 0 + end_location: + row: 34 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap index d56466a469614..3a9d7faf4f9e8 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 29 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: PytestErroneousUseFixturesOnFixture @@ -34,12 +35,13 @@ expression: diagnostics row: 16 column: 29 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap index a7f4c9c666a7e..2b40d61ab06db 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 19 column: 26 fix: - content: "" - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 26 + edits: + - content: "" + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 26 parent: ~ - kind: name: PytestUseFixturesWithoutParameters @@ -34,12 +35,13 @@ expression: diagnostics row: 24 column: 24 fix: - content: "" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 24 + edits: + - content: "" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap index 93049719ded17..e411129416ff2 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 7 fix: - content: "'''\n this is not a docstring\n '''" - location: - row: 16 - column: 4 - end_location: - row: 18 - column: 7 + edits: + - content: "'''\n this is not a docstring\n '''" + location: + row: 16 + column: 4 + end_location: + row: 18 + column: 7 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 22 column: 37 fix: - content: "'''\n definitely not a docstring'''" - location: - row: 21 - column: 20 - end_location: - row: 22 - column: 37 + edits: + - content: "'''\n definitely not a docstring'''" + location: + row: 21 + column: 20 + end_location: + row: 22 + column: 37 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 32 column: 11 fix: - content: "'''\n this is not a docstring\n '''" - location: - row: 30 - column: 8 - end_location: - row: 32 - column: 11 + edits: + - content: "'''\n this is not a docstring\n '''" + location: + row: 30 + column: 8 + end_location: + row: 32 + column: 11 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 37 column: 15 fix: - content: "'''\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n '''" - location: - row: 35 - column: 12 - end_location: - row: 37 - column: 15 + edits: + - content: "'''\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n '''" + location: + row: 35 + column: 12 + end_location: + row: 37 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap index 1d30b97bac488..dc5672cf26f22 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 27 fix: - content: "''' Not a docstring '''" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 27 + edits: + - content: "''' Not a docstring '''" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 27 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 5 column: 43 fix: - content: "'''not a docstring'''" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 43 + edits: + - content: "'''not a docstring'''" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 43 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap index b3794039a4049..04c2156fe5e0b 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: "''' not a docstring'''" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 26 + edits: + - content: "''' not a docstring'''" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 26 fix: - content: "''' not a docstring'''" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 26 + edits: + - content: "''' not a docstring'''" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 3 fix: - content: "'''\n not a\n'''" - location: - row: 15 - column: 38 - end_location: - row: 17 - column: 3 + edits: + - content: "'''\n not a\n'''" + location: + row: 15 + column: 38 + end_location: + row: 17 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "'''docstring'''" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 19 + edits: + - content: "'''docstring'''" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 27 fix: - content: "''' not a docstring '''" - location: - row: 22 - column: 4 - end_location: - row: 22 - column: 27 + edits: + - content: "''' not a docstring '''" + location: + row: 22 + column: 4 + end_location: + row: 22 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap index df6330a1192de..825b5fcc7fb91 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 11 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 9 - column: 0 - end_location: - row: 11 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 9 + column: 0 + end_location: + row: 11 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap index fd5dcbb7f32a1..52f9064607eff 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: "''' this is not a docstring '''" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: "''' this is not a docstring '''" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 31 fix: - content: "''' this is not a docstring '''" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 31 + edits: + - content: "''' this is not a docstring '''" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap index ff4d153566ee5..d4cc9719d49d8 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 3 fix: - content: "\"\"\"\nSingle quotes multiline module docstring\n\"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "\"\"\"\nSingle quotes multiline module docstring\n\"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 16 column: 7 fix: - content: "\"\"\"\n Single quotes multiline class docstring\n \"\"\"" - location: - row: 14 - column: 4 - end_location: - row: 16 - column: 7 + edits: + - content: "\"\"\"\n Single quotes multiline class docstring\n \"\"\"" + location: + row: 14 + column: 4 + end_location: + row: 16 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 28 column: 11 fix: - content: "\"\"\"\n Single quotes multiline function docstring\n \"\"\"" - location: - row: 26 - column: 8 - end_location: - row: 28 - column: 11 + edits: + - content: "\"\"\"\n Single quotes multiline function docstring\n \"\"\"" + location: + row: 26 + column: 8 + end_location: + row: 28 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap index 3b85426c844b0..0c607a6184335 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 53 fix: - content: "\"\"\" Double quotes single line class docstring \"\"\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 53 + edits: + - content: "\"\"\" Double quotes single line class docstring \"\"\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 53 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "\"\"\" Double quotes single line method docstring\"\"\"" - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 57 + edits: + - content: "\"\"\" Double quotes single line method docstring\"\"\"" + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 52 fix: - content: "\"\"\" inline docstring \"\"\"" - location: - row: 9 - column: 28 - end_location: - row: 9 - column: 52 + edits: + - content: "\"\"\" inline docstring \"\"\"" + location: + row: 9 + column: 28 + end_location: + row: 9 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap index ad663e2cf09c8..6a115dddffed0 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 56 fix: - content: "\"\"\"function without params, single line docstring\"\"\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 56 + edits: + - content: "\"\"\"function without params, single line docstring\"\"\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 56 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 7 fix: - content: "\"\"\"\n function without params, multiline docstring\n \"\"\"" - location: - row: 8 - column: 4 - end_location: - row: 10 - column: 7 + edits: + - content: "\"\"\"\n function without params, multiline docstring\n \"\"\"" + location: + row: 8 + column: 4 + end_location: + row: 10 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 27 column: 27 fix: - content: "\"Single line docstring\"" - location: - row: 27 - column: 4 - end_location: - row: 27 - column: 27 + edits: + - content: "\"Single line docstring\"" + location: + row: 27 + column: 4 + end_location: + row: 27 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap index 4344c740c3657..0860f93ac08e4 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 3 fix: - content: "\"\"\"\nDouble quotes multiline module docstring\n\"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "\"\"\"\nDouble quotes multiline module docstring\n\"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap index d0f49b1f144a4..9dad49f9e891a 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 49 fix: - content: "\"\"\" Double quotes singleline module docstring \"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 49 + edits: + - content: "\"\"\" Double quotes singleline module docstring \"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap index 9502deb17d298..ff57203cfa87b 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 3 fix: - content: "'''\nDouble quotes multiline module docstring\n'''" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "'''\nDouble quotes multiline module docstring\n'''" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 7 fix: - content: "'''\n Double quotes multiline class docstring\n '''" - location: - row: 12 - column: 4 - end_location: - row: 14 - column: 7 + edits: + - content: "'''\n Double quotes multiline class docstring\n '''" + location: + row: 12 + column: 4 + end_location: + row: 14 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 26 column: 11 fix: - content: "'''\n Double quotes multiline function docstring\n '''" - location: - row: 24 - column: 8 - end_location: - row: 26 - column: 11 + edits: + - content: "'''\n Double quotes multiline function docstring\n '''" + location: + row: 24 + column: 8 + end_location: + row: 26 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap index a67e8d7a3ac9e..f99a0b955ec02 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 53 fix: - content: "''' Double quotes single line class docstring '''" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 53 + edits: + - content: "''' Double quotes single line class docstring '''" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 53 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "''' Double quotes single line method docstring'''" - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 57 + edits: + - content: "''' Double quotes single line method docstring'''" + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 52 fix: - content: "''' inline docstring '''" - location: - row: 9 - column: 28 - end_location: - row: 9 - column: 52 + edits: + - content: "''' inline docstring '''" + location: + row: 9 + column: 28 + end_location: + row: 9 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap index 630ea19991e28..e8b475b2f4594 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 56 fix: - content: "'''function without params, single line docstring'''" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 56 + edits: + - content: "'''function without params, single line docstring'''" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 56 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 7 fix: - content: "'''\n function without params, multiline docstring\n '''" - location: - row: 8 - column: 4 - end_location: - row: 10 - column: 7 + edits: + - content: "'''\n function without params, multiline docstring\n '''" + location: + row: 8 + column: 4 + end_location: + row: 10 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 27 column: 27 fix: - content: "'Single line docstring'" - location: - row: 27 - column: 4 - end_location: - row: 27 - column: 27 + edits: + - content: "'Single line docstring'" + location: + row: 27 + column: 4 + end_location: + row: 27 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap index 04a51637226b0..ac80a14270eee 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 3 fix: - content: "'''\nDouble quotes multiline module docstring\n'''" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "'''\nDouble quotes multiline module docstring\n'''" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap index 3d2746184b564..fbe48eee7abf6 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 49 fix: - content: "''' Double quotes singleline module docstring '''" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 49 + edits: + - content: "''' Double quotes singleline module docstring '''" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap index 5de2f20f876e2..a18c8c3178482 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 3 fix: - content: "\"\"\"\n class params \\t not a docstring\n\"\"\"" - location: - row: 11 - column: 20 - end_location: - row: 13 - column: 3 + edits: + - content: "\"\"\"\n class params \\t not a docstring\n\"\"\"" + location: + row: 11 + column: 20 + end_location: + row: 13 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "\"\"\"\n this is not a docstring\n \"\"\"" - location: - row: 18 - column: 4 - end_location: - row: 20 - column: 7 + edits: + - content: "\"\"\"\n this is not a docstring\n \"\"\"" + location: + row: 18 + column: 4 + end_location: + row: 20 + column: 7 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 37 fix: - content: "\"\"\"\n definitely not a docstring\"\"\"" - location: - row: 23 - column: 20 - end_location: - row: 24 - column: 37 + edits: + - content: "\"\"\"\n definitely not a docstring\"\"\"" + location: + row: 23 + column: 20 + end_location: + row: 24 + column: 37 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,13 +98,14 @@ expression: diagnostics row: 34 column: 11 fix: - content: "\"\"\"\n this is not a docstring\n \"\"\"" - location: - row: 32 - column: 8 - end_location: - row: 34 - column: 11 + edits: + - content: "\"\"\"\n this is not a docstring\n \"\"\"" + location: + row: 32 + column: 8 + end_location: + row: 34 + column: 11 parent: ~ - kind: name: BadQuotesMultilineString @@ -114,12 +119,13 @@ expression: diagnostics row: 39 column: 15 fix: - content: "\"\"\"\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n \"\"\"" - location: - row: 37 - column: 12 - end_location: - row: 39 - column: 15 + edits: + - content: "\"\"\"\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n \"\"\"" + location: + row: 37 + column: 12 + end_location: + row: 39 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap index 7498c57b13178..cae9374dde9c7 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 27 fix: - content: "\"\"\" Not a docstring \"\"\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 27 + edits: + - content: "\"\"\" Not a docstring \"\"\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 27 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 5 column: 43 fix: - content: "\"\"\"not a docstring\"\"\"" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 43 + edits: + - content: "\"\"\"not a docstring\"\"\"" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 43 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap index e545c2d4cf11a..a1049c7a5f845 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: "\"\"\" not a docstring\"\"\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 26 + edits: + - content: "\"\"\" not a docstring\"\"\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 26 fix: - content: "\"\"\" not a docstring\"\"\"" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 26 + edits: + - content: "\"\"\" not a docstring\"\"\"" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 3 fix: - content: "\"\"\"\n not a\n\"\"\"" - location: - row: 15 - column: 38 - end_location: - row: 17 - column: 3 + edits: + - content: "\"\"\"\n not a\n\"\"\"" + location: + row: 15 + column: 38 + end_location: + row: 17 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "\"\"\"docstring\"\"\"" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 19 + edits: + - content: "\"\"\"docstring\"\"\"" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 27 fix: - content: "\"\"\" not a docstring \"\"\"" - location: - row: 22 - column: 4 - end_location: - row: 22 - column: 27 + edits: + - content: "\"\"\" not a docstring \"\"\"" + location: + row: 22 + column: 4 + end_location: + row: 22 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap index cf5f281c49d70..d65f4f9f5223d 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 11 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 9 - column: 0 - end_location: - row: 11 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 9 + column: 0 + end_location: + row: 11 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap index 5ca4d42fa7f09..d135668736bea 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: "\"\"\" this is not a docstring \"\"\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: "\"\"\" this is not a docstring \"\"\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 31 fix: - content: "\"\"\" this is not a docstring \"\"\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 31 + edits: + - content: "\"\"\" this is not a docstring \"\"\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap index 00ae770ba0500..ff88556343ff1 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "\"single quote string\"" - location: - row: 1 - column: 24 - end_location: - row: 1 - column: 45 + edits: + - content: "\"single quote string\"" + location: + row: 1 + column: 24 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "u\"double quote string\"" - location: - row: 2 - column: 24 - end_location: - row: 2 - column: 46 + edits: + - content: "u\"double quote string\"" + location: + row: 2 + column: 24 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: BadQuotesInlineString @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 46 fix: - content: "f\"double quote string\"" - location: - row: 3 - column: 24 - end_location: - row: 3 - column: 46 + edits: + - content: "f\"double quote string\"" + location: + row: 3 + column: 24 + end_location: + row: 3 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap index 012d697ef2a1e..0e970c50b1eca 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 47 fix: - content: "'This is a \"string\"'" - location: - row: 1 - column: 25 - end_location: - row: 1 - column: 47 + edits: + - content: "'This is a \"string\"'" + location: + row: 1 + column: 25 + end_location: + row: 1 + column: 47 parent: ~ - kind: name: AvoidableEscapedQuote @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 16 fix: - content: "'\"string\"'" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 16 + edits: + - content: "'\"string\"'" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap index f78b3dcb0ed56..23350b818b1b9 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "\"This\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "\"This\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 8 fix: - content: "\"is\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 8 + edits: + - content: "\"is\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: "\"not\"" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 9 + edits: + - content: "\"not\"" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 10 fix: - content: "\"This\"" - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 10 + edits: + - content: "\"This\"" + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "\"is\"" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: "\"is\"" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: "\"not\"" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 9 + edits: + - content: "\"not\"" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -134,12 +140,13 @@ expression: diagnostics row: 27 column: 30 fix: - content: "\"But this needs to be changed\"" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 30 + edits: + - content: "\"But this needs to be changed\"" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap index d2396e06d7d63..3155333dfe3b0 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: "\"\"\" This 'should'\nbe\n'linted' \"\"\"" - location: - row: 1 - column: 4 - end_location: - row: 3 - column: 12 + edits: + - content: "\"\"\" This 'should'\nbe\n'linted' \"\"\"" + location: + row: 1 + column: 4 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap index 6319060367464..0d77a1e610e47 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "'double quote string'" - location: - row: 1 - column: 24 - end_location: - row: 1 - column: 45 + edits: + - content: "'double quote string'" + location: + row: 1 + column: 24 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "u'double quote string'" - location: - row: 2 - column: 24 - end_location: - row: 2 - column: 46 + edits: + - content: "u'double quote string'" + location: + row: 2 + column: 24 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: BadQuotesInlineString @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 46 fix: - content: "f'double quote string'" - location: - row: 3 - column: 24 - end_location: - row: 3 - column: 46 + edits: + - content: "f'double quote string'" + location: + row: 3 + column: 24 + end_location: + row: 3 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap index ae806159e0235..f44fa6b00dbb0 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 47 fix: - content: "\"This is a 'string'\"" - location: - row: 1 - column: 25 - end_location: - row: 1 - column: 47 + edits: + - content: "\"This is a 'string'\"" + location: + row: 1 + column: 25 + end_location: + row: 1 + column: 47 parent: ~ - kind: name: AvoidableEscapedQuote @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 52 fix: - content: "\"This is \\\\ a \\\\'string'\"" - location: - row: 2 - column: 25 - end_location: - row: 2 - column: 52 + edits: + - content: "\"This is \\\\ a \\\\'string'\"" + location: + row: 2 + column: 25 + end_location: + row: 2 + column: 52 parent: ~ - kind: name: AvoidableEscapedQuote @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 16 fix: - content: "\"'string'\"" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 16 + edits: + - content: "\"'string'\"" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap index 5474a5733a7d4..acfe0c0172865 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "'This'" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "'This'" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 8 fix: - content: "'is'" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 8 + edits: + - content: "'is'" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: "'not'" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 9 + edits: + - content: "'not'" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 10 fix: - content: "'This'" - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 10 + edits: + - content: "'This'" + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "'is'" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: "'is'" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: "'not'" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 9 + edits: + - content: "'not'" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -134,12 +140,13 @@ expression: diagnostics row: 27 column: 30 fix: - content: "'But this needs to be changed'" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 30 + edits: + - content: "'But this needs to be changed'" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap index b0c1ffc4f57ec..9adb597757196 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: "''' This \"should\"\nbe\n\"linted\" '''" - location: - row: 1 - column: 4 - end_location: - row: 3 - column: 12 + edits: + - content: "''' This \"should\"\nbe\n\"linted\" '''" + location: + row: 1 + column: 4 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap b/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap index 64701a4b17fa2..a6ff7c570c9c0 100644 --- a/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap +++ b/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 22 fix: - content: "" - location: - row: 5 - column: 20 - end_location: - row: 5 - column: 22 + edits: + - content: "" + location: + row: 5 + column: 20 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 17 fix: - content: "" - location: - row: 13 - column: 15 - end_location: - row: 13 - column: 17 + edits: + - content: "" + location: + row: 13 + column: 15 + end_location: + row: 13 + column: 17 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: "" - location: - row: 16 - column: 15 - end_location: - row: 16 - column: 18 + edits: + - content: "" + location: + row: 16 + column: 15 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -74,13 +77,14 @@ expression: diagnostics row: 20 column: 6 fix: - content: "" - location: - row: 19 - column: 15 - end_location: - row: 20 - column: 6 + edits: + - content: "" + location: + row: 19 + column: 15 + end_location: + row: 20 + column: 6 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -94,13 +98,14 @@ expression: diagnostics row: 25 column: 1 fix: - content: "" - location: - row: 23 - column: 15 - end_location: - row: 25 - column: 1 + edits: + - content: "" + location: + row: 23 + column: 15 + end_location: + row: 25 + column: 1 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -114,12 +119,13 @@ expression: diagnostics row: 30 column: 1 fix: - content: "" - location: - row: 28 - column: 15 - end_location: - row: 30 - column: 1 + edits: + - content: "" + location: + row: 28 + column: 15 + end_location: + row: 30 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap index 08e0c586da499..06f39cf580d2e 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: return - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 15 + edits: + - content: return + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 15 parent: ~ - kind: name: UnnecessaryReturnNone @@ -34,12 +35,13 @@ expression: diagnostics row: 14 column: 19 fix: - content: return - location: - row: 14 - column: 8 - end_location: - row: 14 - column: 19 + edits: + - content: return + location: + row: 14 + column: 8 + end_location: + row: 14 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap index 1a92947f9fcfc..eeab8c27ad2a9 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 14 fix: - content: return None - location: - row: 3 - column: 8 - end_location: - row: 3 - column: 14 + edits: + - content: return None + location: + row: 3 + column: 8 + end_location: + row: 3 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap index 12f483d969eea..2766a6f465ef5 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 21 column: 16 fix: - content: "\n return None" - location: - row: 21 - column: 16 - end_location: - row: 21 - column: 16 + edits: + - content: "\n return None" + location: + row: 21 + column: 16 + end_location: + row: 21 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 15 fix: - content: "\n return None" - location: - row: 27 - column: 24 - end_location: - row: 27 - column: 24 + edits: + - content: "\n return None" + location: + row: 27 + column: 24 + end_location: + row: 27 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -54,13 +56,14 @@ expression: diagnostics row: 36 column: 11 fix: - content: "\n return None" - location: - row: 36 - column: 20 - end_location: - row: 36 - column: 20 + edits: + - content: "\n return None" + location: + row: 36 + column: 20 + end_location: + row: 36 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 20 fix: - content: "\n return None" - location: - row: 43 - column: 20 - end_location: - row: 43 - column: 20 + edits: + - content: "\n return None" + location: + row: 43 + column: 20 + end_location: + row: 43 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -94,13 +98,14 @@ expression: diagnostics row: 52 column: 15 fix: - content: "\n return None" - location: - row: 52 - column: 24 - end_location: - row: 52 - column: 24 + edits: + - content: "\n return None" + location: + row: 52 + column: 24 + end_location: + row: 52 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -114,13 +119,14 @@ expression: diagnostics row: 59 column: 22 fix: - content: "\n return None" - location: - row: 59 - column: 31 - end_location: - row: 59 - column: 31 + edits: + - content: "\n return None" + location: + row: 59 + column: 31 + end_location: + row: 59 + column: 31 parent: ~ - kind: name: ImplicitReturn @@ -134,13 +140,14 @@ expression: diagnostics row: 66 column: 21 fix: - content: "\n return None" - location: - row: 66 - column: 30 - end_location: - row: 66 - column: 30 + edits: + - content: "\n return None" + location: + row: 66 + column: 30 + end_location: + row: 66 + column: 30 parent: ~ - kind: name: ImplicitReturn @@ -154,13 +161,14 @@ expression: diagnostics row: 85 column: 14 fix: - content: "\n return None" - location: - row: 85 - column: 14 - end_location: - row: 85 - column: 14 + edits: + - content: "\n return None" + location: + row: 85 + column: 14 + end_location: + row: 85 + column: 14 parent: ~ - kind: name: ImplicitReturn @@ -174,13 +182,14 @@ expression: diagnostics row: 116 column: 16 fix: - content: "\n return None" - location: - row: 116 - column: 16 - end_location: - row: 116 - column: 16 + edits: + - content: "\n return None" + location: + row: 116 + column: 16 + end_location: + row: 116 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -194,13 +203,14 @@ expression: diagnostics row: 126 column: 19 fix: - content: "\n return None" - location: - row: 126 - column: 19 - end_location: - row: 126 - column: 19 + edits: + - content: "\n return None" + location: + row: 126 + column: 19 + end_location: + row: 126 + column: 19 parent: ~ - kind: name: ImplicitReturn @@ -214,13 +224,14 @@ expression: diagnostics row: 133 column: 16 fix: - content: "\n return None" - location: - row: 133 - column: 16 - end_location: - row: 133 - column: 16 + edits: + - content: "\n return None" + location: + row: 133 + column: 16 + end_location: + row: 133 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -234,13 +245,14 @@ expression: diagnostics row: 143 column: 19 fix: - content: "\n return None" - location: - row: 143 - column: 19 - end_location: - row: 143 - column: 19 + edits: + - content: "\n return None" + location: + row: 143 + column: 19 + end_location: + row: 143 + column: 19 parent: ~ - kind: name: ImplicitReturn @@ -254,13 +266,14 @@ expression: diagnostics row: 275 column: 20 fix: - content: "\n return None" - location: - row: 275 - column: 20 - end_location: - row: 275 - column: 20 + edits: + - content: "\n return None" + location: + row: 275 + column: 20 + end_location: + row: 275 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -274,13 +287,14 @@ expression: diagnostics row: 291 column: 19 fix: - content: "\n return None" - location: - row: 291 - column: 28 - end_location: - row: 291 - column: 28 + edits: + - content: "\n return None" + location: + row: 291 + column: 28 + end_location: + row: 291 + column: 28 parent: ~ - kind: name: ImplicitReturn @@ -294,13 +308,14 @@ expression: diagnostics row: 301 column: 21 fix: - content: "\n return None" - location: - row: 301 - column: 21 - end_location: - row: 301 - column: 21 + edits: + - content: "\n return None" + location: + row: 301 + column: 21 + end_location: + row: 301 + column: 21 parent: ~ - kind: name: ImplicitReturn @@ -314,13 +329,14 @@ expression: diagnostics row: 306 column: 21 fix: - content: "\n return None" - location: - row: 306 - column: 21 - end_location: - row: 306 - column: 21 + edits: + - content: "\n return None" + location: + row: 306 + column: 21 + end_location: + row: 306 + column: 21 parent: ~ - kind: name: ImplicitReturn @@ -334,13 +350,14 @@ expression: diagnostics row: 311 column: 21 fix: - content: "\n return None" - location: - row: 311 - column: 37 - end_location: - row: 311 - column: 37 + edits: + - content: "\n return None" + location: + row: 311 + column: 37 + end_location: + row: 311 + column: 37 parent: ~ - kind: name: ImplicitReturn @@ -354,13 +371,14 @@ expression: diagnostics row: 316 column: 21 fix: - content: "\n return None" - location: - row: 316 - column: 24 - end_location: - row: 316 - column: 24 + edits: + - content: "\n return None" + location: + row: 316 + column: 24 + end_location: + row: 316 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -374,12 +392,13 @@ expression: diagnostics row: 321 column: 21 fix: - content: "\n return None" - location: - row: 322 - column: 33 - end_location: - row: 322 - column: 33 + edits: + - content: "\n return None" + location: + row: 322 + column: 33 + end_location: + row: 322 + column: 33 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap index dfd279940a388..d3f0820653515 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryAssign @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 249 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap index bbec7b4db8eb6..b78612a43acdd 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 53 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 64 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 79 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 89 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 99 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap index 17b6268fc28ab..d3e5741be9ec4 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 34 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 45 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 60 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 70 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 80 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap index f873fa9b6251c..7baf47364d699 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 36 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 47 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 63 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 74 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 85 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap index 2922304d9c306..870fcbcab1873 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 33 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 60 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 71 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 82 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap b/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap index 8c4abb26abdec..8ced1949378f1 100644 --- a/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap +++ b/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 34 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 38 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 43 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 59 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 61 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 62 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 63 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 64 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 65 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap index 3f8f7e3c8d52f..1f51d4e3af28a 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "isinstance(a, (int, float))" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 45 + edits: + - content: "isinstance(a, (int, float))" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 53 fix: - content: "isinstance(a, (int, float, bool))" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 53 + edits: + - content: "isinstance(a, (int, float, bool))" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 53 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 7 - column: 3 - end_location: - row: 7 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 7 + column: 3 + end_location: + row: 7 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 13 - column: 3 - end_location: - row: 13 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 13 + column: 3 + end_location: + row: 13 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -114,12 +119,13 @@ expression: diagnostics row: 16 column: 46 fix: - content: "isinstance(a, (int, float))" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 46 + edits: + - content: "isinstance(a, (int, float))" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap index 6ddf06a8ec2e1..847d7bd177a23 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 9 fix: - content: "if a and b:\n c\n" - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "if a and b:\n c\n" + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 13 fix: - content: "if a and b:\n if c:\n d\n" - location: - row: 7 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "if a and b:\n if c:\n d\n" + location: + row: 7 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 9 fix: - content: "elif b and c:\n d\n" - location: - row: 15 - column: 0 - end_location: - row: 18 - column: 0 + edits: + - content: "elif b and c:\n d\n" + location: + row: 15 + column: 0 + end_location: + row: 18 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 22 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollapsibleIf @@ -87,13 +91,14 @@ expression: diagnostics row: 27 column: 9 fix: - content: "if a and b:\n # Fixable due to placement of this comment.\n c\n" - location: - row: 26 - column: 0 - end_location: - row: 30 - column: 0 + edits: + - content: "if a and b:\n # Fixable due to placement of this comment.\n c\n" + location: + row: 26 + column: 0 + end_location: + row: 30 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -107,13 +112,14 @@ expression: diagnostics row: 52 column: 16 fix: - content: " if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 51 - column: 0 - end_location: - row: 64 - column: 0 + edits: + - content: " if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 51 + column: 0 + end_location: + row: 64 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -127,13 +133,14 @@ expression: diagnostics row: 68 column: 12 fix: - content: "if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 67 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 67 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -147,13 +154,14 @@ expression: diagnostics row: 86 column: 10 fix: - content: " if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n )):\n print(\"Bad module!\")\n" - location: - row: 83 - column: 0 - end_location: - row: 88 - column: 0 + edits: + - content: " if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n )):\n print(\"Bad module!\")\n" + location: + row: 83 + column: 0 + end_location: + row: 88 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -167,13 +175,14 @@ expression: diagnostics row: 93 column: 6 fix: - content: "if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n)):\n print(\"Bad module!\")\n" - location: - row: 90 - column: 0 - end_location: - row: 95 - column: 0 + edits: + - content: "if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n)):\n print(\"Bad module!\")\n" + location: + row: 90 + column: 0 + end_location: + row: 95 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -187,12 +196,13 @@ expression: diagnostics row: 118 column: 13 fix: - content: " if b and c:\n print(\"foo\")\n" - location: - row: 117 - column: 0 - end_location: - row: 120 - column: 0 + edits: + - content: " if b and c:\n print(\"foo\")\n" + location: + row: 117 + column: 0 + end_location: + row: 120 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap index a3b45f234c8f1..9d5751d192747 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: return bool(a) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 20 + edits: + - content: return bool(a) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 20 fix: - content: return a == b - location: - row: 11 - column: 4 - end_location: - row: 14 - column: 20 + edits: + - content: return a == b + location: + row: 11 + column: 4 + end_location: + row: 14 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 20 fix: - content: return bool(b) - location: - row: 21 - column: 4 - end_location: - row: 24 - column: 20 + edits: + - content: return bool(b) + location: + row: 21 + column: 4 + end_location: + row: 24 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -74,13 +77,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return bool(b) - location: - row: 32 - column: 8 - end_location: - row: 35 - column: 24 + edits: + - content: return bool(b) + location: + row: 32 + column: 8 + end_location: + row: 35 + column: 24 parent: ~ - kind: name: NeedlessBool @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 60 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NeedlessBool @@ -106,6 +111,7 @@ expression: diagnostics end_location: row: 86 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap index 9d4cbdaea37e8..f5d9ac276b92f 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap index e2b7b3beb90a1..69526ced2777a 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap index 382dad084073a..79173f0dc055a 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 9 fix: - content: b = c if a else d - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 9 + edits: + - content: b = c if a else d + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 9 parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -33,7 +34,8 @@ expression: diagnostics end_location: row: 63 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -47,13 +49,14 @@ expression: diagnostics row: 85 column: 45 fix: - content: b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd - location: - row: 82 - column: 0 - end_location: - row: 85 - column: 45 + edits: + - content: b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd + location: + row: 82 + column: 0 + end_location: + row: 85 + column: 45 parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -66,7 +69,8 @@ expression: diagnostics end_location: row: 100 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 105 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -92,6 +97,7 @@ expression: diagnostics end_location: row: 112 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap index aa33b925aafe4..676286a478827 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 19 fix: - content: "a in (b, c)" - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 19 + edits: + - content: "a in (b, c)" + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 19 parent: ~ - kind: name: CompareWithTuple @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: "a in (b, c)" - location: - row: 6 - column: 4 - end_location: - row: 6 - column: 20 + edits: + - content: "a in (b, c)" + location: + row: 6 + column: 4 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: CompareWithTuple @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 27 fix: - content: "a in (b, c) or None" - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 27 + edits: + - content: "a in (b, c) or None" + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 27 parent: ~ - kind: name: CompareWithTuple @@ -74,12 +77,13 @@ expression: diagnostics row: 14 column: 27 fix: - content: "a in (b, c) or None" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 27 + edits: + - content: "a in (b, c) or None" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap index 684aa45103afa..a40a0591fbb81 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 25 - column: 4 - end_location: - row: 28 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 25 + column: 4 + end_location: + row: 28 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -54,13 +56,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return all(x.is_empty() for x in iterable) - location: - row: 33 - column: 4 - end_location: - row: 36 - column: 15 + edits: + - content: return all(x.is_empty() for x in iterable) + location: + row: 33 + column: 4 + end_location: + row: 36 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -74,13 +77,14 @@ expression: diagnostics row: 59 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 55 - column: 4 - end_location: - row: 59 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 55 + column: 4 + end_location: + row: 59 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -94,13 +98,14 @@ expression: diagnostics row: 68 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 64 - column: 4 - end_location: - row: 68 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 64 + column: 4 + end_location: + row: 68 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -114,13 +119,14 @@ expression: diagnostics row: 77 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 73 - column: 4 - end_location: - row: 77 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 73 + column: 4 + end_location: + row: 77 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 83 - column: 4 - end_location: - row: 87 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 83 + column: 4 + end_location: + row: 87 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -153,7 +160,8 @@ expression: diagnostics end_location: row: 126 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -166,7 +174,8 @@ expression: diagnostics end_location: row: 136 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -180,13 +189,14 @@ expression: diagnostics row: 146 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 144 - column: 4 - end_location: - row: 147 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 144 + column: 4 + end_location: + row: 147 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -200,12 +210,13 @@ expression: diagnostics row: 156 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 154 - column: 4 - end_location: - row: 157 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 154 + column: 4 + end_location: + row: 157 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap index 1123651c15d13..587ff091ac5fd 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 25 - column: 4 - end_location: - row: 28 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 25 + column: 4 + end_location: + row: 28 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -54,13 +56,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return all(x.is_empty() for x in iterable) - location: - row: 33 - column: 4 - end_location: - row: 36 - column: 15 + edits: + - content: return all(x.is_empty() for x in iterable) + location: + row: 33 + column: 4 + end_location: + row: 36 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -74,13 +77,14 @@ expression: diagnostics row: 59 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 55 - column: 4 - end_location: - row: 59 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 55 + column: 4 + end_location: + row: 59 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -94,13 +98,14 @@ expression: diagnostics row: 68 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 64 - column: 4 - end_location: - row: 68 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 64 + column: 4 + end_location: + row: 68 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -114,13 +119,14 @@ expression: diagnostics row: 77 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 73 - column: 4 - end_location: - row: 77 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 73 + column: 4 + end_location: + row: 77 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 83 - column: 4 - end_location: - row: 87 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 83 + column: 4 + end_location: + row: 87 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -153,7 +160,8 @@ expression: diagnostics end_location: row: 126 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -166,7 +174,8 @@ expression: diagnostics end_location: row: 136 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -180,13 +189,14 @@ expression: diagnostics row: 146 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 144 - column: 4 - end_location: - row: 147 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 144 + column: 4 + end_location: + row: 147 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -200,13 +210,14 @@ expression: diagnostics row: 156 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 154 - column: 4 - end_location: - row: 157 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 154 + column: 4 + end_location: + row: 157 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -220,13 +231,14 @@ expression: diagnostics row: 164 column: 24 fix: - content: return all(x in y for x in iterable) - location: - row: 162 - column: 4 - end_location: - row: 165 - column: 15 + edits: + - content: return all(x in y for x in iterable) + location: + row: 162 + column: 4 + end_location: + row: 165 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -240,12 +252,13 @@ expression: diagnostics row: 172 column: 24 fix: - content: return all(x <= y for x in iterable) - location: - row: 170 - column: 4 - end_location: - row: 173 - column: 15 + edits: + - content: return all(x <= y for x in iterable) + location: + row: 170 + column: 4 + end_location: + row: 173 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap index 7d9847a56e37b..107d61483c201 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 16 fix: - content: "'FOO'" - location: - row: 4 - column: 11 - end_location: - row: 4 - column: 16 + edits: + - content: "'FOO'" + location: + row: 4 + column: 11 + end_location: + row: 4 + column: 16 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: "'FOO'" - location: - row: 6 - column: 15 - end_location: - row: 6 - column: 20 + edits: + - content: "'FOO'" + location: + row: 6 + column: 15 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: "'FOO'" - location: - row: 8 - column: 15 - end_location: - row: 8 - column: 20 + edits: + - content: "'FOO'" + location: + row: 8 + column: 15 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 15 fix: - content: "'FOO'" - location: - row: 10 - column: 10 - end_location: - row: 10 - column: 15 + edits: + - content: "'FOO'" + location: + row: 10 + column: 10 + end_location: + row: 10 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap index 3185d28892bc5..024395540ab15 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 36 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 36 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 56 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 65 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap index 682bbc990e5d0..b7122bccd042a 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OpenFileWithContextHandler @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 31 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap index 59a6aa66ef2ad..6a65452e20634 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 48 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 58 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 86 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap index fb6a3e4d08d6a..336801bae8e60 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "with A() as a, B() as b:\n print(\"hello\")\n" - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "with A() as a, B() as b:\n print(\"hello\")\n" + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 17 fix: - content: "with A(), B():\n with C():\n print(\"hello\")\n" - location: - row: 7 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "with A(), B():\n with C():\n print(\"hello\")\n" + location: + row: 7 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleWithStatements @@ -67,13 +70,14 @@ expression: diagnostics row: 20 column: 18 fix: - content: "with A() as a, B() as b:\n # Fixable due to placement of this comment.\n print(\"hello\")\n" - location: - row: 19 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "with A() as a, B() as b:\n # Fixable due to placement of this comment.\n print(\"hello\")\n" + location: + row: 19 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -87,13 +91,14 @@ expression: diagnostics row: 54 column: 22 fix: - content: " with A() as a, B() as b:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 53 - column: 0 - end_location: - row: 66 - column: 0 + edits: + - content: " with A() as a, B() as b:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 53 + column: 0 + end_location: + row: 66 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -107,13 +112,14 @@ expression: diagnostics row: 72 column: 18 fix: - content: "with (\n A() as a,\n B() as b,C() as c\n):\n print(\"hello\")\n" - location: - row: 68 - column: 0 - end_location: - row: 74 - column: 0 + edits: + - content: "with (\n A() as a,\n B() as b,C() as c\n):\n print(\"hello\")\n" + location: + row: 68 + column: 0 + end_location: + row: 74 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -127,13 +133,14 @@ expression: diagnostics row: 80 column: 6 fix: - content: "with (\n A() as a, B() as b,\n C() as c,\n):\n print(\"hello\")\n" - location: - row: 76 - column: 0 - end_location: - row: 82 - column: 0 + edits: + - content: "with (\n A() as a, B() as b,\n C() as c,\n):\n print(\"hello\")\n" + location: + row: 76 + column: 0 + end_location: + row: 82 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -147,12 +154,13 @@ expression: diagnostics row: 91 column: 6 fix: - content: "with (\n A() as a,\n B() as b,C() as c,\n D() as d,\n):\n print(\"hello\")\n" - location: - row: 84 - column: 0 - end_location: - row: 93 - column: 0 + edits: + - content: "with (\n A() as a,\n B() as b,C() as c,\n D() as d,\n):\n print(\"hello\")\n" + location: + row: 84 + column: 0 + end_location: + row: 93 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap index c7029bcbc0de9..794eab0c493f9 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 17 fix: - content: obj - location: - row: 1 - column: 7 - end_location: - row: 1 - column: 17 + edits: + - content: obj + location: + row: 1 + column: 7 + end_location: + row: 1 + column: 17 parent: ~ - kind: name: InDictKeys @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 24 fix: - content: obj - location: - row: 3 - column: 14 - end_location: - row: 3 - column: 24 + edits: + - content: obj + location: + row: 3 + column: 14 + end_location: + row: 3 + column: 24 parent: ~ - kind: name: InDictKeys @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 24 fix: - content: obj - location: - row: 5 - column: 14 - end_location: - row: 5 - column: 24 + edits: + - content: obj + location: + row: 5 + column: 14 + end_location: + row: 5 + column: 24 parent: ~ - kind: name: InDictKeys @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 19 fix: - content: obj - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 19 + edits: + - content: obj + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 19 parent: ~ - kind: name: InDictKeys @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: obj - location: - row: 9 - column: 11 - end_location: - row: 9 - column: 21 + edits: + - content: obj + location: + row: 9 + column: 11 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: InDictKeys @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: obj - location: - row: 16 - column: 12 - end_location: - row: 16 - column: 22 + edits: + - content: obj + location: + row: 16 + column: 12 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: InDictKeys @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 22 fix: - content: obj - location: - row: 18 - column: 12 - end_location: - row: 18 - column: 22 + edits: + - content: obj + location: + row: 18 + column: 12 + end_location: + row: 18 + column: 22 parent: ~ - kind: name: InDictKeys @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 25 fix: - content: obj - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 25 + edits: + - content: obj + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 25 parent: ~ - kind: name: InDictKeys @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 22 fix: - content: obj - location: - row: 22 - column: 12 - end_location: - row: 22 - column: 22 + edits: + - content: obj + location: + row: 22 + column: 12 + end_location: + row: 22 + column: 22 parent: ~ - kind: name: InDictKeys @@ -194,12 +203,13 @@ expression: diagnostics row: 24 column: 25 fix: - content: "(obj or {})" - location: - row: 24 - column: 7 - end_location: - row: 24 - column: 25 + edits: + - content: "(obj or {})" + location: + row: 24 + column: 7 + end_location: + row: 24 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap index 13993db58015a..ffc40d3fa0502 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: a != b - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: a != b + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NegateEqualOp @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: a != b + c - location: - row: 6 - column: 3 - end_location: - row: 6 - column: 19 + edits: + - content: a != b + c + location: + row: 6 + column: 3 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: NegateEqualOp @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 19 fix: - content: a + b != c - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 19 + edits: + - content: a + b != c + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap index 132abb3c5c1ea..ca53b50a65ad7 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: a == b - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: a == b + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NegateNotEqualOp @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: a == b + c - location: - row: 6 - column: 3 - end_location: - row: 6 - column: 19 + edits: + - content: a == b + c + location: + row: 6 + column: 3 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: NegateNotEqualOp @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 19 fix: - content: a + b == c - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 19 + edits: + - content: a + b == c + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap index 6c40fa40f8f8b..d3dc8db76819c 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: a - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: a + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: DoubleNegation @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 21 fix: - content: a == b - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 21 + edits: + - content: a == b + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap index 1dbb45fa2e499..2595c3d73ea8c 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 24 fix: - content: bool(b) - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 24 + edits: + - content: bool(b) + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 24 parent: ~ - kind: name: IfExprWithTrueFalse @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 29 fix: - content: b != c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 29 + edits: + - content: b != c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 29 parent: ~ - kind: name: IfExprWithTrueFalse @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 28 fix: - content: bool(b + c) - location: - row: 5 - column: 4 - end_location: - row: 5 - column: 28 + edits: + - content: bool(b + c) + location: + row: 5 + column: 4 + end_location: + row: 5 + column: 28 parent: ~ - kind: name: IfExprWithTrueFalse @@ -73,6 +76,7 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap index 19e0cb3bc3a8d..076839027c98f 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 24 fix: - content: not b - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 24 + edits: + - content: not b + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 24 parent: ~ - kind: name: IfExprWithFalseTrue @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 29 fix: - content: not b != c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 29 + edits: + - content: not b != c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 29 parent: ~ - kind: name: IfExprWithFalseTrue @@ -54,12 +56,13 @@ expression: diagnostics row: 5 column: 28 fix: - content: not b + c - location: - row: 5 - column: 4 - end_location: - row: 5 - column: 28 + edits: + - content: not b + c + location: + row: 5 + column: 4 + end_location: + row: 5 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap index 3401515663cf1..a3ce0cff029e2 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 21 fix: - content: a if a else b - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 21 + edits: + - content: a if a else b + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 21 parent: ~ - kind: name: IfExprWithTwistedArms @@ -34,12 +35,13 @@ expression: diagnostics row: 3 column: 25 fix: - content: a if a else b + c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 25 + edits: + - content: a if a else b + c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap index f239a4139a98c..2286c43d50427 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: "False" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: "False" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: ExprAndNotExpr @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "False" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 15 + edits: + - content: "False" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 15 parent: ~ - kind: name: ExprAndNotExpr @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 15 fix: - content: "False" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 15 + edits: + - content: "False" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap index acf65022e6ad4..52fe0d4a8cb4f 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 13 fix: - content: "True" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 13 + edits: + - content: "True" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 13 parent: ~ - kind: name: ExprOrNotExpr @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: "True" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 14 + edits: + - content: "True" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: ExprOrNotExpr @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 14 fix: - content: "True" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 14 + edits: + - content: "True" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap index 10949848004a3..df4f601a9ad92 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 12 fix: - content: "True" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 12 + edits: + - content: "True" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 12 parent: ~ - kind: name: ExprOrTrue @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "True" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 19 + edits: + - content: "True" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: ExprOrTrue @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 18 fix: - content: "True" - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 18 + edits: + - content: "True" + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 18 parent: ~ - kind: name: ExprOrTrue @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 31 fix: - content: "True" - location: - row: 24 - column: 15 - end_location: - row: 24 - column: 31 + edits: + - content: "True" + location: + row: 24 + column: 15 + end_location: + row: 24 + column: 31 parent: ~ - kind: name: ExprOrTrue @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 31 fix: - content: "True" - location: - row: 27 - column: 3 - end_location: - row: 27 - column: 31 + edits: + - content: "True" + location: + row: 27 + column: 3 + end_location: + row: 27 + column: 31 parent: ~ - kind: name: ExprOrTrue @@ -114,12 +119,13 @@ expression: diagnostics row: 30 column: 31 fix: - content: "True" - location: - row: 30 - column: 3 - end_location: - row: 30 - column: 31 + edits: + - content: "True" + location: + row: 30 + column: 3 + end_location: + row: 30 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap index 182d25f84aa62..987539f19d7e0 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: "False" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: "False" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: ExprAndFalse @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 21 fix: - content: "False" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 21 + edits: + - content: "False" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 21 parent: ~ - kind: name: ExprAndFalse @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 20 fix: - content: "False" - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 20 + edits: + - content: "False" + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 20 parent: ~ - kind: name: ExprAndFalse @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 36 fix: - content: "False" - location: - row: 19 - column: 17 - end_location: - row: 19 - column: 36 + edits: + - content: "False" + location: + row: 19 + column: 17 + end_location: + row: 19 + column: 36 parent: ~ - kind: name: ExprAndFalse @@ -94,13 +98,14 @@ expression: diagnostics row: 22 column: 36 fix: - content: "False" - location: - row: 22 - column: 3 - end_location: - row: 22 - column: 36 + edits: + - content: "False" + location: + row: 22 + column: 3 + end_location: + row: 22 + column: 36 parent: ~ - kind: name: ExprAndFalse @@ -114,12 +119,13 @@ expression: diagnostics row: 25 column: 36 fix: - content: "False" - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 36 + edits: + - content: "False" + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap index 81a8433038001..27aa0dd4e56c1 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "compare == \"yoda\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 17 + edits: + - content: "compare == \"yoda\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 17 parent: ~ - kind: name: YodaConditions @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 17 fix: - content: "compare == \"yoda\"" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 17 + edits: + - content: "compare == \"yoda\"" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 17 parent: ~ - kind: name: YodaConditions @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: age == 42 - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 9 + edits: + - content: age == 42 + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: YodaConditions @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 21 fix: - content: "compare == (\"a\", \"b\")" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 21 + edits: + - content: "compare == (\"a\", \"b\")" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 21 parent: ~ - kind: name: YodaConditions @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 17 fix: - content: "compare >= \"yoda\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 17 + edits: + - content: "compare >= \"yoda\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 17 parent: ~ - kind: name: YodaConditions @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 16 fix: - content: "compare > \"yoda\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 16 + edits: + - content: "compare > \"yoda\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 16 parent: ~ - kind: name: YodaConditions @@ -134,13 +140,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: age < 42 - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 8 + edits: + - content: age < 42 + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: YodaConditions @@ -154,13 +161,14 @@ expression: diagnostics row: 9 column: 9 fix: - content: age < -42 - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 9 + edits: + - content: age < -42 + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 9 parent: ~ - kind: name: YodaConditions @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: age < +42 - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 9 + edits: + - content: age < +42 + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: YodaConditions @@ -194,13 +203,14 @@ expression: diagnostics row: 11 column: 11 fix: - content: age == YODA - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 11 + edits: + - content: age == YODA + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 11 parent: ~ - kind: name: YodaConditions @@ -214,13 +224,14 @@ expression: diagnostics row: 12 column: 10 fix: - content: age < YODA - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 10 + edits: + - content: age < YODA + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 10 parent: ~ - kind: name: YodaConditions @@ -234,13 +245,14 @@ expression: diagnostics row: 13 column: 11 fix: - content: age <= YODA - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 11 + edits: + - content: age <= YODA + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 11 parent: ~ - kind: name: YodaConditions @@ -254,13 +266,14 @@ expression: diagnostics row: 14 column: 21 fix: - content: age == JediOrder.YODA - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 21 + edits: + - content: age == JediOrder.YODA + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 21 parent: ~ - kind: name: YodaConditions @@ -274,13 +287,14 @@ expression: diagnostics row: 15 column: 18 fix: - content: (number - 100) > 0 - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 18 + edits: + - content: (number - 100) > 0 + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 18 parent: ~ - kind: name: YodaConditions @@ -294,12 +308,13 @@ expression: diagnostics row: 16 column: 52 fix: - content: (60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE - location: - row: 16 - column: 0 - end_location: - row: 16 - column: 52 + edits: + - content: (60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE + location: + row: 16 + column: 0 + end_location: + row: 16 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap index a45d24262534e..55eba391ffae8 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 20 fix: - content: "var = a_dict.get(key, \"default1\")" - location: - row: 6 - column: 0 - end_location: - row: 9 - column: 20 + edits: + - content: "var = a_dict.get(key, \"default1\")" + location: + row: 6 + column: 0 + end_location: + row: 9 + column: 20 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -34,13 +35,14 @@ expression: diagnostics row: 15 column: 21 fix: - content: "var = a_dict.get(key, \"default2\")" - location: - row: 12 - column: 0 - end_location: - row: 15 - column: 21 + edits: + - content: "var = a_dict.get(key, \"default2\")" + location: + row: 12 + column: 0 + end_location: + row: 15 + column: 21 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -54,13 +56,14 @@ expression: diagnostics row: 27 column: 19 fix: - content: "var = a_dict.get(keys[idx], \"default\")" - location: - row: 24 - column: 0 - end_location: - row: 27 - column: 19 + edits: + - content: "var = a_dict.get(keys[idx], \"default\")" + location: + row: 24 + column: 0 + end_location: + row: 27 + column: 19 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -74,13 +77,14 @@ expression: diagnostics row: 33 column: 19 fix: - content: "var = dicts[idx].get(key, \"default\")" - location: - row: 30 - column: 0 - end_location: - row: 33 - column: 19 + edits: + - content: "var = dicts[idx].get(key, \"default\")" + location: + row: 30 + column: 0 + end_location: + row: 33 + column: 19 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -94,12 +98,13 @@ expression: diagnostics row: 39 column: 25 fix: - content: "vars[idx] = a_dict.get(key, \"default\")" - location: - row: 36 - column: 0 - end_location: - row: 39 - column: 25 + edits: + - content: "vars[idx] = a_dict.get(key, \"default\")" + location: + row: 36 + column: 0 + end_location: + row: 39 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap index 5880eccea6830..8f8e1d7621911 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 22 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 27 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 29 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 33 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap index 398d7fb0a03a6..74c13e6b1da01 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 16 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 21 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 22 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 23 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 24 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 25 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 26 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 27 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -221,6 +237,7 @@ expression: diagnostics end_location: row: 28 column: 62 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap index c8173563141c7..1f1321e6f9466 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 21 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 25 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 27 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 28 column: 62 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap index 868124bf766e8..0b208b812ed51 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -27,13 +28,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -47,13 +49,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -67,13 +70,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -87,13 +91,14 @@ expression: diagnostics row: 7 column: 28 fix: - content: from my_package.sublib.server import example - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 28 + edits: + - content: from my_package.sublib.server import example + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 28 parent: ~ - kind: name: RelativeImports @@ -107,12 +112,13 @@ expression: diagnostics row: 8 column: 21 fix: - content: from my_package.sublib import server - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 21 + edits: + - content: from my_package.sublib import server + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap index 878759b61ddba..4c6f506803198 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 9 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 9 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 8 fix: - content: "" - location: - row: 10 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "" + location: + row: 10 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 16 column: 12 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 12 fix: - content: "" - location: - row: 21 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "" + location: + row: 21 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap index aba8f65b1b1a5..0b3fc16c2781e 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap index 307476d0d9c52..4d91db02fb4b6 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap index 0dfb363fd0fd6..a71a830108d35 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap index d009a67ad7deb..547d59cb90147 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap index 34456223b4e9c..e844ea1d66802 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap index 17075ce3eb101..e5ea5576aa6f9 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap index 86762da70f014..2acf36e0355ab 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 4 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap index b7ab69ac2241a..94f69a4cd09f5 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap index a559c4d5fa4a4..cbc65d31d5d7b 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap index ffff6d8db94c1..70a0c332e0bbb 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap index 0851e7d6b5609..4242e565ac6fc 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 24 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 32 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 51 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap index 741a9def50c1b..95be55c3ff7b7 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 20 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap index ac3db1ea80822..453734413783b 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap index cd98cae8e145d..ab8e72c1c4aeb 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap index ef65e746bd3b8..7d2956dc20799 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap index 0384b0d2d7cea..08e60a76635c6 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 35 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 41 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 47 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap index 4ce589f1e6f71..6985e900787c6 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap index 10d5bf0a8bcdc..5551bb35bf5ff 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap index c2e9668c68e5b..8bcb99af8e83f 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 51 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap index 218dbd1b3b2a5..4433fb9233cbe 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 21 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap index 1ea9777e08fd4..05816d60fbe45 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 35 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 190 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap index eadbaeaad7bae..96075842ad9ec 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 45 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap index 1eea3ea6e4ced..78eadc12b049a 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 49 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedStaticMethodArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 49 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedStaticMethodArgument @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 53 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap index afd9bf361761d..d795017088bcf 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 28 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap index 703553a4ace5b..045f6d00c0288 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 13 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 13 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap index 3f6885aad0888..1abfd373c9b7e 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 13 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap index 539bfe428418c..2d0f3cde74908 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap index 9f887cff404cb..cce144ebaa31c 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap index 0f472abf8f42e..93ffcd688eafd 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 15 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 16 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 18 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 19 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 20 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 21 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 23 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 28 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 29 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 31 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -338,6 +363,7 @@ expression: diagnostics end_location: row: 32 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap index 53ffbb4d75174..6313259df83ec 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 14 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 15 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 16 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 17 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 19 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 20 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 21 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 28 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap index 51d1698e324d3..c1111f5cfcc2c 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 12 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 16 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 17 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 18 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 19 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 20 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 21 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 22 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 24 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 26 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 27 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 28 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 29 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 30 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 31 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 33 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap index 27a7f29dc4f1f..dce97d04b185b 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 24 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 30 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 31 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 32 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 33 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 34 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 35 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap index a1b39e4471397..f590626255667 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 0 fix: - content: "import os\n\n# This is a comment in the same section, so we need to add one newline.\nimport sys\n\nimport numpy as np\n\n# This is a comment, but it starts a new section, so we don't need to add a newline\n# before it.\nimport leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 8 - column: 0 + edits: + - content: "import os\n\n# This is a comment in the same section, so we need to add one newline.\nimport sys\n\nimport numpy as np\n\n# This is a comment, but it starts a new section, so we don't need to add a newline\n# before it.\nimport leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 8 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap index f4353cf772444..a770a696c332a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 16 column: 0 fix: - content: "from bar import ( # Comment on `bar`\n Member, # Comment on `Member`\n)\nfrom baz import Member as Alias # Comment on `Alias` # Comment on `baz`\nfrom bop import Member # Comment on `Member` # Comment on `bop`\nfrom foo import ( # Comment on `foo`\n Member as Alias, # Comment on `Alias`\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "from bar import ( # Comment on `bar`\n Member, # Comment on `Member`\n)\nfrom baz import Member as Alias # Comment on `Alias` # Comment on `baz`\nfrom bop import Member # Comment on `Member` # Comment on `bop`\nfrom foo import ( # Comment on `foo`\n Member as Alias, # Comment on `Alias`\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap index 98464f291b8fc..0a99a98a6ecd1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from . import c\nfrom .. import b\nfrom ... import a\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from . import c\nfrom .. import b\nfrom ... import a\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap index f1caf4b9833db..bedce6687af1c 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from module import CONSTANT, function\nfrom module import Class as C\nfrom module import function as f\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from module import CONSTANT, function\nfrom module import Class as C\nfrom module import function as f\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap index 4dc45aee49c71..4f49b148741ea 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from module import CONSTANT, Class as C, function, function as f\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from module import CONSTANT, Class as C, function, function as f\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap index e13ed1c74b507..8c725f32167f4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "from collections import (\n AsyncIterable,\n Awaitable,\n ChainMap,\n Collection,\n MutableMapping,\n MutableSequence,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "from collections import (\n AsyncIterable,\n Awaitable,\n ChainMap,\n Collection,\n MutableMapping,\n MutableSequence,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap index 6a5287e9869ae..3939bf238013e 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: MissingRequiredImport @@ -34,12 +35,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import generator_stop" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import generator_stop" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap index 39308e98063f3..9063cb2c88cf5 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 0 fix: - content: "import B # Comment 4\n\n# Comment 3a\n# Comment 3b\nimport C\nimport D\n\n# Comment 5\n# Comment 6\nfrom A import (\n a, # Comment 7 # Comment 9\n b, # Comment 10\n c, # Comment 8 # Comment 11\n)\nfrom D import (\n a_long_name_to_force_multiple_lines, # Comment 12\n another_long_name_to_force_multiple_lines, # Comment 13\n)\nfrom E import a # Comment 1\nfrom F import (\n a, # Comment 1\n b,\n)\n" - location: - row: 3 - column: 0 - end_location: - row: 34 - column: 0 + edits: + - content: "import B # Comment 4\n\n# Comment 3a\n# Comment 3b\nimport C\nimport D\n\n# Comment 5\n# Comment 6\nfrom A import (\n a, # Comment 7 # Comment 9\n b, # Comment 10\n c, # Comment 8 # Comment 11\n)\nfrom D import (\n a_long_name_to_force_multiple_lines, # Comment 12\n another_long_name_to_force_multiple_lines, # Comment 13\n)\nfrom E import a # Comment 1\nfrom F import (\n a, # Comment 1\n b,\n)\n" + location: + row: 3 + column: 0 + end_location: + row: 34 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap index 852b7f6a85ce5..d877604ca5785 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import os\nimport os as os1\nimport os as os2\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import os\nimport os as os1\nimport os as os2\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap index a541b88fd53b0..979154e2c5edb 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 15 column: 0 fix: - content: " from line_with_88 import aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n from line_with_89 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_90 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_91 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_92 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_93 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n" - location: - row: 7 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: " from line_with_88 import aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n from line_with_89 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_90 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_91 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_92 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_93 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n" + location: + row: 7 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap index 1bc356bea0029..5f913aba25b29 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import a\n\n# Don't take this comment into account when determining whether the next import can fit on one line.\nfrom b import c\nfrom d import (\n e, # Do take this comment into account when determining whether the next import can fit on one line.\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import a\n\n# Don't take this comment into account when determining whether the next import can fit on one line.\nfrom b import c\nfrom d import (\n e, # Do take this comment into account when determining whether the next import can fit on one line.\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap index d846e63bbadc9..18cdca23d3d93 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 25 column: 0 fix: - content: "import math\nimport sys\nfrom json import detect_encoding\nfrom json import dump\nfrom json import dumps as json_dumps\nfrom json import load\nfrom json import loads as json_loads\nfrom logging.handlers import FileHandler, StreamHandler\nfrom os import path, uname\n\n# comment 6\nfrom bar import a # comment 7\nfrom bar import b # comment 8\nfrom foo import bar # comment 3\nfrom foo2 import bar2 # comment 4\nfrom foo3 import bar3 # comment 5\nfrom foo3 import baz3 # comment 5\n\n# comment 1\n# comment 2\nfrom third_party import lib1\nfrom third_party import lib2\nfrom third_party import lib3\nfrom third_party import lib4\nfrom third_party import lib5\nfrom third_party import lib6\nfrom third_party import lib7\n" - location: - row: 1 - column: 0 - end_location: - row: 25 - column: 0 + edits: + - content: "import math\nimport sys\nfrom json import detect_encoding\nfrom json import dump\nfrom json import dumps as json_dumps\nfrom json import load\nfrom json import loads as json_loads\nfrom logging.handlers import FileHandler, StreamHandler\nfrom os import path, uname\n\n# comment 6\nfrom bar import a # comment 7\nfrom bar import b # comment 8\nfrom foo import bar # comment 3\nfrom foo2 import bar2 # comment 4\nfrom foo3 import bar3 # comment 5\nfrom foo3 import baz3 # comment 5\n\n# comment 1\n# comment 2\nfrom third_party import lib1\nfrom third_party import lib2\nfrom third_party import lib3\nfrom third_party import lib4\nfrom third_party import lib5\nfrom third_party import lib6\nfrom third_party import lib7\n" + location: + row: 1 + column: 0 + end_location: + row: 25 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap index b0242e3d44232..a82eab4d96cd6 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 14 column: 0 fix: - content: "import a # import\nimport b as b1 # import_as\nimport c.d\nimport z\nfrom a import a1 # import_from\nfrom c import * # import_from_star\nfrom z import z1\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" - location: - row: 1 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "import a # import\nimport b as b1 # import_as\nimport c.d\nimport z\nfrom a import a1 # import_from\nfrom c import * # import_from_star\nfrom z import z1\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" + location: + row: 1 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap index 057676a9519f7..99ad16981e892 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 14 column: 0 fix: - content: "import z\nfrom z import z1\nimport a # import\nfrom a import a1 # import_from\nimport b as b1 # import_as\nfrom c import * # import_from_star\nimport c.d\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" - location: - row: 1 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "import z\nfrom z import z1\nimport a # import\nfrom a import a1 # import_from\nimport b as b1 # import_as\nfrom c import * # import_from_star\nimport c.d\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" + location: + row: 1 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap index b2b2f90eef5f5..691cfa0aa9400 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 24 column: 0 fix: - content: "import foo\nimport lib1\nimport lib2\nimport lib3\nimport lib3.lib4\nimport lib3.lib4.lib5\nimport lib4\nimport lib5\nimport lib6\nimport z\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1 import foo\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\nfrom lib5 import lib1, lib2\n" - location: - row: 1 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "import foo\nimport lib1\nimport lib2\nimport lib3\nimport lib3.lib4\nimport lib3.lib4.lib5\nimport lib4\nimport lib5\nimport lib6\nimport z\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1 import foo\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\nfrom lib5 import lib1, lib2\n" + location: + row: 1 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap index 4d72a109e9af7..c466034f593f1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 24 column: 0 fix: - content: "import lib1\nimport lib3\nimport lib3.lib4\nimport lib5\nimport z\nimport foo\nimport lib2\nimport lib3.lib4.lib5\nimport lib4\nimport lib6\nfrom lib1 import foo\nfrom lib3.lib4 import foo\nfrom lib5 import lib1, lib2\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\n" - location: - row: 1 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "import lib1\nimport lib3\nimport lib3.lib4\nimport lib5\nimport z\nimport foo\nimport lib2\nimport lib3.lib4.lib5\nimport lib4\nimport lib6\nfrom lib1 import foo\nfrom lib3.lib4 import foo\nfrom lib5 import lib1, lib2\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\n" + location: + row: 1 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap index 4f03dec774f06..01727586035e1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .a import a1 as a1\nfrom .a import a2 as a2\nfrom .b import b1 as b1\nfrom .c import c1\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .a import a1 as a1\nfrom .a import a2 as a2\nfrom .b import b1 as b1\nfrom .c import c1\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap index dd5abaf5b3fe5..1b30971c06852 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .a import (\n a1 as a1,\n a2 as a2,\n)\nfrom .b import b1 as b1\nfrom .c import c1\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .a import (\n a1 as a1,\n a2 as a2,\n)\nfrom .b import b1 as b1\nfrom .c import c1\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap index 38b34ae88688b..17806e4c97537 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 9 column: 0 fix: - content: "from office_helper.assistants import entity_registry as er\nfrom office_helper.core import CoreState\n\nimport tests.common.foo as tcf\nfrom tests.common import async_mock_service\n\nfrom experiments.starry import *\nfrom experiments.weird import varieties\n" - location: - row: 3 - column: 0 - end_location: - row: 9 - column: 0 + edits: + - content: "from office_helper.assistants import entity_registry as er\nfrom office_helper.core import CoreState\n\nimport tests.common.foo as tcf\nfrom tests.common import async_mock_service\n\nfrom experiments.starry import *\nfrom experiments.weird import varieties\n" + location: + row: 3 + column: 0 + end_location: + row: 9 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap index 98bc17023569e..4d12f1bdc622b 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import os\nfrom collections import Collection\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import os\nfrom collections import Collection\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap index 154c67dc3bce6..8054eb66a82d4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 12 column: 0 fix: - content: "from a.prometheus.metrics import ( # type:ignore[attr-defined]\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\nfrom b.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom c.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom d.prometheus.metrics import ( # type:ignore[attr-defined]\n OTHER_RUNNING_TOTAL,\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "from a.prometheus.metrics import ( # type:ignore[attr-defined]\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\nfrom b.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom c.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom d.prometheus.metrics import ( # type:ignore[attr-defined]\n OTHER_RUNNING_TOTAL,\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap index a1a964fc7dcf1..c95dd9bef07c0 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import a\nimport b\n\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import a\nimport b\n\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\n\n" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\n\n" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -74,12 +77,13 @@ expression: diagnostics row: 54 column: 0 fix: - content: "import os\n\n\n" - location: - row: 52 - column: 0 - end_location: - row: 54 - column: 0 + edits: + - content: "import os\n\n\n" + location: + row: 52 + column: 0 + end_location: + row: 54 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap index a327a66c49fde..0210699f53d10 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import a\nimport b\n\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import a\nimport b\n\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -54,12 +56,13 @@ expression: diagnostics row: 16 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap index 7a9ac9f80157b..c8584b0f7c955 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport leading_prefix\n\nimport ruff\nfrom . import leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport leading_prefix\n\nimport ruff\nfrom . import leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap index 27d02ea78c679..4d10794228d33 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap index 6e6ef0d25a593..f4aa76e0e380d 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap index 1498413113f1f..6882f9ff025e6 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 21 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" - location: - row: 1 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" + location: + row: 1 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap index 0404d02bcedcf..ec3bdc6cced92 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap index fea0aaedc4dcb..7995e464e064d 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 0 fix: - content: "from __future__ import annotations\n\nimport datetime\nimport json\n\n\nfrom binascii import hexlify\n\nimport requests\n\n\nfrom loguru import Logger\nfrom sanic import Sanic\n\nfrom . import config\nfrom .data import Data\n" - location: - row: 1 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "from __future__ import annotations\n\nimport datetime\nimport json\n\n\nfrom binascii import hexlify\n\nimport requests\n\n\nfrom loguru import Logger\nfrom sanic import Sanic\n\nfrom . import config\nfrom .data import Data\n" + location: + row: 1 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap index aca8152f77e70..1b9bc4b8cb99d 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 39 column: 0 fix: - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import (\n argv,\n exit,\n stderr,\n stdout,\n)\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import (\n member1,\n member2,\n member3,\n)\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import (\n member1,\n member2,\n member3,\n)\n" - location: - row: 2 - column: 0 - end_location: - row: 39 - column: 0 + edits: + - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import (\n argv,\n exit,\n stderr,\n stdout,\n)\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import (\n member1,\n member2,\n member3,\n)\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import (\n member1,\n member2,\n member3,\n)\n" + location: + row: 2 + column: 0 + end_location: + row: 39 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap index d33c2710f6138..72861a0739cd4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 0 fix: - content: "import numpy1\nimport numpy2\nimport numpy10\nfrom numpy import (\n cos,\n int8,\n int16,\n int32,\n int64,\n sin,\n tan,\n uint8,\n uint16,\n uint32,\n uint64,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "import numpy1\nimport numpy2\nimport numpy10\nfrom numpy import (\n cos,\n int8,\n int16,\n int32,\n int64,\n sin,\n tan,\n uint8,\n uint16,\n uint32,\n uint64,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap index 0404d02bcedcf..ec3bdc6cced92 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap index 77417890bdc6f..ce920262bcbc0 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\nfrom typing import Any\nfrom my_first_party import my_first_party_object\nfrom requests import Session\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\nfrom typing import Any\nfrom my_first_party import my_first_party_object\nfrom requests import Session\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap index 30a906989062e..f781a912840eb 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from __future__ import annotations\nfrom typing import Any\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from __future__ import annotations\nfrom typing import Any\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap index a7b4c8bb227ef..12caf31e52e40 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 0 fix: - content: "from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore\n" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore\n" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap index 1cf89cf57098d..8ddda904c1c97 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 13 column: 0 fix: - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, STDOUT, Popen\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import BASIC, CONSTANT, Apple, Class, function\n" - location: - row: 1 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, STDOUT, Popen\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import BASIC, CONSTANT, Apple, Class, function\n" + location: + row: 1 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap index abd8a9e191530..6718bb7915ce5 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 13 column: 0 fix: - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, Popen, STDOUT\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import Apple, BASIC, Class, CONSTANT, function\n" - location: - row: 1 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, Popen, STDOUT\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import Apple, BASIC, Class, CONSTANT, function\n" + location: + row: 1 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap index 0cd678ee64d3a..cebc0e3c133d4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from subprocess import N_CLASS, PIPE, STDOUT, Popen\n\nfrom module import BASIC, CLASS, CONSTANT, Apple, Class, function\nfrom sklearn.svm import CONST, SVC, Klass, func\nfrom torch.nn import A_CONSTANT, SELU, AClass\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from subprocess import N_CLASS, PIPE, STDOUT, Popen\n\nfrom module import BASIC, CLASS, CONSTANT, Apple, Class, function\nfrom sklearn.svm import CONST, SVC, Klass, func\nfrom torch.nn import A_CONSTANT, SELU, AClass\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap index b3d0b144d5cdd..a3908a043257b 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from subprocess import PIPE, STDOUT, N_CLASS, Popen\n\nfrom module import BASIC, CONSTANT, Apple, CLASS, Class, function\nfrom sklearn.svm import CONST, Klass, SVC, func\nfrom torch.nn import A_CONSTANT, AClass, SELU\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from subprocess import PIPE, STDOUT, N_CLASS, Popen\n\nfrom module import BASIC, CONSTANT, Apple, CLASS, Class, function\nfrom sklearn.svm import CONST, Klass, SVC, func\nfrom torch.nn import A_CONSTANT, AClass, SELU\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap index 6175ce33329fc..39d26e58a4560 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import STDOUT, A_constant, Class, First, Last, func, konst, var\n\nfrom sklearn.svm import XYZ, Const, Klass, constant, func, variable\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import STDOUT, A_constant, Class, First, Last, func, konst, var\n\nfrom sklearn.svm import XYZ, Const, Klass, constant, func, variable\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap index 40c754134e9f4..994a1a8781325 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import A_constant, First, konst, Last, STDOUT, Class, func, var\n\nfrom sklearn.svm import Const, constant, XYZ, Klass, func, variable\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import A_constant, First, konst, Last, STDOUT, Class, func, var\n\nfrom sklearn.svm import Const, constant, XYZ, Klass, func, variable\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap index c10a7709413f6..e21447e032edd 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import CONSTANT, Klass, Variable, exe, utils, var_ABC\n\nfrom sklearn.svm import CONST, VAR, Class, MyVar, abc\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import CONSTANT, Klass, Variable, exe, utils, var_ABC\n\nfrom sklearn.svm import CONST, VAR, Class, MyVar, abc\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap index d2648d75c7df4..1554fde3e8080 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import CONSTANT, Klass, exe, utils, var_ABC, Variable\n\nfrom sklearn.svm import CONST, Class, abc, MyVar, VAR\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import CONSTANT, Klass, exe, utils, var_ABC, Variable\n\nfrom sklearn.svm import CONST, Class, abc, MyVar, VAR\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap index aab70a9a82e27..788096196ca1f 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from ..a import a\nfrom ..b import a\nfrom .a import a\nfrom .b import a\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from ..a import a\nfrom ..b import a\nfrom .a import a\nfrom .b import a\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap index e0f1dc9635a19..ba190c656e2d4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 12 column: 0 fix: - content: "import abc\nimport io\n\n# Old MacDonald had a farm,\n# EIEIO\n# And on his farm he had a cow,\n# EIEIO\n# With a moo-moo here and a moo-moo there\n# Here a moo, there a moo, everywhere moo-moo\n# Old MacDonald had a farm,\n# EIEIO\nfrom errno import EIO\n" - location: - row: 1 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "import abc\nimport io\n\n# Old MacDonald had a farm,\n# EIEIO\n# And on his farm he had a cow,\n# EIEIO\n# With a moo-moo here and a moo-moo there\n# Here a moo, there a moo, everywhere moo-moo\n# Old MacDonald had a farm,\n# EIEIO\nfrom errno import EIO\n" + location: + row: 1 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap index 6b5939cb1eebe..5d40280359c96 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 7 column: 0 fix: - content: "# Above\nfrom some_module import * # Aside\n\n# Above\nfrom some_module import some_class # Aside\nfrom some_other_module import *\nfrom some_other_module import some_class\n" - location: - row: 1 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "# Above\nfrom some_module import * # Aside\n\n# Above\nfrom some_module import some_class # Aside\nfrom some_other_module import *\nfrom some_other_module import some_class\n" + location: + row: 1 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap index 029088a601af9..3f3012dc9d142 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 0 fix: - content: " import os\n import sys\n" - location: - row: 2 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: " import os\n import sys\n" + location: + row: 2 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,12 +35,13 @@ expression: diagnostics row: 7 column: 0 fix: - content: " import os\n import sys\n" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: " import os\n import sys\n" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap index b74879c500dad..25fb1c529e787 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import os\nimport sys\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import os\nimport sys\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap index fe04b11b2d6d9..ec50107c104f2 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap index 96d0fd49d8537..70ff9a5c994a5 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 3 - column: 3 - end_location: - row: 3 - column: 3 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 3 + column: 3 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap index 6a5287e9869ae..3939bf238013e 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: MissingRequiredImport @@ -34,12 +35,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import generator_stop" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import generator_stop" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap index f1ba2170cef0c..7c541f58ae013 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport numpy as np\n\nimport leading_prefix\nfrom leading_prefix import Class\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport numpy as np\n\nimport leading_prefix\nfrom leading_prefix import Class\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap index 3a80b84e273d3..d35ddfbd0479f 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from __future__ import annotations\n\nimport os\nimport sys\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from __future__ import annotations\n\nimport os\nimport sys\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap index fcaae105385de..5d139e0ad5d37 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport ruff\n\nimport leading_prefix\n\nfrom . import leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport ruff\n\nimport leading_prefix\n\nfrom . import leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap index 46f078ffe12b7..352b464e3a2d1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import os\nimport sys\n\nimport numpy as np\nimport pandas as pd\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport numpy as np\nimport pandas as pd\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap index 98ba47763bc6f..db8160e0028e4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 22 column: 0 fix: - content: " import abc\n import collections\n" - location: - row: 20 - column: 0 - end_location: - row: 22 - column: 0 + edits: + - content: " import abc\n import collections\n" + location: + row: 20 + column: 0 + end_location: + row: 22 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,12 +35,13 @@ expression: diagnostics row: 29 column: 0 fix: - content: " import abc\n import collections\n" - location: - row: 27 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: " import abc\n import collections\n" + location: + row: 27 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap index b41a82c0414f1..9c830de83f2c2 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 27 column: 0 fix: - content: "import A\nimport a\nimport B\nimport b\nimport x\nimport x as A\nimport x as Y\nimport x as a\nimport x as y\nfrom a import BAD as DEF\nfrom a import B, b\nfrom a import B as A\nfrom a import B as Abc\nfrom a import B as DEF\nfrom a import Boo as DEF\nfrom a import b as a\nfrom a import b as c\nfrom a import b as d\nfrom a import b as x\nfrom a import b as y\nfrom b import C, c\nfrom b import c as d\n" - location: - row: 1 - column: 0 - end_location: - row: 27 - column: 0 + edits: + - content: "import A\nimport a\nimport B\nimport b\nimport x\nimport x as A\nimport x as Y\nimport x as a\nimport x as y\nfrom a import BAD as DEF\nfrom a import B, b\nfrom a import B as A\nfrom a import B as Abc\nfrom a import B as DEF\nfrom a import Boo as DEF\nfrom a import b as a\nfrom a import b as c\nfrom a import b as d\nfrom a import b as x\nfrom a import b as y\nfrom b import C, c\nfrom b import c as d\n" + location: + row: 1 + column: 0 + end_location: + row: 27 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap index c5ea1a0b6f8ec..c0856c709d943 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 39 column: 0 fix: - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import argv, exit, stderr, stdout\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import member1, member2, member3\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import member1, member2, member3\n" - location: - row: 2 - column: 0 - end_location: - row: 39 - column: 0 + edits: + - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import argv, exit, stderr, stdout\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import member1, member2, member3\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import member1, member2, member3\n" + location: + row: 2 + column: 0 + end_location: + row: 39 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap index b431fa88aa9dc..86392c6985c68 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .logging import config_logging\nfrom .settings import *\nfrom .settings import ENV\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .logging import config_logging\nfrom .settings import *\nfrom .settings import ENV\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap index b6da84cc16473..2dd53274525e7 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nimport os" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nimport os" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap index 23615f0bf6e24..eb4bd65a8c8b5 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap index 9a1351878d41f..27876b80e31f6 100644 --- a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap +++ b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 46 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 54 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 62 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 63 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 64 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 73 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 85 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 96 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 107 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 118 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 121 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 126 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 129 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 132 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -286,6 +307,7 @@ expression: diagnostics end_location: row: 135 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap index 5bcea57845be2..a59e600c5ed82 100644 --- a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap +++ b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 73 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap index 4252601d2fc19..4cde67e62762a 100644 --- a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap +++ b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 8 fix: - content: bool - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 8 + edits: + - content: bool + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 8 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 7 fix: - content: int - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 7 + edits: + - content: int + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 7 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: object - location: - row: 9 - column: 12 - end_location: - row: 9 - column: 21 + edits: + - content: object + location: + row: 9 + column: 12 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 12 column: 77 fix: - content: int - location: - row: 12 - column: 71 - end_location: - row: 12 - column: 77 + edits: + - content: int + location: + row: 12 + column: 71 + end_location: + row: 12 + column: 77 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 86 fix: - content: int - location: - row: 12 - column: 79 - end_location: - row: 12 - column: 86 + edits: + - content: int + location: + row: 12 + column: 79 + end_location: + row: 12 + column: 86 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 22 fix: - content: object - location: - row: 17 - column: 10 - end_location: - row: 17 - column: 22 + edits: + - content: object + location: + row: 17 + column: 10 + end_location: + row: 17 + column: 22 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -134,12 +140,13 @@ expression: diagnostics row: 20 column: 21 fix: - content: int - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 21 + edits: + - content: int + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap index 02dce193cf3fb..3ca6852f0841b 100644 --- a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap +++ b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 30 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 31 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 32 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 33 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 34 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 35 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 37 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 38 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 39 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 40 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 41 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 42 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 43 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 44 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 45 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 46 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 47 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 48 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 49 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 50 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -507,7 +545,8 @@ expression: diagnostics end_location: row: 51 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -520,7 +559,8 @@ expression: diagnostics end_location: row: 52 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -533,7 +573,8 @@ expression: diagnostics end_location: row: 53 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -546,7 +587,8 @@ expression: diagnostics end_location: row: 54 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -559,7 +601,8 @@ expression: diagnostics end_location: row: 55 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -572,7 +615,8 @@ expression: diagnostics end_location: row: 56 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -585,7 +629,8 @@ expression: diagnostics end_location: row: 57 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -598,7 +643,8 @@ expression: diagnostics end_location: row: 58 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -611,7 +657,8 @@ expression: diagnostics end_location: row: 59 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -624,7 +671,8 @@ expression: diagnostics end_location: row: 60 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -637,7 +685,8 @@ expression: diagnostics end_location: row: 61 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -650,6 +699,7 @@ expression: diagnostics end_location: row: 62 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap b/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap index 1ba2ac2ce8e55..6d1127a1b6d5d 100644 --- a/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap +++ b/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 34 fix: - content: "x = x.drop([\"a\"], axis=1)" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 35 + edits: + - content: "x = x.drop([\"a\"], axis=1)" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 35 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 34 fix: - content: "x = x.drop([\"a\"], axis=1)" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 35 + edits: + - content: "x = x.drop([\"a\"], axis=1)" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 35 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 16 fix: - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n)" - location: - row: 9 - column: 0 - end_location: - row: 13 - column: 1 + edits: + - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n)" + location: + row: 9 + column: 0 + end_location: + row: 13 + column: 1 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -74,12 +77,13 @@ expression: diagnostics row: 17 column: 20 fix: - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n )" - location: - row: 16 - column: 4 - end_location: - row: 20 - column: 5 + edits: + - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n )" + location: + row: 16 + column: 4 + end_location: + row: 20 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap index b81323f63f660..8498a48843bee 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap index 0cb9d70798937..edc21dcfa29b5 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 40 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap index dca9c0dba27dd..763f418e2f17a 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidArgumentName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap index cfc39d50be0c4..1c0981c064ccd 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForClassMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForClassMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 43 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap index 5c569e6bb1e44..d5f89b70d19ba 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 31 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap index 844bb5cc0fc41..5eb6425be2b15 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonLowercaseVariableInFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap index d2b2e970f0dfd..60ad5bab26963 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DunderFunctionName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap index 598c691a65fca..c20280827536b 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ConstantImportedAsNonConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ConstantImportedAsNonConstant @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap index 7296925d90247..eed257a4afac1 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LowercaseImportedAsNonLowercase @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LowercaseImportedAsNonLowercase @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap index e23b791b05dd1..8c19c8b4c6702 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsLowercase @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsLowercase @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap index 1ac4bea0c97de..ac2413f5c34f9 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsConstant @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap index d0b4bf1771770..558a27fd1c0a8 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInClassScope @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInClassScope @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap index 150e631192ef3..ac02f3ebb5846 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInGlobalScope @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInGlobalScope @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap index 4827db12bbf08..29baed9731d04 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsAcronym @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap index 73180ac59313d..0dbb67843253b 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorSuffixOnExceptionName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap index b01f97f813e2b..12fe045062b75 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap index 95ca07921596e..04c786f808dd6 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap index d495bdd3bde33..81846ae5fd0ac 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap index 7fa347eafebee..0338a2a1e463f 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap index eab4d72472346..52d12ecda893e 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/mod.rs b/crates/ruff/src/rules/pycodestyle/mod.rs index 1ca3577880305..0a696d94c7a28 100644 --- a/crates/ruff/src/rules/pycodestyle/mod.rs +++ b/crates/ruff/src/rules/pycodestyle/mod.rs @@ -71,7 +71,7 @@ mod tests { // Replaces the platform's default line ending with `` to make the test platform- // agnostic { - "[].fix.content" => insta::dynamic_redaction(|value, _path| { + "[].fix.edits[].content" => insta::dynamic_redaction(|value, _path| { value.as_str().unwrap().replace(LineEnding::default().as_str(), "") }) } diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap index 16bb87d985a49..f7b54ab067173 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedSpacesAndTabs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedSpacesAndTabs @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E111_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E111_E11.py.snap index 6e7677a4f6285..14c56199de714 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E111_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E111_E11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IndentationWithInvalidMultiple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E112_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E112_E11.py.snap index c76e04f728e49..dfbe0e11dbb53 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E112_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E112_E11.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E113_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E113_E11.py.snap index bc5b0df9f6f0f..370c7dd3077c0 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E113_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E113_E11.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 12 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E114_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E114_E11.py.snap index 020828cf77c8f..0ccd82c049259 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E114_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E114_E11.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 15 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E115_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E115_E11.py.snap index 1b0d75a1964f8..b0dc5cd4fbf08 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E115_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E115_E11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 30 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoIndentedBlockComment @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 31 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoIndentedBlockComment @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 32 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoIndentedBlockComment @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 33 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoIndentedBlockComment @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 34 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoIndentedBlockComment @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 35 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E116_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E116_E11.py.snap index 7fcbb0959ba19..00b6d725dd2e3 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E116_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E116_E11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedIndentationComment @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedIndentationComment @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 24 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedIndentationComment @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 26 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E117_E11.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E117_E11.py.snap index 1a62ef4e7ce5f..1e1a6597af3f7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E117_E11.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E117_E11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverIndented @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 39 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverIndented @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 42 column: 2 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E201_E20.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E201_E20.py.snap index 42d6bd63ae874..b36b4b10e5d15 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E201_E20.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E201_E20.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceAfterOpenBracket @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceAfterOpenBracket @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceAfterOpenBracket @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 8 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceAfterOpenBracket @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceAfterOpenBracket @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E202_E20.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E202_E20.py.snap index ae6b9190df7c4..5294726d50536 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E202_E20.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E202_E20.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 19 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforeCloseBracket @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 21 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforeCloseBracket @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 23 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforeCloseBracket @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 25 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforeCloseBracket @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 27 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforeCloseBracket @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 29 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E203_E20.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E203_E20.py.snap index 3d91c14d84f53..842ea52fad3aa 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E203_E20.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E203_E20.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 51 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforePunctuation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 55 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforePunctuation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 60 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforePunctuation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 63 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforePunctuation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 67 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: WhitespaceBeforePunctuation @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 71 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E211_E21.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E211_E21.py.snap index 63a5095072776..2de4d82bc6cd7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E211_E21.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E211_E21.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 5 fix: - content: "" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 5 + edits: + - content: "" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 5 parent: ~ - kind: name: WhitespaceBeforeParameters @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 5 fix: - content: "" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 5 + edits: + - content: "" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 5 parent: ~ - kind: name: WhitespaceBeforeParameters @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 20 fix: - content: "" - location: - row: 4 - column: 19 - end_location: - row: 4 - column: 20 + edits: + - content: "" + location: + row: 4 + column: 19 + end_location: + row: 4 + column: 20 parent: ~ - kind: name: WhitespaceBeforeParameters @@ -74,12 +77,13 @@ expression: diagnostics row: 6 column: 12 fix: - content: "" - location: - row: 6 - column: 11 - end_location: - row: 6 - column: 12 + edits: + - content: "" + location: + row: 6 + column: 11 + end_location: + row: 6 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E221_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E221_E22.py.snap index 1c2446595da00..a980f134779b6 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E221_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E221_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 15 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeOperator @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 19 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E222_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E222_E22.py.snap index 27129520fa405..d6b774dcc5758 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E222_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E222_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 28 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 31 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterOperator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 32 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterOperator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 35 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterOperator @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 36 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E223_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E223_E22.py.snap index 4283693941117..ef61ae6ee6051 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E223_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E223_E22.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 43 column: 1 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E224_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E224_E22.py.snap index e26bf5b1e3bdd..bd5529213ab5c 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E224_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E224_E22.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 48 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E225_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E225_E22.py.snap index bb16972b483d5..b7a3d490a36aa 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E225_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E225_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 54 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 58 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 60 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 62 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 64 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 66 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 68 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 70 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 72 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 74 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 76 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 76 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 78 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 78 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 88 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 90 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 92 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 94 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 98 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 100 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundOperator @@ -273,6 +293,7 @@ expression: diagnostics end_location: row: 154 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E226_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E226_E22.py.snap index 06c726fd81d10..0c18b5e6c19bc 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E226_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E226_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 92 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 94 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 96 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 98 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 100 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 106 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 106 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 110 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 112 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 114 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 114 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundArithmeticOperator @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 116 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E227_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E227_E22.py.snap index 5306f2ff2d3fd..ac283540dea5c 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E227_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E227_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 121 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 123 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 125 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 127 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 129 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E228_E22.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E228_E22.py.snap index 0505516015636..c7f9fe616345b 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E228_E22.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E228_E22.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 131 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundModuloOperator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 133 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundModuloOperator @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 135 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E231_E23.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E231_E23.py.snap index 06714dcb4c1f5..951eddcf0dce5 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E231_E23.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E231_E23.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 6 fix: - content: " " - location: - row: 2 - column: 7 - end_location: - row: 2 - column: 7 + edits: + - content: " " + location: + row: 2 + column: 7 + end_location: + row: 2 + column: 7 parent: ~ - kind: name: MissingWhitespace @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: " " - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 5 + edits: + - content: " " + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 5 parent: ~ - kind: name: MissingWhitespace @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 9 fix: - content: " " - location: - row: 6 - column: 10 - end_location: - row: 6 - column: 10 + edits: + - content: " " + location: + row: 6 + column: 10 + end_location: + row: 6 + column: 10 parent: ~ - kind: name: MissingWhitespace @@ -74,12 +77,13 @@ expression: diagnostics row: 19 column: 9 fix: - content: " " - location: - row: 19 - column: 10 - end_location: - row: 19 - column: 10 + edits: + - content: " " + location: + row: 19 + column: 10 + end_location: + row: 19 + column: 10 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E251_E25.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E251_E25.py.snap index 00634be8fb124..3bba7fb126df9 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E251_E25.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E251_E25.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 8 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 18 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 23 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnexpectedSpacesAroundKeywordParameterEquals @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 23 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E252_E25.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E252_E25.py.snap index cb6ffdb2e4263..f7404e3b60a45 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E252_E25.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E252_E25.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 46 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundParameterEquals @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 46 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundParameterEquals @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 46 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAroundParameterEquals @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 46 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E261_E26.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E261_E26.py.snap index e283278236457..2e2a3cd960ed7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E261_E26.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E261_E26.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E262_E26.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E262_E26.py.snap index 087782a7a3314..1d53b21789f7b 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E262_E26.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E262_E26.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterInlineComment @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterInlineComment @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterInlineComment @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 63 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterInlineComment @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 66 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E265_E26.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E265_E26.py.snap index a4d5b5439e384..d58543c479c20 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E265_E26.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E265_E26.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterBlockComment @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterBlockComment @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoSpaceAfterBlockComment @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 32 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E266_E26.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E266_E26.py.snap index 1732ae58e806b..e700b83c97585 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E266_E26.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E266_E26.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 19 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleLeadingHashesForBlockComment @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleLeadingHashesForBlockComment @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 26 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E271_E27.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E271_E27.py.snap index 6401c0cfecdf9..bcf1baf3b8561 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E271_E27.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E271_E27.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 20 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 22 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesAfterKeyword @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 35 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E272_E27.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E272_E27.py.snap index 6c5592bd4803c..7b082431d1ffe 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E272_E27.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E272_E27.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeKeyword @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleSpacesBeforeKeyword @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 24 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E273_E27.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E273_E27.py.snap index 50aa176a52ba5..9f4bf6c3ced86 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E273_E27.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E273_E27.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabAfterKeyword @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabAfterKeyword @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabAfterKeyword @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 26 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabAfterKeyword @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 30 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E274_E27.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E274_E27.py.snap index b080c2919b0ca..511063725035f 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E274_E27.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E274_E27.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 28 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabBeforeKeyword @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 30 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E275_E27.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E275_E27.py.snap index 3044ebf452ae9..2770ca95adee2 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E275_E27.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E275_E27.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 37 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAfterKeyword @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 39 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAfterKeyword @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 42 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAfterKeyword @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 46 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingWhitespaceAfterKeyword @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 54 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap index 79062d249e14d..9a5bdabc68e6d 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 2 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap index 68a149557733f..d1af30ac08f3e 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 55 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ModuleImportNotAtTopOfFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 57 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ModuleImportNotAtTopOfFile @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 61 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap index f1b375520c82a..f9eec771905f5 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 24 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap index 16aa92307df2f..865efb2e05acd 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 123 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 88 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 127 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 132 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 43 column: 105 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 83 column: 147 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap index 92078afc95a6a..b4f71d7610476 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 27 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 31 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 32 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 33 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 35 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 37 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 39 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 54 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 56 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 59 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap index 90c9d6187c6c3..8eb4f5d20fc47 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 25 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 54 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 56 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap index 0875111d2f84f..d78b3a3911025 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 13 fix: - content: "" - location: - row: 10 - column: 12 - end_location: - row: 10 - column: 13 + edits: + - content: "" + location: + row: 10 + column: 12 + end_location: + row: 10 + column: 13 parent: ~ - kind: name: UselessSemicolon @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "" - location: - row: 12 - column: 22 - end_location: - row: 12 - column: 23 + edits: + - content: "" + location: + row: 12 + column: 22 + end_location: + row: 12 + column: 23 parent: ~ - kind: name: UselessSemicolon @@ -54,12 +56,13 @@ expression: diagnostics row: 25 column: 14 fix: - content: "" - location: - row: 25 - column: 13 - end_location: - row: 25 - column: 14 + edits: + - content: "" + location: + row: 25 + column: 13 + end_location: + row: 25 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap index 669846981b995..c65df8a2444f5 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 14 fix: - content: res is None - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 14 + edits: + - content: res is None + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 14 parent: ~ - kind: name: NoneComparison @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 14 fix: - content: res is not None - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 14 + edits: + - content: res is not None + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 14 parent: ~ - kind: name: NoneComparison @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: None is res - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 14 + edits: + - content: None is res + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: NoneComparison @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: None is not res - location: - row: 11 - column: 3 - end_location: - row: 11 - column: 14 + edits: + - content: None is not res + location: + row: 11 + column: 3 + end_location: + row: 11 + column: 14 parent: ~ - kind: name: NoneComparison @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "res[1] is None" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 17 + edits: + - content: "res[1] is None" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: NoneComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 17 fix: - content: "res[1] is not None" - location: - row: 17 - column: 3 - end_location: - row: 17 - column: 17 + edits: + - content: "res[1] is not None" + location: + row: 17 + column: 3 + end_location: + row: 17 + column: 17 parent: ~ - kind: name: NoneComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "None is not res[1]" - location: - row: 20 - column: 3 - end_location: - row: 20 - column: 17 + edits: + - content: "None is not res[1]" + location: + row: 20 + column: 3 + end_location: + row: 20 + column: 17 parent: ~ - kind: name: NoneComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: "None is res[1]" - location: - row: 23 - column: 3 - end_location: - row: 23 - column: 17 + edits: + - content: "None is res[1]" + location: + row: 23 + column: 3 + end_location: + row: 23 + column: 17 parent: ~ - kind: name: NoneComparison @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 12 fix: - content: x is None is not None - location: - row: 26 - column: 3 - end_location: - row: 26 - column: 20 + edits: + - content: x is None is not None + location: + row: 26 + column: 3 + end_location: + row: 26 + column: 20 parent: ~ - kind: name: NoneComparison @@ -194,12 +203,13 @@ expression: diagnostics row: 26 column: 20 fix: - content: x is None is not None - location: - row: 26 - column: 3 - end_location: - row: 26 - column: 20 + edits: + - content: x is None is not None + location: + row: 26 + column: 3 + end_location: + row: 26 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap index c7315385fc55b..458086ca58820 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 14 fix: - content: res is True - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 14 + edits: + - content: res is True + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 14 parent: ~ - kind: name: TrueFalseComparison @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: res is not False - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: res is not False + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: TrueFalseComparison @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: True is not res - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 14 + edits: + - content: True is not res + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: TrueFalseComparison @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 8 fix: - content: False is res - location: - row: 11 - column: 3 - end_location: - row: 11 - column: 15 + edits: + - content: False is res + location: + row: 11 + column: 3 + end_location: + row: 11 + column: 15 parent: ~ - kind: name: TrueFalseComparison @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "res[1] is True" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 17 + edits: + - content: "res[1] is True" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: TrueFalseComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 18 fix: - content: "res[1] is not False" - location: - row: 17 - column: 3 - end_location: - row: 17 - column: 18 + edits: + - content: "res[1] is not False" + location: + row: 17 + column: 3 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: TrueFalseComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 23 fix: - content: cond is True - location: - row: 20 - column: 11 - end_location: - row: 20 - column: 23 + edits: + - content: cond is True + location: + row: 20 + column: 11 + end_location: + row: 20 + column: 23 parent: ~ - kind: name: TrueFalseComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 48 fix: - content: cond is False - location: - row: 20 - column: 35 - end_location: - row: 20 - column: 48 + edits: + - content: cond is False + location: + row: 20 + column: 35 + end_location: + row: 20 + column: 48 parent: ~ - kind: name: TrueFalseComparison @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 8 fix: - content: True is TrueElement - location: - row: 22 - column: 3 - end_location: - row: 22 - column: 24 + edits: + - content: True is TrueElement + location: + row: 22 + column: 3 + end_location: + row: 22 + column: 24 parent: ~ - kind: name: TrueFalseComparison @@ -194,13 +203,14 @@ expression: diagnostics row: 25 column: 14 fix: - content: res is True is not False - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 23 + edits: + - content: res is True is not False + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 23 parent: ~ - kind: name: TrueFalseComparison @@ -214,12 +224,13 @@ expression: diagnostics row: 25 column: 23 fix: - content: res is True is not False - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 23 + edits: + - content: res is True is not False + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap index bb8b35b7bdfd5..ba6da40d57a17 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: X not in Y - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: X not in Y + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NotInTest @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: X.B not in Y - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: X.B not in Y + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: NotInTest @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: X not in Y - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 13 + edits: + - content: X not in Y + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 13 parent: ~ - kind: name: NotInTest @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 28 fix: - content: Y not in Z - location: - row: 11 - column: 18 - end_location: - row: 11 - column: 28 + edits: + - content: Y not in Z + location: + row: 11 + column: 18 + end_location: + row: 11 + column: 28 parent: ~ - kind: name: NotInTest @@ -94,12 +98,13 @@ expression: diagnostics row: 14 column: 14 fix: - content: X not in Y - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 15 + edits: + - content: X not in Y + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap index e9243cd78d6ba..14601a65d4a71 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: X is not Y - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: X is not Y + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NotIsTest @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: X.B is not Y - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: X.B is not Y + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: NotIsTest @@ -53,6 +55,7 @@ expression: diagnostics end_location: row: 8 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap index 76acba3c0a0c2..af8b6d1835267 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 18 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 20 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 26 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 28 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 32 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 38 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 40 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -195,6 +209,7 @@ expression: diagnostics end_location: row: 42 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap index 8fcc439ef739a..a1ababf167344 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BareExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BareExcept @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 16 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap index a19ce0c7ab7d0..221244cb1861d 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 19 fix: - content: "def f(x):\n return 2 * x" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 19 + edits: + - content: "def f(x):\n return 2 * x" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 19 parent: ~ - kind: name: LambdaAssignment @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "def f(x):\n return 2 * x" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 19 + edits: + - content: "def f(x):\n return 2 * x" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: LambdaAssignment @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 29 fix: - content: "def this(y, z):\n return 2 * x" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 29 + edits: + - content: "def this(y, z):\n return 2 * x" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 29 parent: ~ - kind: name: LambdaAssignment @@ -74,13 +77,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: "def f():\n return (yield 1)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 21 + edits: + - content: "def f():\n return (yield 1)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: LambdaAssignment @@ -94,13 +98,14 @@ expression: diagnostics row: 11 column: 28 fix: - content: "def f():\n return (yield from g())" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 28 + edits: + - content: "def f():\n return (yield from g())" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 28 parent: ~ - kind: name: LambdaAssignment @@ -113,6 +118,7 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap index 0dd1d1ba29501..d1f0b99579414 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 16 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 25 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 26 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 30 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 33 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 34 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 40 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 44 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 44 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 48 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 48 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 57 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 66 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 71 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap index e73bcfe6c8a2b..56fff72f597c7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousClassName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousClassName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap index 39eb0714deb25..bf643a870019a 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousFunctionName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousFunctionName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap index ba2b5f9fd3d05..1da67f29a6b31 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap index 524dbc0fb5722..d999c03c35f92 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 26 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 32 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 38 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 44 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 54 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 58 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 61 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 62 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 64 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 66 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 73 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 78 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 83 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 88 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 91 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 92 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 98 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 99 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 102 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 105 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 110 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 125 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 131 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 132 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 133 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 136 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 137 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 138 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 139 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 140 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -494,6 +531,7 @@ expression: diagnostics end_location: row: 143 column: 1 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap index 613528f793370..a4c665169a0dc 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 6 fix: - content: "" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 6 + edits: + - content: "" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 6 parent: ~ - kind: name: TrailingWhitespace @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 37 fix: - content: "" - location: - row: 11 - column: 34 - end_location: - row: 11 - column: 37 + edits: + - content: "" + location: + row: 11 + column: 34 + end_location: + row: 11 + column: 37 parent: ~ - kind: name: TrailingWhitespace @@ -54,12 +56,13 @@ expression: diagnostics row: 13 column: 8 fix: - content: "" - location: - row: 13 - column: 5 - end_location: - row: 13 - column: 8 + edits: + - content: "" + location: + row: 13 + column: 5 + end_location: + row: 13 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap index 5ac46f45168a2..d79b420fc023f 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 8 fix: - content: "\n" - location: - row: 2 - column: 8 - end_location: - row: 2 - column: 8 + edits: + - content: "\n" + location: + row: 2 + column: 8 + end_location: + row: 2 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap index d24458869ae85..a723fbc1fbbfb 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 7 column: 4 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 4 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap index 4fff97739d53d..145b44be43bf6 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "\\" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 10 + edits: + - content: "\\" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: InvalidEscapeSequence @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 2 fix: - content: "\\" - location: - row: 6 - column: 1 - end_location: - row: 6 - column: 1 + edits: + - content: "\\" + location: + row: 6 + column: 1 + end_location: + row: 6 + column: 1 parent: ~ - kind: name: InvalidEscapeSequence @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: "\\" - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 6 + edits: + - content: "\\" + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 6 parent: ~ - kind: name: InvalidEscapeSequence @@ -74,12 +77,13 @@ expression: diagnostics row: 18 column: 7 fix: - content: "\\" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 6 + edits: + - content: "\\" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap index 4fff97739d53d..145b44be43bf6 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "\\" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 10 + edits: + - content: "\\" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: InvalidEscapeSequence @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 2 fix: - content: "\\" - location: - row: 6 - column: 1 - end_location: - row: 6 - column: 1 + edits: + - content: "\\" + location: + row: 6 + column: 1 + end_location: + row: 6 + column: 1 parent: ~ - kind: name: InvalidEscapeSequence @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: "\\" - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 6 + edits: + - content: "\\" + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 6 parent: ~ - kind: name: InvalidEscapeSequence @@ -74,12 +77,13 @@ expression: diagnostics row: 18 column: 7 fix: - content: "\\" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 6 + edits: + - content: "\\" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap index 10aa6714e39f0..de0207b8ec6b2 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 17 fix: - content: "==" - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 11 + edits: + - content: "==" + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 11 parent: ~ - kind: name: IsLiteral @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 16 fix: - content: "==" - location: - row: 6 - column: 9 - end_location: - row: 6 - column: 11 + edits: + - content: "==" + location: + row: 6 + column: 9 + end_location: + row: 6 + column: 11 parent: ~ - kind: name: IsLiteral @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 16 fix: - content: "==" - location: - row: 8 - column: 8 - end_location: - row: 8 - column: 10 + edits: + - content: "==" + location: + row: 8 + column: 8 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: IsLiteral @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 17 fix: - content: "==" - location: - row: 10 - column: 9 - end_location: - row: 10 - column: 11 + edits: + - content: "==" + location: + row: 10 + column: 9 + end_location: + row: 10 + column: 11 parent: ~ - kind: name: IsLiteral @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 17 fix: - content: "==" - location: - row: 12 - column: 9 - end_location: - row: 12 - column: 11 + edits: + - content: "==" + location: + row: 12 + column: 9 + end_location: + row: 12 + column: 11 parent: ~ - kind: name: TrueFalseComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: False is None - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 16 + edits: + - content: False is None + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: NoneComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: False is None - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 16 + edits: + - content: False is None + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: NoneComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 16 column: 7 fix: - content: None is False - location: - row: 16 - column: 3 - end_location: - row: 16 - column: 16 + edits: + - content: None is False + location: + row: 16 + column: 3 + end_location: + row: 16 + column: 16 parent: ~ - kind: name: TrueFalseComparison @@ -174,12 +182,13 @@ expression: diagnostics row: 16 column: 16 fix: - content: None is False - location: - row: 16 - column: 3 - end_location: - row: 16 - column: 16 + edits: + - content: None is False + location: + row: 16 + column: 3 + end_location: + row: 16 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap index 872113aac2c4a..9e23d50b478e7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 61 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap index 49025e4cd68eb..c29b37c5b80d3 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 149 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 148 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 155 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 150 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 149 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 156 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap index 88cb6966394af..8e19664f21286 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 1 fix: - content: "" - location: - row: 1 - column: 1 - end_location: - row: 1 - column: 1 + edits: + - content: "" + location: + row: 1 + column: 1 + end_location: + row: 1 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap index b9d4dd79b06aa..e506aa4ef8f12 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap index b4a19961a2f2a..b97e075a07b19 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap index f466079ec0290..23962f01d0b5c 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 56 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 68 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap index 1c7173840014b..76a66f9f8a8f8 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 16 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap index 3a1c0fea2f5e1..b5b360d9e5cc4 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 400 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap index 5b959b2fbbe0e..33231a97c2e21 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap index e134d4f8f2aed..8b4c8016b9cdb 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 64 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap index 59cc37f39c904..3e85fce662f31 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 60 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 534 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap index 3e4d58a38679c..6f942d153a5fb 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 131 column: 7 fix: - content: "\"\"\"Wrong.\"\"\"" - location: - row: 129 - column: 4 - end_location: - row: 131 - column: 7 + edits: + - content: "\"\"\"Wrong.\"\"\"" + location: + row: 129 + column: 4 + end_location: + row: 131 + column: 7 parent: ~ - kind: name: FitsOnOneLine @@ -34,13 +35,14 @@ expression: diagnostics row: 599 column: 13 fix: - content: "\"\"\"Wrong.\"\"\"" - location: - row: 597 - column: 4 - end_location: - row: 599 - column: 13 + edits: + - content: "\"\"\"Wrong.\"\"\"" + location: + row: 597 + column: 4 + end_location: + row: 599 + column: 13 parent: ~ - kind: name: FitsOnOneLine @@ -54,13 +56,14 @@ expression: diagnostics row: 608 column: 7 fix: - content: "r\"\"\"Wrong.\"\"\"" - location: - row: 606 - column: 4 - end_location: - row: 608 - column: 7 + edits: + - content: "r\"\"\"Wrong.\"\"\"" + location: + row: 606 + column: 4 + end_location: + row: 608 + column: 7 parent: ~ - kind: name: FitsOnOneLine @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 617 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FitsOnOneLine @@ -86,6 +90,7 @@ expression: diagnostics end_location: row: 626 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap index bc09e4cc2f59d..8ce6a8ea923f8 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 137 column: 24 fix: - content: "" - location: - row: 136 - column: 0 - end_location: - row: 137 - column: 0 + edits: + - content: "" + location: + row: 136 + column: 0 + end_location: + row: 137 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 151 column: 37 fix: - content: "" - location: - row: 150 - column: 0 - end_location: - row: 151 - column: 0 + edits: + - content: "" + location: + row: 150 + column: 0 + end_location: + row: 151 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 549 column: 7 fix: - content: "" - location: - row: 545 - column: 0 - end_location: - row: 546 - column: 0 + edits: + - content: "" + location: + row: 545 + column: 0 + end_location: + row: 546 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -74,12 +77,13 @@ expression: diagnostics row: 571 column: 7 fix: - content: "" - location: - row: 567 - column: 0 - end_location: - row: 568 - column: 0 + edits: + - content: "" + location: + row: 567 + column: 0 + end_location: + row: 568 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap index ca7fae4133af2..879e859bdb419 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 142 column: 24 fix: - content: "" - location: - row: 143 - column: 0 - end_location: - row: 144 - column: 0 + edits: + - content: "" + location: + row: 143 + column: 0 + end_location: + row: 144 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 151 column: 37 fix: - content: "" - location: - row: 152 - column: 0 - end_location: - row: 153 - column: 0 + edits: + - content: "" + location: + row: 152 + column: 0 + end_location: + row: 153 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 558 column: 7 fix: - content: "" - location: - row: 559 - column: 0 - end_location: - row: 560 - column: 0 + edits: + - content: "" + location: + row: 559 + column: 0 + end_location: + row: 560 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -74,12 +77,13 @@ expression: diagnostics row: 571 column: 7 fix: - content: "" - location: - row: 572 - column: 0 - end_location: - row: 573 - column: 0 + edits: + - content: "" + location: + row: 572 + column: 0 + end_location: + row: 573 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap index 645410db17cc8..c36b03f8defd4 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 57 column: 30 fix: - content: "" - location: - row: 58 - column: 0 - end_location: - row: 60 - column: 0 + edits: + - content: "" + location: + row: 58 + column: 0 + end_location: + row: 60 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 68 column: 30 fix: - content: "" - location: - row: 69 - column: 0 - end_location: - row: 71 - column: 0 + edits: + - content: "" + location: + row: 69 + column: 0 + end_location: + row: 71 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -54,12 +56,13 @@ expression: diagnostics row: 80 column: 30 fix: - content: "" - location: - row: 81 - column: 0 - end_location: - row: 82 - column: 0 + edits: + - content: "" + location: + row: 81 + column: 0 + end_location: + row: 82 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap index 0de8a25b741c5..3dd4a8a8e17af 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 161 column: 32 fix: - content: "\n" - location: - row: 161 - column: 0 - end_location: - row: 161 - column: 0 + edits: + - content: "\n" + location: + row: 161 + column: 0 + end_location: + row: 161 + column: 0 parent: ~ - kind: name: OneBlankLineBeforeClass @@ -34,13 +35,14 @@ expression: diagnostics row: 192 column: 45 fix: - content: "\n" - location: - row: 192 - column: 0 - end_location: - row: 192 - column: 0 + edits: + - content: "\n" + location: + row: 192 + column: 0 + end_location: + row: 192 + column: 0 parent: ~ - kind: name: OneBlankLineBeforeClass @@ -54,12 +56,13 @@ expression: diagnostics row: 532 column: 7 fix: - content: "\n" - location: - row: 526 - column: 0 - end_location: - row: 526 - column: 0 + edits: + - content: "\n" + location: + row: 526 + column: 0 + end_location: + row: 526 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap index 2723279843b42..b63bfd83e12fa 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 181 column: 24 fix: - content: "\n" - location: - row: 182 - column: 0 - end_location: - row: 182 - column: 0 + edits: + - content: "\n" + location: + row: 182 + column: 0 + end_location: + row: 182 + column: 0 parent: ~ - kind: name: OneBlankLineAfterClass @@ -34,12 +35,13 @@ expression: diagnostics row: 192 column: 45 fix: - content: "\n" - location: - row: 193 - column: 0 - end_location: - row: 193 - column: 0 + edits: + - content: "\n" + location: + row: 193 + column: 0 + end_location: + row: 193 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap index c643c7bff9a43..0aa25e96dcace 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 203 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlankLineAfterSummary @@ -27,12 +28,13 @@ expression: diagnostics row: 215 column: 7 fix: - content: "\n" - location: - row: 211 - column: 0 - end_location: - row: 213 - column: 0 + edits: + - content: "\n" + location: + row: 211 + column: 0 + end_location: + row: 213 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap index dbcb6f849a50a..263860e0ab135 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 232 column: 0 fix: - content: " " - location: - row: 232 - column: 0 - end_location: - row: 232 - column: 0 + edits: + - content: " " + location: + row: 232 + column: 0 + end_location: + row: 232 + column: 0 parent: ~ - kind: name: UnderIndentation @@ -34,13 +35,14 @@ expression: diagnostics row: 244 column: 0 fix: - content: " " - location: - row: 244 - column: 0 - end_location: - row: 244 - column: 0 + edits: + - content: " " + location: + row: 244 + column: 0 + end_location: + row: 244 + column: 0 parent: ~ - kind: name: UnderIndentation @@ -54,13 +56,14 @@ expression: diagnostics row: 440 column: 0 fix: - content: " " - location: - row: 440 - column: 0 - end_location: - row: 440 - column: 4 + edits: + - content: " " + location: + row: 440 + column: 0 + end_location: + row: 440 + column: 4 parent: ~ - kind: name: UnderIndentation @@ -74,12 +77,13 @@ expression: diagnostics row: 441 column: 0 fix: - content: " " - location: - row: 441 - column: 0 - end_location: - row: 441 - column: 4 + edits: + - content: " " + location: + row: 441 + column: 0 + end_location: + row: 441 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap index 847741752f124..083f64bd58f97 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 252 column: 0 fix: - content: " " - location: - row: 252 - column: 0 - end_location: - row: 252 - column: 7 + edits: + - content: " " + location: + row: 252 + column: 0 + end_location: + row: 252 + column: 7 parent: ~ - kind: name: OverIndentation @@ -34,13 +35,14 @@ expression: diagnostics row: 264 column: 0 fix: - content: " " - location: - row: 264 - column: 0 - end_location: - row: 264 - column: 8 + edits: + - content: " " + location: + row: 264 + column: 0 + end_location: + row: 264 + column: 8 parent: ~ - kind: name: OverIndentation @@ -54,12 +56,13 @@ expression: diagnostics row: 272 column: 0 fix: - content: " " - location: - row: 272 - column: 0 - end_location: - row: 272 - column: 8 + edits: + - content: " " + location: + row: 272 + column: 0 + end_location: + row: 272 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap index e33af346c321f..d38f971bad972 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 283 column: 19 fix: - content: "\n " - location: - row: 283 - column: 16 - end_location: - row: 283 - column: 16 + edits: + - content: "\n " + location: + row: 283 + column: 16 + end_location: + row: 283 + column: 16 parent: ~ - kind: name: NewLineAfterLastParagraph @@ -34,12 +35,13 @@ expression: diagnostics row: 590 column: 21 fix: - content: "\n " - location: - row: 590 - column: 16 - end_location: - row: 590 - column: 18 + edits: + - content: "\n " + location: + row: 590 + column: 16 + end_location: + row: 590 + column: 18 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap index e198b3ca538f7..eab9721852aef 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 288 column: 33 fix: - content: Whitespace at the end. - location: - row: 288 - column: 7 - end_location: - row: 288 - column: 30 + edits: + - content: Whitespace at the end. + location: + row: 288 + column: 7 + end_location: + row: 288 + column: 30 parent: ~ - kind: name: SurroundingWhitespace @@ -34,13 +35,14 @@ expression: diagnostics row: 293 column: 37 fix: - content: Whitespace at everywhere. - location: - row: 293 - column: 7 - end_location: - row: 293 - column: 34 + edits: + - content: Whitespace at everywhere. + location: + row: 293 + column: 7 + end_location: + row: 293 + column: 34 parent: ~ - kind: name: SurroundingWhitespace @@ -54,13 +56,14 @@ expression: diagnostics row: 302 column: 7 fix: - content: Whitespace at the beginning. - location: - row: 299 - column: 7 - end_location: - row: 299 - column: 36 + edits: + - content: Whitespace at the beginning. + location: + row: 299 + column: 7 + end_location: + row: 299 + column: 36 parent: ~ - kind: name: SurroundingWhitespace @@ -73,6 +76,7 @@ expression: diagnostics end_location: row: 581 column: 51 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap index 5808fb0885f91..31d5d4137d598 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 170 column: 29 fix: - content: "" - location: - row: 169 - column: 0 - end_location: - row: 170 - column: 0 + edits: + - content: "" + location: + row: 169 + column: 0 + end_location: + row: 170 + column: 0 parent: ~ - kind: name: BlankLineBeforeClass @@ -34,12 +35,13 @@ expression: diagnostics row: 181 column: 24 fix: - content: "" - location: - row: 180 - column: 0 - end_location: - row: 181 - column: 0 + edits: + - content: "" + location: + row: 180 + column: 0 + end_location: + row: 181 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap index 9c70c0e88fdab..789cdd2309428 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 131 column: 7 fix: - content: "" - location: - row: 129 - column: 7 - end_location: - row: 130 - column: 4 + edits: + - content: "" + location: + row: 129 + column: 7 + end_location: + row: 130 + column: 4 parent: ~ - kind: name: MultiLineSummaryFirstLine @@ -34,13 +35,14 @@ expression: diagnostics row: 599 column: 13 fix: - content: "" - location: - row: 597 - column: 7 - end_location: - row: 599 - column: 4 + edits: + - content: "" + location: + row: 597 + column: 7 + end_location: + row: 599 + column: 4 parent: ~ - kind: name: MultiLineSummaryFirstLine @@ -54,12 +56,13 @@ expression: diagnostics row: 626 column: 14 fix: - content: "" - location: - row: 624 - column: 7 - end_location: - row: 626 - column: 4 + edits: + - content: "" + location: + row: 624 + column: 7 + end_location: + row: 626 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap index f2db70d365562..d4d482a633156 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 203 column: 7 fix: - content: "\n Summary." - location: - row: 200 - column: 7 - end_location: - row: 200 - column: 15 + edits: + - content: "\n Summary." + location: + row: 200 + column: 7 + end_location: + row: 200 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -34,13 +35,14 @@ expression: diagnostics row: 215 column: 7 fix: - content: "\n Summary." - location: - row: 210 - column: 7 - end_location: - row: 210 - column: 15 + edits: + - content: "\n Summary." + location: + row: 210 + column: 7 + end_location: + row: 210 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -54,13 +56,14 @@ expression: diagnostics row: 224 column: 7 fix: - content: "\n Summary." - location: - row: 220 - column: 7 - end_location: - row: 220 - column: 15 + edits: + - content: "\n Summary." + location: + row: 220 + column: 7 + end_location: + row: 220 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -74,13 +77,14 @@ expression: diagnostics row: 234 column: 7 fix: - content: "\n Summary." - location: - row: 230 - column: 7 - end_location: - row: 230 - column: 15 + edits: + - content: "\n Summary." + location: + row: 230 + column: 7 + end_location: + row: 230 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -94,13 +98,14 @@ expression: diagnostics row: 244 column: 3 fix: - content: "\n Summary." - location: - row: 240 - column: 7 - end_location: - row: 240 - column: 15 + edits: + - content: "\n Summary." + location: + row: 240 + column: 7 + end_location: + row: 240 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -114,13 +119,14 @@ expression: diagnostics row: 254 column: 7 fix: - content: "\n Summary." - location: - row: 250 - column: 7 - end_location: - row: 250 - column: 15 + edits: + - content: "\n Summary." + location: + row: 250 + column: 7 + end_location: + row: 250 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -134,13 +140,14 @@ expression: diagnostics row: 264 column: 11 fix: - content: "\n Summary." - location: - row: 260 - column: 7 - end_location: - row: 260 - column: 15 + edits: + - content: "\n Summary." + location: + row: 260 + column: 7 + end_location: + row: 260 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -154,13 +161,14 @@ expression: diagnostics row: 274 column: 7 fix: - content: "\n Summary." - location: - row: 270 - column: 7 - end_location: - row: 270 - column: 15 + edits: + - content: "\n Summary." + location: + row: 270 + column: 7 + end_location: + row: 270 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -174,13 +182,14 @@ expression: diagnostics row: 283 column: 19 fix: - content: "\n Summary." - location: - row: 281 - column: 7 - end_location: - row: 281 - column: 15 + edits: + - content: "\n Summary." + location: + row: 281 + column: 7 + end_location: + row: 281 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -194,13 +203,14 @@ expression: diagnostics row: 302 column: 7 fix: - content: "\n Whitespace at the beginning." - location: - row: 299 - column: 7 - end_location: - row: 299 - column: 36 + edits: + - content: "\n Whitespace at the beginning." + location: + row: 299 + column: 7 + end_location: + row: 299 + column: 36 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -214,13 +224,14 @@ expression: diagnostics row: 348 column: 7 fix: - content: "\n Exclude some backslashes from D301." - location: - row: 343 - column: 7 - end_location: - row: 343 - column: 42 + edits: + - content: "\n Exclude some backslashes from D301." + location: + row: 343 + column: 7 + end_location: + row: 343 + column: 42 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -234,13 +245,14 @@ expression: diagnostics row: 386 column: 7 fix: - content: "\n First line." - location: - row: 383 - column: 7 - end_location: - row: 383 - column: 18 + edits: + - content: "\n First line." + location: + row: 383 + column: 7 + end_location: + row: 383 + column: 18 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -254,13 +266,14 @@ expression: diagnostics row: 396 column: 7 fix: - content: "\n One liner." - location: - row: 392 - column: 7 - end_location: - row: 392 - column: 17 + edits: + - content: "\n One liner." + location: + row: 392 + column: 7 + end_location: + row: 392 + column: 17 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -274,13 +287,14 @@ expression: diagnostics row: 441 column: 7 fix: - content: "\n First Line." - location: - row: 438 - column: 39 - end_location: - row: 438 - column: 50 + edits: + - content: "\n First Line." + location: + row: 438 + column: 39 + end_location: + row: 438 + column: 50 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -294,13 +308,14 @@ expression: diagnostics row: 454 column: 7 fix: - content: "\n Check for a bug where the previous function caused an assertion." - location: - row: 450 - column: 7 - end_location: - row: 450 - column: 71 + edits: + - content: "\n Check for a bug where the previous function caused an assertion." + location: + row: 450 + column: 7 + end_location: + row: 450 + column: 71 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -314,13 +329,14 @@ expression: diagnostics row: 532 column: 7 fix: - content: "\n A Blah." - location: - row: 526 - column: 7 - end_location: - row: 526 - column: 14 + edits: + - content: "\n A Blah." + location: + row: 526 + column: 7 + end_location: + row: 526 + column: 14 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -334,13 +350,14 @@ expression: diagnostics row: 549 column: 7 fix: - content: "\n Leading space." - location: - row: 546 - column: 7 - end_location: - row: 546 - column: 21 + edits: + - content: "\n Leading space." + location: + row: 546 + column: 7 + end_location: + row: 546 + column: 21 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -354,13 +371,14 @@ expression: diagnostics row: 558 column: 7 fix: - content: "\n Leading space." - location: - row: 555 - column: 7 - end_location: - row: 555 - column: 21 + edits: + - content: "\n Leading space." + location: + row: 555 + column: 7 + end_location: + row: 555 + column: 21 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -374,13 +392,14 @@ expression: diagnostics row: 571 column: 7 fix: - content: "\n Trailing and leading space." - location: - row: 568 - column: 7 - end_location: - row: 568 - column: 34 + edits: + - content: "\n Trailing and leading space." + location: + row: 568 + column: 7 + end_location: + row: 568 + column: 34 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -394,13 +413,14 @@ expression: diagnostics row: 590 column: 21 fix: - content: "\n Summary." - location: - row: 588 - column: 7 - end_location: - row: 588 - column: 15 + edits: + - content: "\n Summary." + location: + row: 588 + column: 7 + end_location: + row: 588 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -414,13 +434,14 @@ expression: diagnostics row: 608 column: 7 fix: - content: "\n Wrong." - location: - row: 606 - column: 8 - end_location: - row: 606 - column: 14 + edits: + - content: "\n Wrong." + location: + row: 606 + column: 8 + end_location: + row: 606 + column: 14 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -434,12 +455,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "\n Wrong.\"" - location: - row: 615 - column: 7 - end_location: - row: 615 - column: 14 + edits: + - content: "\n Wrong.\"" + location: + row: 615 + column: 7 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap index 3012cf86b2570..66130faabac6a 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 150 column: 7 fix: - content: " " - location: - row: 146 - column: 0 - end_location: - row: 146 - column: 8 + edits: + - content: " " + location: + row: 146 + column: 0 + end_location: + row: 146 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap index 3a6759ec23bd7..20497f6f98965 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 162 column: 7 fix: - content: " " - location: - row: 159 - column: 0 - end_location: - row: 159 - column: 9 + edits: + - content: " " + location: + row: 159 + column: 0 + end_location: + row: 159 + column: 9 parent: ~ - kind: name: SectionUnderlineNotOverIndented @@ -34,12 +35,13 @@ expression: diagnostics row: 174 column: 7 fix: - content: " " - location: - row: 173 - column: 0 - end_location: - row: 173 - column: 9 + edits: + - content: " " + location: + row: 173 + column: 0 + end_location: + row: 173 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap index 4dc287cba5a3b..3407809594c6d 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 307 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 312 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 317 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 322 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 328 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap index e6f3d1a621373..7d6c5515eb79a 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 328 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EscapeSequenceInDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 333 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EscapeSequenceInDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 338 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap index bd473c0ef6b52..63a893f6c4223 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 355 column: 17 fix: - content: "." - location: - row: 355 - column: 14 - end_location: - row: 355 - column: 14 + edits: + - content: "." + location: + row: 355 + column: 14 + end_location: + row: 355 + column: 14 parent: ~ - kind: name: EndsInPeriod @@ -34,13 +35,14 @@ expression: diagnostics row: 406 column: 39 fix: - content: "." - location: - row: 406 - column: 36 - end_location: - row: 406 - column: 36 + edits: + - content: "." + location: + row: 406 + column: 36 + end_location: + row: 406 + column: 36 parent: ~ - kind: name: EndsInPeriod @@ -54,13 +56,14 @@ expression: diagnostics row: 410 column: 24 fix: - content: "." - location: - row: 410 - column: 21 - end_location: - row: 410 - column: 21 + edits: + - content: "." + location: + row: 410 + column: 21 + end_location: + row: 410 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -74,13 +77,14 @@ expression: diagnostics row: 416 column: 24 fix: - content: "." - location: - row: 416 - column: 21 - end_location: - row: 416 - column: 21 + edits: + - content: "." + location: + row: 416 + column: 21 + end_location: + row: 416 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -94,13 +98,14 @@ expression: diagnostics row: 422 column: 49 fix: - content: "." - location: - row: 422 - column: 46 - end_location: - row: 422 - column: 46 + edits: + - content: "." + location: + row: 422 + column: 46 + end_location: + row: 422 + column: 46 parent: ~ - kind: name: EndsInPeriod @@ -114,13 +119,14 @@ expression: diagnostics row: 429 column: 63 fix: - content: "." - location: - row: 429 - column: 60 - end_location: - row: 429 - column: 60 + edits: + - content: "." + location: + row: 429 + column: 60 + end_location: + row: 429 + column: 60 parent: ~ - kind: name: EndsInPeriod @@ -134,13 +140,14 @@ expression: diagnostics row: 470 column: 24 fix: - content: "." - location: - row: 470 - column: 21 - end_location: - row: 470 - column: 21 + edits: + - content: "." + location: + row: 470 + column: 21 + end_location: + row: 470 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -154,13 +161,14 @@ expression: diagnostics row: 475 column: 24 fix: - content: "." - location: - row: 475 - column: 21 - end_location: - row: 475 - column: 21 + edits: + - content: "." + location: + row: 475 + column: 21 + end_location: + row: 475 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -174,13 +182,14 @@ expression: diagnostics row: 480 column: 24 fix: - content: "." - location: - row: 480 - column: 21 - end_location: - row: 480 - column: 21 + edits: + - content: "." + location: + row: 480 + column: 21 + end_location: + row: 480 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -194,13 +203,14 @@ expression: diagnostics row: 487 column: 24 fix: - content: "." - location: - row: 487 - column: 21 - end_location: - row: 487 - column: 21 + edits: + - content: "." + location: + row: 487 + column: 21 + end_location: + row: 487 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -214,13 +224,14 @@ expression: diagnostics row: 514 column: 33 fix: - content: "." - location: - row: 514 - column: 30 - end_location: - row: 514 - column: 30 + edits: + - content: "." + location: + row: 514 + column: 30 + end_location: + row: 514 + column: 30 parent: ~ - kind: name: EndsInPeriod @@ -234,13 +245,14 @@ expression: diagnostics row: 520 column: 32 fix: - content: "." - location: - row: 520 - column: 29 - end_location: - row: 520 - column: 29 + edits: + - content: "." + location: + row: 520 + column: 29 + end_location: + row: 520 + column: 29 parent: ~ - kind: name: EndsInPeriod @@ -254,13 +266,14 @@ expression: diagnostics row: 581 column: 51 fix: - content: "." - location: - row: 581 - column: 47 - end_location: - row: 581 - column: 47 + edits: + - content: "." + location: + row: 581 + column: 47 + end_location: + row: 581 + column: 47 parent: ~ - kind: name: EndsInPeriod @@ -274,12 +287,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "." - location: - row: 615 - column: 14 - end_location: - row: 615 - column: 14 + edits: + - content: "." + location: + row: 615 + column: 14 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap index 008ea1efa6bdc..fc1450240859a 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 36 fix: - content: "." - location: - row: 2 - column: 35 - end_location: - row: 2 - column: 35 + edits: + - content: "." + location: + row: 2 + column: 35 + end_location: + row: 2 + column: 35 parent: ~ - kind: name: EndsInPeriod @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: "." - location: - row: 7 - column: 37 - end_location: - row: 7 - column: 37 + edits: + - content: "." + location: + row: 7 + column: 37 + end_location: + row: 7 + column: 37 parent: ~ - kind: name: EndsInPeriod @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 7 fix: - content: "." - location: - row: 14 - column: 28 - end_location: - row: 14 - column: 28 + edits: + - content: "." + location: + row: 14 + column: 28 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -74,13 +77,14 @@ expression: diagnostics row: 20 column: 40 fix: - content: "." - location: - row: 20 - column: 37 - end_location: - row: 20 - column: 37 + edits: + - content: "." + location: + row: 20 + column: 37 + end_location: + row: 20 + column: 37 parent: ~ - kind: name: EndsInPeriod @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 31 fix: - content: "." - location: - row: 27 - column: 28 - end_location: - row: 27 - column: 28 + edits: + - content: "." + location: + row: 27 + column: 28 + end_location: + row: 27 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -114,13 +119,14 @@ expression: diagnostics row: 34 column: 52 fix: - content: "." - location: - row: 34 - column: 48 - end_location: - row: 34 - column: 48 + edits: + - content: "." + location: + row: 34 + column: 48 + end_location: + row: 34 + column: 48 parent: ~ - kind: name: EndsInPeriod @@ -134,13 +140,14 @@ expression: diagnostics row: 39 column: 37 fix: - content: "." - location: - row: 39 - column: 36 - end_location: - row: 39 - column: 36 + edits: + - content: "." + location: + row: 39 + column: 36 + end_location: + row: 39 + column: 36 parent: ~ - kind: name: EndsInPeriod @@ -154,13 +161,14 @@ expression: diagnostics row: 44 column: 41 fix: - content: "." - location: - row: 44 - column: 38 - end_location: - row: 44 - column: 38 + edits: + - content: "." + location: + row: 44 + column: 38 + end_location: + row: 44 + column: 38 parent: ~ - kind: name: EndsInPeriod @@ -174,13 +182,14 @@ expression: diagnostics row: 52 column: 7 fix: - content: "." - location: - row: 51 - column: 28 - end_location: - row: 51 - column: 28 + edits: + - content: "." + location: + row: 51 + column: 28 + end_location: + row: 51 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 41 fix: - content: "." - location: - row: 57 - column: 38 - end_location: - row: 57 - column: 38 + edits: + - content: "." + location: + row: 57 + column: 38 + end_location: + row: 57 + column: 38 parent: ~ - kind: name: EndsInPeriod @@ -214,13 +224,14 @@ expression: diagnostics row: 64 column: 31 fix: - content: "." - location: - row: 64 - column: 28 - end_location: - row: 64 - column: 28 + edits: + - content: "." + location: + row: 64 + column: 28 + end_location: + row: 64 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -234,12 +245,13 @@ expression: diagnostics row: 71 column: 52 fix: - content: "." - location: - row: 71 - column: 48 - end_location: - row: 71 - column: 48 + edits: + - content: "." + location: + row: 71 + column: 48 + end_location: + row: 71 + column: 48 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap index 909f9a8459f33..47e4da6b7a3be 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 37 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 74 column: 73 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap index 05afd64c732df..bc87d94f94a6e 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 378 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap index 10775349f4a11..eebb18a5fb595 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 43 fix: - content: This - location: - row: 2 - column: 7 - end_location: - row: 2 - column: 11 + edits: + - content: This + location: + row: 2 + column: 7 + end_location: + row: 2 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap index c59cd817b7e4b..c4904667b75ea 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 631 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringStartsWithThis @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 636 column: 56 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap index 253d2154bbbaa..e029b60b67db0 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: Returns - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 11 + edits: + - content: Returns + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 11 parent: ~ - kind: name: CapitalizeSectionName @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: Short Summary - location: - row: 218 - column: 4 - end_location: - row: 218 - column: 17 + edits: + - content: Short Summary + location: + row: 218 + column: 4 + end_location: + row: 218 + column: 17 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap index 7eabee0ae83be..7540367892d11 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 36 column: 7 fix: - content: "" - location: - row: 32 - column: 11 - end_location: - row: 32 - column: 12 + edits: + - content: "" + location: + row: 32 + column: 11 + end_location: + row: 32 + column: 12 parent: ~ - kind: name: NewLineAfterSectionName @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "" - location: - row: 227 - column: 10 - end_location: - row: 227 - column: 11 + edits: + - content: "" + location: + row: 227 + column: 10 + end_location: + row: 227 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap index 3068e5c7436fd..079d39677e074 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 47 column: 7 fix: - content: "\n -------" - location: - row: 44 - column: 11 - end_location: - row: 44 - column: 11 + edits: + - content: "\n -------" + location: + row: 44 + column: 11 + end_location: + row: 44 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -34,13 +35,14 @@ expression: diagnostics row: 58 column: 7 fix: - content: "\n -------" - location: - row: 56 - column: 11 - end_location: - row: 56 - column: 11 + edits: + - content: "\n -------" + location: + row: 56 + column: 11 + end_location: + row: 56 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -54,13 +56,14 @@ expression: diagnostics row: 67 column: 14 fix: - content: "\n -------" - location: - row: 67 - column: 11 - end_location: - row: 67 - column: 11 + edits: + - content: "\n -------" + location: + row: 67 + column: 11 + end_location: + row: 67 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -74,13 +77,14 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n ------" - location: - row: 227 - column: 11 - end_location: - row: 227 - column: 11 + edits: + - content: "\n ------" + location: + row: 227 + column: 11 + end_location: + row: 227 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -94,13 +98,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n ----" - location: - row: 263 - column: 9 - end_location: - row: 263 - column: 9 + edits: + - content: "\n ----" + location: + row: 263 + column: 9 + end_location: + row: 263 + column: 9 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -114,13 +119,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n -------" - location: - row: 266 - column: 12 - end_location: - row: 266 - column: 12 + edits: + - content: "\n -------" + location: + row: 266 + column: 12 + end_location: + row: 266 + column: 12 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -134,13 +140,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n ------" - location: - row: 268 - column: 11 - end_location: - row: 268 - column: 11 + edits: + - content: "\n ------" + location: + row: 268 + column: 11 + end_location: + row: 268 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -154,13 +161,14 @@ expression: diagnostics row: 283 column: 7 fix: - content: "\n ----" - location: - row: 280 - column: 8 - end_location: - row: 280 - column: 8 + edits: + - content: "\n ----" + location: + row: 280 + column: 8 + end_location: + row: 280 + column: 8 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -174,13 +182,14 @@ expression: diagnostics row: 301 column: 11 fix: - content: "\n ----" - location: - row: 297 - column: 13 - end_location: - row: 297 - column: 13 + edits: + - content: "\n ----" + location: + row: 297 + column: 13 + end_location: + row: 297 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -194,13 +203,14 @@ expression: diagnostics row: 315 column: 7 fix: - content: "\n ----" - location: - row: 312 - column: 9 - end_location: - row: 312 - column: 9 + edits: + - content: "\n ----" + location: + row: 312 + column: 9 + end_location: + row: 312 + column: 9 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -214,13 +224,14 @@ expression: diagnostics row: 328 column: 11 fix: - content: "\n ----" - location: - row: 324 - column: 13 - end_location: - row: 324 - column: 13 + edits: + - content: "\n ----" + location: + row: 324 + column: 13 + end_location: + row: 324 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -234,13 +245,14 @@ expression: diagnostics row: 339 column: 11 fix: - content: "\n ----" - location: - row: 336 - column: 13 - end_location: - row: 336 - column: 13 + edits: + - content: "\n ----" + location: + row: 336 + column: 13 + end_location: + row: 336 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -254,13 +266,14 @@ expression: diagnostics row: 352 column: 11 fix: - content: "\n ----" - location: - row: 348 - column: 13 - end_location: - row: 348 - column: 13 + edits: + - content: "\n ----" + location: + row: 348 + column: 13 + end_location: + row: 348 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -274,13 +287,14 @@ expression: diagnostics row: 364 column: 11 fix: - content: "\n ----" - location: - row: 361 - column: 13 - end_location: - row: 361 - column: 13 + edits: + - content: "\n ----" + location: + row: 361 + column: 13 + end_location: + row: 361 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -294,13 +308,14 @@ expression: diagnostics row: 376 column: 11 fix: - content: "\n ----" - location: - row: 373 - column: 13 - end_location: - row: 373 - column: 13 + edits: + - content: "\n ----" + location: + row: 373 + column: 13 + end_location: + row: 373 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -314,13 +329,14 @@ expression: diagnostics row: 391 column: 11 fix: - content: "\n ----" - location: - row: 382 - column: 13 - end_location: - row: 382 - column: 13 + edits: + - content: "\n ----" + location: + row: 382 + column: 13 + end_location: + row: 382 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -334,12 +350,13 @@ expression: diagnostics row: 506 column: 11 fix: - content: "\n ----" - location: - row: 503 - column: 13 - end_location: - row: 503 - column: 13 + edits: + - content: "\n ----" + location: + row: 503 + column: 13 + end_location: + row: 503 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap index 9cfc4904360ab..b6bca24b8b032 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 101 column: 7 fix: - content: "" - location: - row: 97 - column: 0 - end_location: - row: 98 - column: 0 + edits: + - content: "" + location: + row: 97 + column: 0 + end_location: + row: 98 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap index 5e5cb0560c02b..3fffe00c0c350 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 114 column: 7 fix: - content: " -------\n" - location: - row: 111 - column: 0 - end_location: - row: 112 - column: 0 + edits: + - content: " -------\n" + location: + row: 111 + column: 0 + end_location: + row: 112 + column: 0 parent: ~ - kind: name: SectionUnderlineMatchesSectionLength @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: " -------\n" - location: - row: 225 - column: 0 - end_location: - row: 226 - column: 0 + edits: + - content: " -------\n" + location: + row: 225 + column: 0 + end_location: + row: 226 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap index e43d165ab6611..40663326f6a7b 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 87 column: 7 fix: - content: "\n" - location: - row: 79 - column: 11 - end_location: - row: 79 - column: 11 + edits: + - content: "\n" + location: + row: 79 + column: 11 + end_location: + row: 79 + column: 11 parent: ~ - kind: name: NoBlankLineAfterSection @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n" - location: - row: 226 - column: 31 - end_location: - row: 226 - column: 31 + edits: + - content: "\n" + location: + row: 226 + column: 31 + end_location: + row: 226 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap index b9f8cf5a87299..5b7d266655046 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 87 column: 7 fix: - content: "\n" - location: - row: 80 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "\n" + location: + row: 80 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeSection @@ -34,13 +35,14 @@ expression: diagnostics row: 138 column: 7 fix: - content: "\n" - location: - row: 134 - column: 0 - end_location: - row: 134 - column: 0 + edits: + - content: "\n" + location: + row: 134 + column: 0 + end_location: + row: 134 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeSection @@ -54,12 +56,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n" - location: - row: 227 - column: 0 - end_location: - row: 227 - column: 0 + edits: + - content: "\n" + location: + row: 227 + column: 0 + end_location: + row: 227 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap index 1d9436d0e16b5..f51bbd73568df 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "" - location: - row: 220 - column: 0 - end_location: - row: 221 - column: 0 + edits: + - content: "" + location: + row: 220 + column: 0 + end_location: + row: 221 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap index 58a097f3a9442..48a72b711f255 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 67 column: 14 fix: - content: "\n " - location: - row: 67 - column: 11 - end_location: - row: 67 - column: 11 + edits: + - content: "\n " + location: + row: 67 + column: 11 + end_location: + row: 67 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap index 069412293a53c..cd9ee5e575170 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 67 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 87 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 87 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 174 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 271 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap index ae9b6e13301c4..6ae1d9d5b7a70 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 355 column: 17 fix: - content: "." - location: - row: 355 - column: 14 - end_location: - row: 355 - column: 14 + edits: + - content: "." + location: + row: 355 + column: 14 + end_location: + row: 355 + column: 14 parent: ~ - kind: name: EndsInPunctuation @@ -34,13 +35,14 @@ expression: diagnostics row: 406 column: 39 fix: - content: "." - location: - row: 406 - column: 36 - end_location: - row: 406 - column: 36 + edits: + - content: "." + location: + row: 406 + column: 36 + end_location: + row: 406 + column: 36 parent: ~ - kind: name: EndsInPunctuation @@ -54,13 +56,14 @@ expression: diagnostics row: 410 column: 24 fix: - content: "." - location: - row: 410 - column: 21 - end_location: - row: 410 - column: 21 + edits: + - content: "." + location: + row: 410 + column: 21 + end_location: + row: 410 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -74,13 +77,14 @@ expression: diagnostics row: 416 column: 24 fix: - content: "." - location: - row: 416 - column: 21 - end_location: - row: 416 - column: 21 + edits: + - content: "." + location: + row: 416 + column: 21 + end_location: + row: 416 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -94,13 +98,14 @@ expression: diagnostics row: 422 column: 49 fix: - content: "." - location: - row: 422 - column: 46 - end_location: - row: 422 - column: 46 + edits: + - content: "." + location: + row: 422 + column: 46 + end_location: + row: 422 + column: 46 parent: ~ - kind: name: EndsInPunctuation @@ -114,13 +119,14 @@ expression: diagnostics row: 429 column: 63 fix: - content: "." - location: - row: 429 - column: 60 - end_location: - row: 429 - column: 60 + edits: + - content: "." + location: + row: 429 + column: 60 + end_location: + row: 429 + column: 60 parent: ~ - kind: name: EndsInPunctuation @@ -134,13 +140,14 @@ expression: diagnostics row: 470 column: 24 fix: - content: "." - location: - row: 470 - column: 21 - end_location: - row: 470 - column: 21 + edits: + - content: "." + location: + row: 470 + column: 21 + end_location: + row: 470 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -154,13 +161,14 @@ expression: diagnostics row: 475 column: 24 fix: - content: "." - location: - row: 475 - column: 21 - end_location: - row: 475 - column: 21 + edits: + - content: "." + location: + row: 475 + column: 21 + end_location: + row: 475 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -174,13 +182,14 @@ expression: diagnostics row: 480 column: 24 fix: - content: "." - location: - row: 480 - column: 21 - end_location: - row: 480 - column: 21 + edits: + - content: "." + location: + row: 480 + column: 21 + end_location: + row: 480 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -194,13 +203,14 @@ expression: diagnostics row: 487 column: 24 fix: - content: "." - location: - row: 487 - column: 21 - end_location: - row: 487 - column: 21 + edits: + - content: "." + location: + row: 487 + column: 21 + end_location: + row: 487 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -214,13 +224,14 @@ expression: diagnostics row: 520 column: 32 fix: - content: "." - location: - row: 520 - column: 29 - end_location: - row: 520 - column: 29 + edits: + - content: "." + location: + row: 520 + column: 29 + end_location: + row: 520 + column: 29 parent: ~ - kind: name: EndsInPunctuation @@ -234,13 +245,14 @@ expression: diagnostics row: 581 column: 51 fix: - content: "." - location: - row: 581 - column: 47 - end_location: - row: 581 - column: 47 + edits: + - content: "." + location: + row: 581 + column: 47 + end_location: + row: 581 + column: 47 parent: ~ - kind: name: EndsInPunctuation @@ -254,12 +266,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "." - location: - row: 615 - column: 14 - end_location: - row: 615 - column: 14 + edits: + - content: "." + location: + row: 615 + column: 14 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap index 73c343dbf0aa9..227c6bde89b5a 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 292 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 309 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 333 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 345 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 358 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 370 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 398 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 434 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 449 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 468 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 498 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap index 574d074691e21..1f36cc53d4b99 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 34 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverloadWithDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 90 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverloadWithDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 110 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap index 3904d446a908f..f677c308cd652 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 74 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 80 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap index 87dedbc2c4190..ee557fe9286f7 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap index 01db548f2ac7c..11a73d0c9fdb3 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 72 fix: - content: "\n " - location: - row: 3 - column: 69 - end_location: - row: 3 - column: 69 + edits: + - content: "\n " + location: + row: 3 + column: 69 + end_location: + row: 3 + column: 69 parent: ~ - kind: name: EndsInPeriod @@ -34,12 +35,13 @@ expression: diagnostics row: 3 column: 72 fix: - content: "." - location: - row: 3 - column: 69 - end_location: - row: 3 - column: 69 + edits: + - content: "." + location: + row: 3 + column: 69 + end_location: + row: 3 + column: 69 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap index 092c96dde8a48..40ea741fcf0cd 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 77 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 98 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 108 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap index 092c96dde8a48..40ea741fcf0cd 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 77 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 98 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 108 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap index bf44e0e586158..c22ff2be05cd1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 16 fix: - content: import os - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 20 + edits: + - content: import os + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 20 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "from collections import (\n Counter,\n namedtuple,\n)" - location: - row: 4 - column: 0 - end_location: - row: 8 - column: 1 + edits: + - content: "from collections import (\n Counter,\n namedtuple,\n)" + location: + row: 4 + column: 0 + end_location: + row: 8 + column: 1 parent: row: 4 column: 0 @@ -56,13 +58,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ - kind: name: UnusedImport @@ -76,13 +79,14 @@ expression: diagnostics row: 32 column: 17 fix: - content: "" - location: - row: 32 - column: 0 - end_location: - row: 33 - column: 0 + edits: + - content: "" + location: + row: 32 + column: 0 + end_location: + row: 33 + column: 0 parent: ~ - kind: name: UnusedImport @@ -96,13 +100,14 @@ expression: diagnostics row: 33 column: 20 fix: - content: pass - location: - row: 33 - column: 4 - end_location: - row: 33 - column: 20 + edits: + - content: pass + location: + row: 33 + column: 4 + end_location: + row: 33 + column: 20 parent: ~ - kind: name: UnusedImport @@ -116,13 +121,14 @@ expression: diagnostics row: 37 column: 18 fix: - content: "" - location: - row: 37 - column: 0 - end_location: - row: 38 - column: 0 + edits: + - content: "" + location: + row: 37 + column: 0 + end_location: + row: 38 + column: 0 parent: ~ - kind: name: UnusedImport @@ -136,13 +142,14 @@ expression: diagnostics row: 52 column: 21 fix: - content: pass - location: - row: 52 - column: 8 - end_location: - row: 52 - column: 21 + edits: + - content: pass + location: + row: 52 + column: 8 + end_location: + row: 52 + column: 21 parent: ~ - kind: name: UnusedImport @@ -156,13 +163,14 @@ expression: diagnostics row: 93 column: 16 fix: - content: "" - location: - row: 93 - column: 0 - end_location: - row: 94 - column: 0 + edits: + - content: "" + location: + row: 93 + column: 0 + end_location: + row: 94 + column: 0 parent: ~ - kind: name: UnusedImport @@ -176,12 +184,13 @@ expression: diagnostics row: 94 column: 16 fix: - content: pass - location: - row: 94 - column: 8 - end_location: - row: 94 - column: 16 + edits: + - content: pass + location: + row: 94 + column: 8 + end_location: + row: 94 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap index 4cbd0ed01205a..fe57883496d94 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedImport @@ -27,12 +28,13 @@ expression: diagnostics row: 15 column: 21 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap index a5c6b1c42ea9a..c751046a6f181 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 34 fix: - content: from pathlib import Path - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 34 + edits: + - content: from pathlib import Path + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap index 996cba05d72aa..fdc93c86fa328 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 10 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,12 +77,13 @@ expression: diagnostics row: 5 column: 15 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap index 05cc93ce00949..4cdc05670dfae 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 39 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 8 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 8 + column: 0 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 52 fix: - content: "" - location: - row: 10 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "" + location: + row: 10 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 17 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,12 +77,13 @@ expression: diagnostics row: 19 column: 35 fix: - content: "" - location: - row: 19 - column: 0 - end_location: - row: 20 - column: 0 + edits: + - content: "" + location: + row: 19 + column: 0 + end_location: + row: 20 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap index d37c97c8d6b31..26c761165fbf9 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 30 column: 9 fix: - content: "from typing import (\n Mapping, # noqa: F401\n )" - location: - row: 28 - column: 0 - end_location: - row: 31 - column: 1 + edits: + - content: "from typing import (\n Mapping, # noqa: F401\n )" + location: + row: 28 + column: 0 + end_location: + row: 31 + column: 1 parent: row: 28 column: 0 @@ -36,13 +37,14 @@ expression: diagnostics row: 66 column: 28 fix: - content: "" - location: - row: 66 - column: 0 - end_location: - row: 67 - column: 0 + edits: + - content: "" + location: + row: 66 + column: 0 + end_location: + row: 67 + column: 0 parent: ~ - kind: name: UnusedImport @@ -56,12 +58,13 @@ expression: diagnostics row: 66 column: 48 fix: - content: "" - location: - row: 66 - column: 0 - end_location: - row: 67 - column: 0 + edits: + - content: "" + location: + row: 66 + column: 0 + end_location: + row: 67 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap index 67906f90eaf75..d982dcdd7b0b8 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 24 fix: - content: from foo import bar - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 24 + edits: + - content: from foo import bar + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap index 46f5f7e9d0303..3bbd7f34192c5 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ImportShadowedByLoopVar @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap index 9c0e4b471474a..4c1b2e55f4438 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithImportStar @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap index 00540ae80beaa..7d99889c0e61f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LateFutureImport @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap index 8198af8529214..fbd5576126253 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithImportStarUsage @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap index c101ddb004505..602346a919cb2 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithNestedImportStarUsage @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap index b09a80f9cce76..c63e5b852ab83 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 2 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap index db23c4bbbf95d..be184831cb893 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap index 6a234ce4d6bd7..77d85cc0f63b9 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap index 5fbe4c9b6fcc2..43137e94f10c1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap index 8d90f66e443fb..0c9ea1242db11 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedSequence @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedSequence @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 23 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap index eb9482cd86e61..7ed8501d3f4b2 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap index 4ce003bf45f3f..ca3c771a41d44 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 34 fix: - content: "{a: \"?\", }" - location: - row: 3 - column: 16 - end_location: - row: 3 - column: 34 + edits: + - content: "{a: \"?\", }" + location: + row: 3 + column: 16 + end_location: + row: 3 + column: 34 parent: ~ - kind: name: PercentFormatExtraNamedArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 29 fix: - content: "{\"a\": 1, }" - location: - row: 8 - column: 10 - end_location: - row: 8 - column: 29 + edits: + - content: "{\"a\": 1, }" + location: + row: 8 + column: 10 + end_location: + row: 8 + column: 29 parent: ~ - kind: name: PercentFormatExtraNamedArguments @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 29 fix: - content: "{'a': 1, }" - location: - row: 9 - column: 10 - end_location: - row: 9 - column: 29 + edits: + - content: "{'a': 1, }" + location: + row: 9 + column: 10 + end_location: + row: 9 + column: 29 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap index 478a4b2758231..47b9def7ab724 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 32 fix: - content: "{'bar': 1, }" - location: - row: 8 - column: 12 - end_location: - row: 8 - column: 32 + edits: + - content: "{'bar': 1, }" + location: + row: 8 + column: 12 + end_location: + row: 8 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap index c17bd63ad361a..1920eefef1260 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap index c0b03a36b927a..c65ec7342b296 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatMixedPositionalAndNamed @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatMixedPositionalAndNamed @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap index 850e30d4344c9..c92b4f2762ca5 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatPositionalCountMismatch @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap index 7ec0566b8c371..f99993fae8a7f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap index 119a6f2763008..7d4cb81e07174 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap index 9cc98456441d7..c08df9397b437 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 9 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap index 3a5f720fceda0..9d67298fc913f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 21 fix: - content: "\"{}\".format(1, )" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 21 + edits: + - content: "\"{}\".format(1, )" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 21 parent: ~ - kind: name: StringDotFormatExtraNamedArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 34 fix: - content: "\"{bar}{}\".format(1, bar=2, )" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 34 + edits: + - content: "\"{bar}{}\".format(1, bar=2, )" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 34 parent: ~ - kind: name: StringDotFormatExtraNamedArguments @@ -54,12 +56,13 @@ expression: diagnostics row: 4 column: 51 fix: - content: "\"{bar:{spam}}\".format(bar=2, spam=3, )" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 51 + edits: + - content: "\"{bar:{spam}}\".format(bar=2, spam=3, )" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 51 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap index 1d691a0df0bfe..b2d110a1a61bd 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 18 fix: - content: "\"{0}\".format(1, )" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 18 + edits: + - content: "\"{0}\".format(1, )" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 18 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 21 fix: - content: "\"{0}\".format(2, )" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 21 + edits: + - content: "\"{0}\".format(2, )" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 21 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 25 fix: - content: "\"{1:{0}}\".format(1, 2, )" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 25 + edits: + - content: "\"{1:{0}}\".format(1, 2, )" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 25 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 21 fix: - content: "\"{0}{2}\".format(1, )" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 21 + edits: + - content: "\"{0}{2}\".format(1, )" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 21 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 48 fix: - content: "\"{0.arg[1]!r:0{1['arg']}{0}}\".format(2, 3, )" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 48 + edits: + - content: "\"{0.arg[1]!r:0{1['arg']}{0}}\".format(2, 3, )" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 48 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 17 fix: - content: "\"{}\".format(1, )" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 17 + edits: + - content: "\"{}\".format(1, )" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 17 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -134,13 +140,14 @@ expression: diagnostics row: 11 column: 20 fix: - content: "\"{}\".format(1, )" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 20 + edits: + - content: "\"{}\".format(1, )" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 20 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -154,12 +161,13 @@ expression: diagnostics row: 13 column: 23 fix: - content: "\"{:{}}\".format(1, 2, )" - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 23 + edits: + - content: "\"{:{}}\".format(1, 2, )" + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap index 223e944fa4f06..daa2284d21a1a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap index 174646994ae84..9a33fce1a73ad 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMixingAutomatic @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap index 2b6686884f844..eb367fd3a379a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 10 fix: - content: "\"def\"" - location: - row: 6 - column: 4 - end_location: - row: 6 - column: 10 + edits: + - content: "\"def\"" + location: + row: 6 + column: 4 + end_location: + row: 6 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 10 fix: - content: "\"def\"" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 10 + edits: + - content: "\"def\"" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 10 fix: - content: "\"def\"" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 10 + edits: + - content: "\"def\"" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -74,13 +77,14 @@ expression: diagnostics row: 13 column: 8 fix: - content: "\"a\"" - location: - row: 13 - column: 4 - end_location: - row: 13 - column: 8 + edits: + - content: "\"a\"" + location: + row: 13 + column: 4 + end_location: + row: 13 + column: 8 parent: ~ - kind: name: FStringMissingPlaceholders @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: "\"b\"" - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 8 + edits: + - content: "\"b\"" + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 8 parent: ~ - kind: name: FStringMissingPlaceholders @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 9 fix: - content: "\"d\"" - location: - row: 16 - column: 5 - end_location: - row: 16 - column: 9 + edits: + - content: "\"d\"" + location: + row: 16 + column: 5 + end_location: + row: 16 + column: 9 parent: ~ - kind: name: FStringMissingPlaceholders @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 9 fix: - content: "r\"e\"" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 9 + edits: + - content: "r\"e\"" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 9 parent: ~ - kind: name: FStringMissingPlaceholders @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 7 fix: - content: "\"\"" - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 7 + edits: + - content: "\"\"" + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 7 parent: ~ - kind: name: FStringMissingPlaceholders @@ -174,13 +182,14 @@ expression: diagnostics row: 25 column: 16 fix: - content: "\"z\"" - location: - row: 25 - column: 12 - end_location: - row: 25 - column: 16 + edits: + - content: "\"z\"" + location: + row: 25 + column: 12 + end_location: + row: 25 + column: 16 parent: ~ - kind: name: FStringMissingPlaceholders @@ -194,13 +203,14 @@ expression: diagnostics row: 34 column: 13 fix: - content: "'0.2f'" - location: - row: 34 - column: 6 - end_location: - row: 34 - column: 13 + edits: + - content: "'0.2f'" + location: + row: 34 + column: 6 + end_location: + row: 34 + column: 13 parent: ~ - kind: name: FStringMissingPlaceholders @@ -214,13 +224,14 @@ expression: diagnostics row: 35 column: 6 fix: - content: "''" - location: - row: 35 - column: 3 - end_location: - row: 35 - column: 6 + edits: + - content: "''" + location: + row: 35 + column: 3 + end_location: + row: 35 + column: 6 parent: ~ - kind: name: FStringMissingPlaceholders @@ -234,13 +245,14 @@ expression: diagnostics row: 36 column: 11 fix: - content: "\"{test}\"" - location: - row: 36 - column: 0 - end_location: - row: 36 - column: 11 + edits: + - content: "\"{test}\"" + location: + row: 36 + column: 0 + end_location: + row: 36 + column: 11 parent: ~ - kind: name: FStringMissingPlaceholders @@ -254,13 +266,14 @@ expression: diagnostics row: 37 column: 11 fix: - content: "'{ 40 }'" - location: - row: 37 - column: 0 - end_location: - row: 37 - column: 11 + edits: + - content: "'{ 40 }'" + location: + row: 37 + column: 0 + end_location: + row: 37 + column: 11 parent: ~ - kind: name: FStringMissingPlaceholders @@ -274,13 +287,14 @@ expression: diagnostics row: 38 column: 12 fix: - content: "\"{a {x}\"" - location: - row: 38 - column: 0 - end_location: - row: 38 - column: 12 + edits: + - content: "\"{a {x}\"" + location: + row: 38 + column: 0 + end_location: + row: 38 + column: 12 parent: ~ - kind: name: FStringMissingPlaceholders @@ -294,12 +308,13 @@ expression: diagnostics row: 39 column: 12 fix: - content: "\"{{x}}\"" - location: - row: 39 - column: 0 - end_location: - row: 39 - column: 12 + edits: + - content: "\"{{x}}\"" + location: + row: 39 + column: 0 + end_location: + row: 39 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap index f47ed6f68a164..9a946aed81a43 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -79,13 +84,14 @@ expression: diagnostics row: 18 column: 7 fix: - content: "" - location: - row: 17 - column: 10 - end_location: - row: 18 - column: 10 + edits: + - content: "" + location: + row: 17 + column: 10 + end_location: + row: 18 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -98,7 +104,8 @@ expression: diagnostics end_location: row: 23 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -111,7 +118,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -125,13 +133,14 @@ expression: diagnostics row: 25 column: 7 fix: - content: "" - location: - row: 24 - column: 10 - end_location: - row: 25 - column: 10 + edits: + - content: "" + location: + row: 24 + column: 10 + end_location: + row: 25 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -144,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -158,13 +168,14 @@ expression: diagnostics row: 31 column: 7 fix: - content: "" - location: - row: 30 - column: 10 - end_location: - row: 31 - column: 10 + edits: + - content: "" + location: + row: 30 + column: 10 + end_location: + row: 31 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -177,7 +188,8 @@ expression: diagnostics end_location: row: 32 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -190,7 +202,8 @@ expression: diagnostics end_location: row: 33 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -203,7 +216,8 @@ expression: diagnostics end_location: row: 34 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -216,7 +230,8 @@ expression: diagnostics end_location: row: 41 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -229,7 +244,8 @@ expression: diagnostics end_location: row: 43 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -243,13 +259,14 @@ expression: diagnostics row: 45 column: 7 fix: - content: "" - location: - row: 44 - column: 8 - end_location: - row: 45 - column: 10 + edits: + - content: "" + location: + row: 44 + column: 8 + end_location: + row: 45 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -263,13 +280,14 @@ expression: diagnostics row: 49 column: 16 fix: - content: "" - location: - row: 49 - column: 11 - end_location: - row: 49 - column: 19 + edits: + - content: "" + location: + row: 49 + column: 11 + end_location: + row: 49 + column: 19 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -283,12 +301,13 @@ expression: diagnostics row: 50 column: 24 fix: - content: "" - location: - row: 50 - column: 19 - end_location: - row: 50 - column: 27 + edits: + - content: "" + location: + row: 50 + column: 19 + end_location: + row: 50 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap index 305cdf4132fa2..208fecf663b95 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -53,13 +56,14 @@ expression: diagnostics row: 13 column: 5 fix: - content: "" - location: - row: 12 - column: 8 - end_location: - row: 13 - column: 8 + edits: + - content: "" + location: + row: 12 + column: 8 + end_location: + row: 13 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -72,7 +76,8 @@ expression: diagnostics end_location: row: 18 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -85,7 +90,8 @@ expression: diagnostics end_location: row: 19 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -99,13 +105,14 @@ expression: diagnostics row: 20 column: 5 fix: - content: "" - location: - row: 19 - column: 8 - end_location: - row: 20 - column: 8 + edits: + - content: "" + location: + row: 19 + column: 8 + end_location: + row: 20 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -118,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -132,13 +140,14 @@ expression: diagnostics row: 26 column: 5 fix: - content: "" - location: - row: 25 - column: 8 - end_location: - row: 26 - column: 8 + edits: + - content: "" + location: + row: 25 + column: 8 + end_location: + row: 26 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -151,7 +160,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -164,7 +174,8 @@ expression: diagnostics end_location: row: 28 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -177,7 +188,8 @@ expression: diagnostics end_location: row: 29 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -191,13 +203,14 @@ expression: diagnostics row: 35 column: 5 fix: - content: "" - location: - row: 34 - column: 10 - end_location: - row: 35 - column: 8 + edits: + - content: "" + location: + row: 34 + column: 10 + end_location: + row: 35 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -210,7 +223,8 @@ expression: diagnostics end_location: row: 37 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -223,7 +237,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -236,7 +251,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -250,13 +266,14 @@ expression: diagnostics row: 44 column: 12 fix: - content: "" - location: - row: 44 - column: 9 - end_location: - row: 44 - column: 15 + edits: + - content: "" + location: + row: 44 + column: 9 + end_location: + row: 44 + column: 15 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -270,12 +287,13 @@ expression: diagnostics row: 45 column: 18 fix: - content: "" - location: - row: 45 - column: 15 - end_location: - row: 45 - column: 21 + edits: + - content: "" + location: + row: 45 + column: 15 + end_location: + row: 45 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap index 60d21ceeb57b5..82fcc60c9ef68 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap index 658a30b929bdb..0888401cd7694 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap index ca090efb58787..978f797d1de5c 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 13 fix: - content: "==" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 7 + edits: + - content: "==" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 7 parent: ~ - kind: name: IsLiteral @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "!=" - location: - row: 4 - column: 7 - end_location: - row: 4 - column: 13 + edits: + - content: "!=" + location: + row: 4 + column: 7 + end_location: + row: 4 + column: 13 parent: ~ - kind: name: IsLiteral @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: "!=" - location: - row: 7 - column: 7 - end_location: - row: 8 - column: 11 + edits: + - content: "!=" + location: + row: 7 + column: 7 + end_location: + row: 8 + column: 11 parent: ~ - kind: name: IsLiteral @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 17 fix: - content: "==" - location: - row: 11 - column: 9 - end_location: - row: 11 - column: 11 + edits: + - content: "==" + location: + row: 11 + column: 9 + end_location: + row: 11 + column: 11 parent: ~ - kind: name: IsLiteral @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: "==" - location: - row: 14 - column: 14 - end_location: - row: 14 - column: 16 + edits: + - content: "==" + location: + row: 14 + column: 14 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: IsLiteral @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 20 fix: - content: "==" - location: - row: 17 - column: 16 - end_location: - row: 17 - column: 18 + edits: + - content: "==" + location: + row: 17 + column: 16 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: IsLiteral @@ -134,12 +140,13 @@ expression: diagnostics row: 20 column: 19 fix: - content: "==" - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 17 + edits: + - content: "==" + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 17 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap index 143a1ece5752e..699f6670fedc7 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap index d8b5f883fc9b7..c7933656000a8 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap index b34152f0905ed..63778de5a0989 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 23 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap index a99dcce3ea127..4af49916b297f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap index 19c160ef6c01c..3fed848e212dc 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 11 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap index 1623807514744..380245e2ed5b8 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReturnOutsideFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap index 839fe65c1b7c7..815fb029a9153 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DefaultExceptNotLast @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DefaultExceptNotLast @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap index 57bed07018a2d..f24632e9a6b88 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ForwardAnnotationSyntaxError @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap index dcbae234d05ae..691386a334dea 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap index a25bc30b53c9c..c8b9cb596ff6f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap index 1e4ef1d35f390..348cf335aaa9b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap index bc9a8d525569b..1f649021dd71a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap index fd70244356f9e..f6e51ff0fd9eb 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap index 5ae127d83d75d..bd17c803fd0cc 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedWhileUnused @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap index b521c2d22ba57..8523de0f76e0b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap index 7f0942c349300..f378435df7e37 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 32 column: 12 - fix: ~ + fix: + edits: [] parent: row: 30 column: 0 diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap index d10e460688256..81a8a458337e1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap index d10e460688256..81a8a458337e1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap index f215f9172a902..8f882bdbeed40 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap index f9ca75790e217..f35c794fee284 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap index ec4d243b9f991..125bb01955eed 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap index 8150eed9051bd..0e181509d761a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 83 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 87 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 90 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 92 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 93 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 115 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 123 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 123 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap index 3169f1650924a..ba54d1f3a996d 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 30 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap index 6d7f4ef38f735..184f2d8ccc238 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 18 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 23 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap index 70434005f759e..6ab5739fb17d1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 25 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap index e00249d624a88..044856c82498f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap index 95a0495a9ad9b..eb0342e45fb8d 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap index e7e78cce896a1..ad54e16231bb4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap index b67025ac82f72..9f35ed9acab74 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 24 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap index 1c6d725376822..6bafbd2fa07fb 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap index d6b13983e1ca6..4b97359b43c74 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap index 6becc38817e8f..43b8563d18fe8 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 22 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap index c1de83dff0621..cd0f3e6eb4cf4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap index c1de83dff0621..cd0f3e6eb4cf4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap index d03ab14a1833d..26fc5cd7d055f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap index 8d4deac77ee9b..b21516447a9dd 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 17 - end_location: - row: 3 - column: 22 + edits: + - content: "" + location: + row: 3 + column: 17 + end_location: + row: 3 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 8 + edits: + - content: "" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 21 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -86,7 +90,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -100,13 +105,14 @@ expression: diagnostics row: 26 column: 16 fix: - content: "" - location: - row: 26 - column: 13 - end_location: - row: 26 - column: 19 + edits: + - content: "" + location: + row: 26 + column: 13 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: UnusedVariable @@ -120,13 +126,14 @@ expression: diagnostics row: 51 column: 9 fix: - content: pass - location: - row: 51 - column: 8 - end_location: - row: 51 - column: 13 + edits: + - content: pass + location: + row: 51 + column: 8 + end_location: + row: 51 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -140,13 +147,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "" - location: - row: 79 - column: 21 - end_location: - row: 79 - column: 32 + edits: + - content: "" + location: + row: 79 + column: 21 + end_location: + row: 79 + column: 32 parent: ~ - kind: name: UnusedVariable @@ -160,13 +168,14 @@ expression: diagnostics row: 85 column: 31 fix: - content: "" - location: - row: 85 - column: 20 - end_location: - row: 85 - column: 31 + edits: + - content: "" + location: + row: 85 + column: 20 + end_location: + row: 85 + column: 31 parent: ~ - kind: name: UnusedVariable @@ -180,13 +189,14 @@ expression: diagnostics row: 102 column: 8 fix: - content: "" - location: - row: 102 - column: 0 - end_location: - row: 103 - column: 0 + edits: + - content: "" + location: + row: 102 + column: 0 + end_location: + row: 103 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 115 column: 7 fix: - content: "" - location: - row: 115 - column: 4 - end_location: - row: 115 - column: 10 + edits: + - content: "" + location: + row: 115 + column: 4 + end_location: + row: 115 + column: 10 parent: ~ - kind: name: UnusedVariable @@ -219,6 +230,7 @@ expression: diagnostics end_location: row: 122 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap index b5a9eb03e0d3e..70d3dac7a0862 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -40,13 +42,14 @@ expression: diagnostics row: 16 column: 19 fix: - content: "" - location: - row: 16 - column: 13 - end_location: - row: 16 - column: 22 + edits: + - content: "" + location: + row: 16 + column: 13 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -60,13 +63,14 @@ expression: diagnostics row: 20 column: 10 fix: - content: "" - location: - row: 20 - column: 4 - end_location: - row: 20 - column: 13 + edits: + - content: "" + location: + row: 20 + column: 4 + end_location: + row: 20 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 24 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -92,7 +97,8 @@ expression: diagnostics end_location: row: 24 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -105,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -118,6 +125,7 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap index ef855b950c52d..45a5cd9bb0329 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 5 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 5 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 5 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 5 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -94,13 +98,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "" - location: - row: 21 - column: 14 - end_location: - row: 21 - column: 20 + edits: + - content: "" + location: + row: 21 + column: 14 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnusedVariable @@ -114,13 +119,14 @@ expression: diagnostics row: 27 column: 21 fix: - content: "" - location: - row: 27 - column: 15 - end_location: - row: 27 - column: 21 + edits: + - content: "" + location: + row: 27 + column: 15 + end_location: + row: 27 + column: 21 parent: ~ - kind: name: UnusedVariable @@ -134,13 +140,14 @@ expression: diagnostics row: 27 column: 34 fix: - content: "" - location: - row: 27 - column: 28 - end_location: - row: 27 - column: 34 + edits: + - content: "" + location: + row: 27 + column: 28 + end_location: + row: 27 + column: 34 parent: ~ - kind: name: UnusedVariable @@ -154,13 +161,14 @@ expression: diagnostics row: 27 column: 47 fix: - content: "" - location: - row: 27 - column: 41 - end_location: - row: 27 - column: 47 + edits: + - content: "" + location: + row: 27 + column: 41 + end_location: + row: 27 + column: 47 parent: ~ - kind: name: UnusedVariable @@ -173,7 +181,8 @@ expression: diagnostics end_location: row: 32 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -186,7 +195,8 @@ expression: diagnostics end_location: row: 32 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 33 column: 22 fix: - content: "" - location: - row: 33 - column: 15 - end_location: - row: 33 - column: 25 + edits: + - content: "" + location: + row: 33 + column: 15 + end_location: + row: 33 + column: 25 parent: ~ - kind: name: UnusedVariable @@ -220,13 +231,14 @@ expression: diagnostics row: 34 column: 11 fix: - content: "" - location: - row: 34 - column: 4 - end_location: - row: 34 - column: 14 + edits: + - content: "" + location: + row: 34 + column: 4 + end_location: + row: 34 + column: 14 parent: ~ - kind: name: UnusedVariable @@ -240,13 +252,14 @@ expression: diagnostics row: 40 column: 27 fix: - content: "" - location: - row: 40 - column: 21 - end_location: - row: 40 - column: 27 + edits: + - content: "" + location: + row: 40 + column: 21 + end_location: + row: 40 + column: 27 parent: ~ - kind: name: UnusedVariable @@ -260,13 +273,14 @@ expression: diagnostics row: 45 column: 48 fix: - content: "" - location: - row: 45 - column: 42 - end_location: - row: 45 - column: 48 + edits: + - content: "" + location: + row: 45 + column: 42 + end_location: + row: 45 + column: 48 parent: ~ - kind: name: UnusedVariable @@ -280,13 +294,14 @@ expression: diagnostics row: 50 column: 5 fix: - content: "" - location: - row: 50 - column: 4 - end_location: - row: 50 - column: 8 + edits: + - content: "" + location: + row: 50 + column: 4 + end_location: + row: 50 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -300,13 +315,14 @@ expression: diagnostics row: 56 column: 5 fix: - content: "" - location: - row: 56 - column: 4 - end_location: - row: 57 - column: 8 + edits: + - content: "" + location: + row: 56 + column: 4 + end_location: + row: 57 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -320,13 +336,14 @@ expression: diagnostics row: 61 column: 5 fix: - content: pass - location: - row: 61 - column: 4 - end_location: - row: 65 - column: 5 + edits: + - content: pass + location: + row: 61 + column: 4 + end_location: + row: 65 + column: 5 parent: ~ - kind: name: UnusedVariable @@ -340,13 +357,14 @@ expression: diagnostics row: 67 column: 5 fix: - content: "" - location: - row: 67 - column: 0 - end_location: - row: 69 - column: 0 + edits: + - content: "" + location: + row: 67 + column: 0 + end_location: + row: 69 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -360,13 +378,14 @@ expression: diagnostics row: 72 column: 25 fix: - content: "" - location: - row: 72 - column: 18 - end_location: - row: 72 - column: 26 + edits: + - content: "" + location: + row: 72 + column: 18 + end_location: + row: 72 + column: 26 parent: ~ - kind: name: UnusedVariable @@ -380,13 +399,14 @@ expression: diagnostics row: 77 column: 26 fix: - content: "" - location: - row: 77 - column: 19 - end_location: - row: 77 - column: 27 + edits: + - content: "" + location: + row: 77 + column: 19 + end_location: + row: 77 + column: 27 parent: ~ - kind: name: UnusedVariable @@ -400,13 +420,14 @@ expression: diagnostics row: 87 column: 12 fix: - content: "" - location: - row: 87 - column: 4 - end_location: - row: 87 - column: 15 + edits: + - content: "" + location: + row: 87 + column: 4 + end_location: + row: 87 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -420,13 +441,14 @@ expression: diagnostics row: 93 column: 12 fix: - content: "" - location: - row: 93 - column: 4 - end_location: - row: 93 - column: 15 + edits: + - content: "" + location: + row: 93 + column: 4 + end_location: + row: 93 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -440,13 +462,14 @@ expression: diagnostics row: 93 column: 17 fix: - content: "" - location: - row: 93 - column: 15 - end_location: - row: 93 - column: 20 + edits: + - content: "" + location: + row: 93 + column: 15 + end_location: + row: 93 + column: 20 parent: ~ - kind: name: UnusedVariable @@ -460,13 +483,14 @@ expression: diagnostics row: 97 column: 12 fix: - content: "" - location: - row: 97 - column: 4 - end_location: - row: 97 - column: 15 + edits: + - content: "" + location: + row: 97 + column: 4 + end_location: + row: 97 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -480,13 +504,14 @@ expression: diagnostics row: 101 column: 21 fix: - content: "" - location: - row: 101 - column: 13 - end_location: - row: 101 - column: 24 + edits: + - content: "" + location: + row: 101 + column: 13 + end_location: + row: 101 + column: 24 parent: ~ - kind: name: UnusedVariable @@ -500,13 +525,14 @@ expression: diagnostics row: 105 column: 12 fix: - content: "" - location: - row: 105 - column: 4 - end_location: - row: 105 - column: 15 + edits: + - content: "" + location: + row: 105 + column: 4 + end_location: + row: 105 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -520,12 +546,13 @@ expression: diagnostics row: 105 column: 17 fix: - content: "" - location: - row: 105 - column: 15 - end_location: - row: 105 - column: 20 + edits: + - content: "" + location: + row: 105 + column: 15 + end_location: + row: 105 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap index 1c19b4677d301..c91b70138adff 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedAnnotation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap index 5946d80c9ddb9..f8f8af07323fe 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 24 fix: - content: NotImplementedError - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 24 + edits: + - content: NotImplementedError + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 24 parent: ~ - kind: name: RaiseNotImplemented @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 24 fix: - content: NotImplementedError - location: - row: 6 - column: 10 - end_location: - row: 6 - column: 24 + edits: + - content: NotImplementedError + location: + row: 6 + column: 10 + end_location: + row: 6 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap index 0892fb0e1bda5..14a66e16b14d9 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 1 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap index 5cbd5b323f039..97f8d198f7e06 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap index 0ed26ac2746a4..c4f66b74873cf 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 7 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap index 51757829ed118..794babbdc2268 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 17 - end_location: - row: 3 - column: 22 + edits: + - content: "" + location: + row: 3 + column: 17 + end_location: + row: 3 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -66,7 +69,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -80,13 +84,14 @@ expression: diagnostics row: 26 column: 16 fix: - content: "" - location: - row: 26 - column: 13 - end_location: - row: 26 - column: 19 + edits: + - content: "" + location: + row: 26 + column: 13 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: UnusedVariable @@ -100,13 +105,14 @@ expression: diagnostics row: 35 column: 5 fix: - content: "" - location: - row: 35 - column: 0 - end_location: - row: 36 - column: 0 + edits: + - content: "" + location: + row: 35 + column: 0 + end_location: + row: 36 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -120,13 +126,14 @@ expression: diagnostics row: 36 column: 6 fix: - content: "" - location: - row: 36 - column: 0 - end_location: - row: 37 - column: 0 + edits: + - content: "" + location: + row: 36 + column: 0 + end_location: + row: 37 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -140,13 +147,14 @@ expression: diagnostics row: 37 column: 14 fix: - content: pass - location: - row: 37 - column: 4 - end_location: - row: 37 - column: 18 + edits: + - content: pass + location: + row: 37 + column: 4 + end_location: + row: 37 + column: 18 parent: ~ - kind: name: UnusedVariable @@ -160,13 +168,14 @@ expression: diagnostics row: 51 column: 9 fix: - content: pass - location: - row: 51 - column: 8 - end_location: - row: 51 - column: 13 + edits: + - content: pass + location: + row: 51 + column: 8 + end_location: + row: 51 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -180,13 +189,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "" - location: - row: 79 - column: 21 - end_location: - row: 79 - column: 32 + edits: + - content: "" + location: + row: 79 + column: 21 + end_location: + row: 79 + column: 32 parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 85 column: 31 fix: - content: "" - location: - row: 85 - column: 20 - end_location: - row: 85 - column: 31 + edits: + - content: "" + location: + row: 85 + column: 20 + end_location: + row: 85 + column: 31 parent: ~ - kind: name: UnusedVariable @@ -220,13 +231,14 @@ expression: diagnostics row: 102 column: 8 fix: - content: "" - location: - row: 102 - column: 0 - end_location: - row: 103 - column: 0 + edits: + - content: "" + location: + row: 102 + column: 0 + end_location: + row: 103 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -240,13 +252,14 @@ expression: diagnostics row: 115 column: 7 fix: - content: "" - location: - row: 115 - column: 4 - end_location: - row: 115 - column: 10 + edits: + - content: "" + location: + row: 115 + column: 4 + end_location: + row: 115 + column: 10 parent: ~ - kind: name: UnusedVariable @@ -259,6 +272,7 @@ expression: diagnostics end_location: row: 122 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap index 2702ad271096b..ad4f44813367c 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: "from models import (\n Fruit,\n)" - location: - row: 6 - column: 0 - end_location: - row: 9 - column: 1 + edits: + - content: "from models import (\n Fruit,\n)" + location: + row: 6 + column: 0 + end_location: + row: 9 + column: 1 parent: row: 6 column: 0 @@ -35,6 +36,7 @@ expression: diagnostics end_location: row: 26 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap index bf90f48fa7be6..f86b19ea6563b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: "" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 17 + edits: + - content: "" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 17 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 21 + edits: + - content: "" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 21 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "" - location: - row: 7 - column: 4 - end_location: - row: 8 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 4 + end_location: + row: 8 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: "" - location: - row: 11 - column: 4 - end_location: - row: 12 - column: 10 + edits: + - content: "" + location: + row: 11 + column: 4 + end_location: + row: 12 + column: 10 parent: ~ - kind: name: UnusedImport @@ -94,13 +98,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: "" - location: - row: 16 - column: 11 - end_location: - row: 16 - column: 22 + edits: + - content: "" + location: + row: 16 + column: 11 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: UnusedImport @@ -114,13 +119,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "" - location: - row: 21 - column: 9 - end_location: - row: 21 - column: 20 + edits: + - content: "" + location: + row: 21 + column: 9 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnusedImport @@ -134,13 +140,14 @@ expression: diagnostics row: 26 column: 21 fix: - content: "" - location: - row: 26 - column: 10 - end_location: - row: 26 - column: 21 + edits: + - content: "" + location: + row: 26 + column: 10 + end_location: + row: 26 + column: 21 parent: ~ - kind: name: UnusedImport @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 22 fix: - content: "" - location: - row: 30 - column: 11 - end_location: - row: 30 - column: 24 + edits: + - content: "" + location: + row: 30 + column: 11 + end_location: + row: 30 + column: 24 parent: ~ - kind: name: UnusedImport @@ -174,13 +182,14 @@ expression: diagnostics row: 31 column: 26 fix: - content: "" - location: - row: 31 - column: 15 - end_location: - row: 31 - column: 32 + edits: + - content: "" + location: + row: 31 + column: 15 + end_location: + row: 31 + column: 32 parent: ~ - kind: name: UnusedImport @@ -194,13 +203,14 @@ expression: diagnostics row: 35 column: 20 fix: - content: "" - location: - row: 35 - column: 8 - end_location: - row: 36 - column: 4 + edits: + - content: "" + location: + row: 35 + column: 8 + end_location: + row: 36 + column: 4 parent: ~ - kind: name: UnusedImport @@ -214,13 +224,14 @@ expression: diagnostics row: 40 column: 21 fix: - content: "" - location: - row: 40 - column: 9 - end_location: - row: 41 - column: 9 + edits: + - content: "" + location: + row: 40 + column: 9 + end_location: + row: 41 + column: 9 parent: ~ - kind: name: UnusedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 46 column: 12 fix: - content: "" - location: - row: 46 - column: 0 - end_location: - row: 46 - column: 12 + edits: + - content: "" + location: + row: 46 + column: 0 + end_location: + row: 46 + column: 12 parent: ~ - kind: name: UnusedImport @@ -254,12 +266,13 @@ expression: diagnostics row: 51 column: 12 fix: - content: "" - location: - row: 51 - column: 0 - end_location: - row: 51 - column: 12 + edits: + - content: "" + location: + row: 51 + column: 0 + end_location: + row: 51 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap index 8a4902f8b8e5b..d2a19041eff94 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 26 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 33 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap index 70838b4e4bfdb..257d6a3522b61 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 26 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap index 2261bf5cefb96..2a7669ea95b1a 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Eval @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap index d9bbc05eb8e8c..df44521c29e5a 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedLogWarn @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap index 7fac68accaca8..6d70be4101ffe 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketTypeIgnore @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketTypeIgnore @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap index f0580d9171392..355070d6460ed 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap index 8f1b751fd60a5..d59d525183243 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 33 fix: - content: collections - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 33 + edits: + - content: collections + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 33 parent: ~ - kind: name: UselessImportAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 50 fix: - content: OrderedDict - location: - row: 7 - column: 24 - end_location: - row: 7 - column: 50 + edits: + - content: OrderedDict + location: + row: 7 + column: 24 + end_location: + row: 7 + column: 50 parent: ~ - kind: name: UselessImportAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 24 fix: - content: bar - location: - row: 16 - column: 14 - end_location: - row: 16 - column: 24 + edits: + - content: bar + location: + row: 16 + column: 14 + end_location: + row: 16 + column: 24 parent: ~ - kind: name: UselessImportAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 28 fix: - content: bar - location: - row: 19 - column: 18 - end_location: - row: 19 - column: 28 + edits: + - content: bar + location: + row: 19 + column: 18 + end_location: + row: 19 + column: 28 parent: ~ - kind: name: UselessImportAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 20 column: 38 fix: - content: foobar - location: - row: 20 - column: 22 - end_location: - row: 20 - column: 38 + edits: + - content: foobar + location: + row: 20 + column: 22 + end_location: + row: 20 + column: 38 parent: ~ - kind: name: UselessImportAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 22 column: 24 fix: - content: foo - location: - row: 22 - column: 14 - end_location: - row: 22 - column: 24 + edits: + - content: foo + location: + row: 22 + column: 14 + end_location: + row: 22 + column: 24 parent: ~ - kind: name: UselessImportAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 23 column: 38 fix: - content: foo2 - location: - row: 23 - column: 26 - end_location: - row: 23 - column: 38 + edits: + - content: foo2 + location: + row: 23 + column: 26 + end_location: + row: 23 + column: 38 parent: ~ - kind: name: UselessImportAlias @@ -154,12 +161,13 @@ expression: diagnostics row: 25 column: 36 fix: - content: foobar - location: - row: 25 - column: 20 - end_location: - row: 25 - column: 36 + edits: + - content: foobar + location: + row: 25 + column: 20 + end_location: + row: 25 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap index 22a19ceab507f..2c80effe31da3 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap index 2ab715103fc64..757b0cfc7c9cd 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDirectLambdaCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDirectLambdaCall @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 5 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap index b8d866d607af9..c0e73b2288986 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldInInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap index 286a00647fe3b..6695ca7774b52 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReturnInInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 22 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap index 4105992e10950..851f00db37472 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonlocalWithoutBinding @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonlocalWithoutBinding @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap index 068b1e22a8948..b7354a3ef04a3 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 33 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 51 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 59 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 69 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 77 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 87 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 95 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 105 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap index c0f2133f35ca7..393722042144f 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllObject @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap index c680941527551..ce7ad4de9bb86 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap index 54a6caa18b6de..9f100344902fc 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AwaitOutsideAsync @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 25 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap index 3dfe66d106387..4f2f58a8a50e5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingTooManyArgs @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap index ef42fd6718241..ceb943c049206 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap index 84aeb65de1c9e..2e86704030018 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 13 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 14 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 15 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap index a9045f4a832f6..e859c7f071102 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 14 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 20 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 26 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 32 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 38 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 44 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 51 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 61 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 64 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -208,6 +223,7 @@ expression: diagnostics end_location: row: 67 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap index 632fa3450696b..fbb3b59dfcd30 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap index dd70149cc774a..45de6616d4ec5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap index af015497f03de..f32d9c253dd19 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 15 column: 6 fix: - content: "\\b" - location: - row: 15 - column: 5 - end_location: - row: 15 - column: 6 + edits: + - content: "\\b" + location: + row: 15 + column: 5 + end_location: + row: 15 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap index e561dfd916f71..35ef7abf4c79f 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 21 column: 12 fix: - content: "\\x1A" - location: - row: 21 - column: 11 - end_location: - row: 21 - column: 12 + edits: + - content: "\\x1A" + location: + row: 21 + column: 11 + end_location: + row: 21 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap index e4d3f36871ff6..b59d93903ea36 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 25 column: 16 fix: - content: "\\x1B" - location: - row: 25 - column: 15 - end_location: - row: 25 - column: 16 + edits: + - content: "\\x1B" + location: + row: 25 + column: 15 + end_location: + row: 25 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap index ee1ad0847a945..6f4ea050a486e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 30 column: 5 fix: - content: "\\0" - location: - row: 30 - column: 4 - end_location: - row: 30 - column: 5 + edits: + - content: "\\0" + location: + row: 30 + column: 4 + end_location: + row: 30 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap index b084eedd58f1c..4bc299394025f 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 13 fix: - content: "\\u200b" - location: - row: 34 - column: 12 - end_location: - row: 34 - column: 13 + edits: + - content: "\\u200b" + location: + row: 34 + column: 12 + end_location: + row: 34 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap index ddef7164e9908..07a710eabb02b 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 23 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 29 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 35 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 41 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 51 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap index f181a1f07b24a..54ccfacf8b4d1 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PropertyWithParameters @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PropertyWithParameters @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 15 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap index 913c22ba60fb5..517e4fa4946df 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 22 fix: - content: from os import path - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 22 + edits: + - content: from os import path + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 22 parent: ~ - kind: name: ManualFromImport @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 31 fix: - content: from foo.bar import foobar - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 31 + edits: + - content: from foo.bar import foobar + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 31 parent: ~ - kind: name: ManualFromImport @@ -53,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap index b5380f2bc8af1..e3beb188df07a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap index d5f086b68fc74..07345560b7d56 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap index 322ae7535f644..43394e2d32732 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 33 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap index b2400d3d11c04..a7aedded427a6 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap index 23b0e7f2a1457..286b680ee7c18 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 96 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 103 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 19 column: 73 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 158 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 24 column: 95 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 30 column: 75 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap index 4ef84cbe8fb75..372b6e9a407ba 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ - kind: name: UselessReturn @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: "" - location: - row: 11 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "" + location: + row: 11 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ - kind: name: UselessReturn @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 15 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: UselessReturn @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 19 fix: - content: "" - location: - row: 22 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "" + location: + row: 22 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ - kind: name: UselessReturn @@ -94,13 +98,14 @@ expression: diagnostics row: 50 column: 15 fix: - content: "" - location: - row: 50 - column: 0 - end_location: - row: 51 - column: 0 + edits: + - content: "" + location: + row: 50 + column: 0 + end_location: + row: 51 + column: 0 parent: ~ - kind: name: UselessReturn @@ -114,12 +119,13 @@ expression: diagnostics row: 60 column: 19 fix: - content: "" - location: - row: 60 - column: 0 - end_location: - row: 61 - column: 0 + edits: + - content: "" + location: + row: 60 + column: 0 + end_location: + row: 61 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap index 22d0407e3c8a3..1ac50fdd49fd5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap index 6a63792286b09..9194663f6cb25 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: sys.exit - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: sys.exit + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: sys.exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: sys.exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: sys.exit - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: sys.exit + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: sys.exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: sys.exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap index 70d0d1bfb7adb..aaae64b983265 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: sys2.exit - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: sys2.exit + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: sys2.exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: sys2.exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: sys2.exit - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: sys2.exit + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: sys2.exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: sys2.exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap index ce71f751f2505..7f8d276fc96ea 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap index 8d0d1c486b0df..73ad483c42904 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: exit2 - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: exit2 + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit2 - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit2 + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: exit2 - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: exit2 + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit2 - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit2 + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap index ce71f751f2505..7f8d276fc96ea 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap index 01c3275d9b62e..1f55fd9ccf21c 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap index 2fc6598d5a43e..640f5591245b8 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 65 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap index cd5b71bb71df8..f898548cf711b 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 39 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollapsibleElseIf @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 49 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap index 47d9afeaba29f..a47a699ea6cb9 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 37 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 42 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 88 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 98 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap index 581a8edff6837..c54a5c294843c 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 17 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 18 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 19 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 20 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 21 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 22 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 23 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap index 7b67d36f4ed53..0f5623398aad4 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalVariableNotAssigned @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap index 40bcbf8e9982f..9c1349aba2751 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 43 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 60 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 70 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap index 21e7211e11785..8b8ae4cf14da9 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BinaryOpException @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap index 2561e3db083b7..11c3f79d77dc7 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 10 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap index e95084fe18dba..036ca9e2f3422 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 18 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 34 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 41 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 46 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 50 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 54 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 58 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 63 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 68 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 73 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 78 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 78 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 95 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 112 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 118 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 133 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 138 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 143 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 148 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 153 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 155 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap index 5c3725765a945..c1bdd8baa13d0 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 59 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 65 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 74 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap index 37b29557b8a27..014a69457223d 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 33 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 40 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 41 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 49 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 56 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 69 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 74 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 89 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 91 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 95 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap index 403cd755a1512..52e6f0a22a2ae 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap index aabf525484bb2..1f61aac388352 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap index 5861ab0c68bc9..103c90283679c 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyBranches @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 15 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap index a670693bf4a5c..7ff3ae63343d5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap index 67f07d53037b6..990ddd90ffe30 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyStatements @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyStatements @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap index 0916a7073a813..9fd965be8b66b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 24 fix: - content: pass - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 24 + edits: + - content: pass + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 24 parent: ~ - kind: name: UselessMetaclassType @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 24 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap index 1957ca50ad02f..3d1df34baa1e4 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 8 fix: - content: str - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 8 + edits: + - content: str + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 8 parent: ~ - kind: name: TypeOfPrimitive @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 9 fix: - content: bytes - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 9 + edits: + - content: bytes + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 9 parent: ~ - kind: name: TypeOfPrimitive @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 7 fix: - content: int - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 7 + edits: + - content: int + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 7 parent: ~ - kind: name: TypeOfPrimitive @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: float - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 9 + edits: + - content: float + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: TypeOfPrimitive @@ -94,12 +98,13 @@ expression: diagnostics row: 5 column: 8 fix: - content: complex - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 8 + edits: + - content: complex + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap index 451a6e89fcde0..432c089001046 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 14 fix: - content: "" - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 15 + edits: + - content: "" + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: UselessObjectInheritance @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 10 fix: - content: "" - location: - row: 9 - column: 7 - end_location: - row: 11 - column: 1 + edits: + - content: "" + location: + row: 9 + column: 7 + end_location: + row: 11 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 10 fix: - content: "" - location: - row: 15 - column: 7 - end_location: - row: 18 - column: 1 + edits: + - content: "" + location: + row: 15 + column: 7 + end_location: + row: 18 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 10 fix: - content: "" - location: - row: 22 - column: 7 - end_location: - row: 25 - column: 1 + edits: + - content: "" + location: + row: 22 + column: 7 + end_location: + row: 25 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -94,13 +98,14 @@ expression: diagnostics row: 31 column: 10 fix: - content: "" - location: - row: 29 - column: 7 - end_location: - row: 32 - column: 1 + edits: + - content: "" + location: + row: 29 + column: 7 + end_location: + row: 32 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -114,13 +119,14 @@ expression: diagnostics row: 37 column: 10 fix: - content: "" - location: - row: 36 - column: 7 - end_location: - row: 39 - column: 1 + edits: + - content: "" + location: + row: 36 + column: 7 + end_location: + row: 39 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -134,13 +140,14 @@ expression: diagnostics row: 45 column: 10 fix: - content: "" - location: - row: 43 - column: 7 - end_location: - row: 47 - column: 1 + edits: + - content: "" + location: + row: 43 + column: 7 + end_location: + row: 47 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -154,13 +161,14 @@ expression: diagnostics row: 53 column: 10 fix: - content: "" - location: - row: 51 - column: 7 - end_location: - row: 55 - column: 1 + edits: + - content: "" + location: + row: 51 + column: 7 + end_location: + row: 55 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -174,13 +182,14 @@ expression: diagnostics row: 61 column: 10 fix: - content: "" - location: - row: 59 - column: 7 - end_location: - row: 63 - column: 1 + edits: + - content: "" + location: + row: 59 + column: 7 + end_location: + row: 63 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -194,13 +203,14 @@ expression: diagnostics row: 69 column: 10 fix: - content: "" - location: - row: 67 - column: 7 - end_location: - row: 71 - column: 1 + edits: + - content: "" + location: + row: 67 + column: 7 + end_location: + row: 71 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -214,13 +224,14 @@ expression: diagnostics row: 75 column: 17 fix: - content: "" - location: - row: 75 - column: 9 - end_location: - row: 75 - column: 17 + edits: + - content: "" + location: + row: 75 + column: 9 + end_location: + row: 75 + column: 17 parent: ~ - kind: name: UselessObjectInheritance @@ -234,13 +245,14 @@ expression: diagnostics row: 79 column: 14 fix: - content: "" - location: - row: 79 - column: 8 - end_location: - row: 79 - column: 16 + edits: + - content: "" + location: + row: 79 + column: 8 + end_location: + row: 79 + column: 16 parent: ~ - kind: name: UselessObjectInheritance @@ -254,13 +266,14 @@ expression: diagnostics row: 84 column: 10 fix: - content: "" - location: - row: 84 - column: 4 - end_location: - row: 85 - column: 4 + edits: + - content: "" + location: + row: 84 + column: 4 + end_location: + row: 85 + column: 4 parent: ~ - kind: name: UselessObjectInheritance @@ -274,13 +287,14 @@ expression: diagnostics row: 92 column: 10 fix: - content: "" - location: - row: 91 - column: 5 - end_location: - row: 92 - column: 10 + edits: + - content: "" + location: + row: 91 + column: 5 + end_location: + row: 92 + column: 10 parent: ~ - kind: name: UselessObjectInheritance @@ -294,13 +308,14 @@ expression: diagnostics row: 98 column: 10 fix: - content: "" - location: - row: 98 - column: 4 - end_location: - row: 99 - column: 4 + edits: + - content: "" + location: + row: 98 + column: 4 + end_location: + row: 99 + column: 4 parent: ~ - kind: name: UselessObjectInheritance @@ -314,13 +329,14 @@ expression: diagnostics row: 108 column: 10 fix: - content: "" - location: - row: 107 - column: 5 - end_location: - row: 108 - column: 10 + edits: + - content: "" + location: + row: 107 + column: 5 + end_location: + row: 108 + column: 10 parent: ~ - kind: name: UselessObjectInheritance @@ -334,13 +350,14 @@ expression: diagnostics row: 114 column: 18 fix: - content: "" - location: - row: 114 - column: 11 - end_location: - row: 114 - column: 19 + edits: + - content: "" + location: + row: 114 + column: 11 + end_location: + row: 114 + column: 19 parent: ~ - kind: name: UselessObjectInheritance @@ -354,13 +371,14 @@ expression: diagnostics row: 119 column: 10 fix: - content: "" - location: - row: 118 - column: 7 - end_location: - row: 120 - column: 1 + edits: + - content: "" + location: + row: 118 + column: 7 + end_location: + row: 120 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -374,13 +392,14 @@ expression: diagnostics row: 125 column: 10 fix: - content: "" - location: - row: 124 - column: 7 - end_location: - row: 126 - column: 1 + edits: + - content: "" + location: + row: 124 + column: 7 + end_location: + row: 126 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -394,12 +413,13 @@ expression: diagnostics row: 131 column: 10 fix: - content: "" - location: - row: 130 - column: 7 - end_location: - row: 133 - column: 1 + edits: + - content: "" + location: + row: 130 + column: 7 + end_location: + row: 133 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap index 5e84443a946c1..025aa8b5a877d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 25 fix: - content: self.assertEqual - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 25 + edits: + - content: self.assertEqual + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 25 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 25 fix: - content: self.assertEqual - location: - row: 7 - column: 8 - end_location: - row: 7 - column: 25 + edits: + - content: self.assertEqual + location: + row: 7 + column: 8 + end_location: + row: 7 + column: 25 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 34 fix: - content: self.assertAlmostEqual - location: - row: 9 - column: 8 - end_location: - row: 9 - column: 34 + edits: + - content: self.assertAlmostEqual + location: + row: 9 + column: 8 + end_location: + row: 9 + column: 34 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 35 fix: - content: self.assertNotRegex - location: - row: 10 - column: 8 - end_location: - row: 10 - column: 35 + edits: + - content: self.assertNotRegex + location: + row: 10 + column: 8 + end_location: + row: 10 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap index 9c24e1b513973..76939d840f633 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 20 fix: - content: list - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 20 + edits: + - content: list + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 20 parent: ~ - kind: name: NonPEP585Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 13 fix: - content: list - location: - row: 11 - column: 9 - end_location: - row: 11 - column: 13 + edits: + - content: list + location: + row: 11 + column: 9 + end_location: + row: 11 + column: 13 parent: ~ - kind: name: NonPEP585Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 18 column: 15 fix: - content: list - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 15 + edits: + - content: list + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 15 parent: ~ - kind: name: NonPEP585Annotation @@ -74,13 +77,14 @@ expression: diagnostics row: 25 column: 14 fix: - content: list - location: - row: 25 - column: 9 - end_location: - row: 25 - column: 14 + edits: + - content: list + location: + row: 25 + column: 9 + end_location: + row: 25 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -94,13 +98,14 @@ expression: diagnostics row: 29 column: 14 fix: - content: list - location: - row: 29 - column: 10 - end_location: - row: 29 - column: 14 + edits: + - content: list + location: + row: 29 + column: 10 + end_location: + row: 29 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -114,13 +119,14 @@ expression: diagnostics row: 33 column: 15 fix: - content: list - location: - row: 33 - column: 11 - end_location: - row: 33 - column: 15 + edits: + - content: list + location: + row: 33 + column: 11 + end_location: + row: 33 + column: 15 parent: ~ - kind: name: NonPEP585Annotation @@ -134,13 +140,14 @@ expression: diagnostics row: 37 column: 14 fix: - content: list - location: - row: 37 - column: 10 - end_location: - row: 37 - column: 14 + edits: + - content: list + location: + row: 37 + column: 10 + end_location: + row: 37 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -154,13 +161,14 @@ expression: diagnostics row: 41 column: 16 fix: - content: list - location: - row: 41 - column: 12 - end_location: - row: 41 - column: 16 + edits: + - content: list + location: + row: 41 + column: 12 + end_location: + row: 41 + column: 16 parent: ~ - kind: name: NonPEP585Annotation @@ -173,7 +181,8 @@ expression: diagnostics end_location: row: 45 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -187,13 +196,14 @@ expression: diagnostics row: 49 column: 14 fix: - content: list - location: - row: 49 - column: 10 - end_location: - row: 49 - column: 14 + edits: + - content: list + location: + row: 49 + column: 10 + end_location: + row: 49 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -207,13 +217,14 @@ expression: diagnostics row: 49 column: 20 fix: - content: list - location: - row: 49 - column: 16 - end_location: - row: 49 - column: 20 + edits: + - content: list + location: + row: 49 + column: 16 + end_location: + row: 49 + column: 20 parent: ~ - kind: name: NonPEP585Annotation @@ -227,13 +238,14 @@ expression: diagnostics row: 53 column: 14 fix: - content: list - location: - row: 53 - column: 10 - end_location: - row: 53 - column: 14 + edits: + - content: list + location: + row: 53 + column: 10 + end_location: + row: 53 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -246,7 +258,8 @@ expression: diagnostics end_location: row: 53 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -259,7 +272,8 @@ expression: diagnostics end_location: row: 57 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -272,6 +286,7 @@ expression: diagnostics end_location: row: 57 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap index bfb0d275b5021..4686e4a01f20f 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 22 fix: - content: str | None - location: - row: 6 - column: 9 - end_location: - row: 6 - column: 22 + edits: + - content: str | None + location: + row: 6 + column: 9 + end_location: + row: 6 + column: 22 parent: ~ - kind: name: NonPEP604Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 29 fix: - content: str | None - location: - row: 10 - column: 9 - end_location: - row: 10 - column: 29 + edits: + - content: str | None + location: + row: 10 + column: 9 + end_location: + row: 10 + column: 29 parent: ~ - kind: name: NonPEP604Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 14 column: 45 fix: - content: "str | int | Union[float, bytes]" - location: - row: 14 - column: 9 - end_location: - row: 14 - column: 45 + edits: + - content: "str | int | Union[float, bytes]" + location: + row: 14 + column: 9 + end_location: + row: 14 + column: 45 parent: ~ - kind: name: NonPEP604Annotation @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 44 fix: - content: float | bytes - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 44 + edits: + - content: float | bytes + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 44 parent: ~ - kind: name: NonPEP604Annotation @@ -94,13 +98,14 @@ expression: diagnostics row: 18 column: 31 fix: - content: str | int - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 31 + edits: + - content: str | int + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 31 parent: ~ - kind: name: NonPEP604Annotation @@ -114,13 +119,14 @@ expression: diagnostics row: 22 column: 33 fix: - content: str | int - location: - row: 22 - column: 9 - end_location: - row: 22 - column: 33 + edits: + - content: str | int + location: + row: 22 + column: 9 + end_location: + row: 22 + column: 33 parent: ~ - kind: name: NonPEP604Annotation @@ -134,13 +140,14 @@ expression: diagnostics row: 26 column: 40 fix: - content: "(str, int) | float" - location: - row: 26 - column: 9 - end_location: - row: 26 - column: 40 + edits: + - content: "(str, int) | float" + location: + row: 26 + column: 9 + end_location: + row: 26 + column: 40 parent: ~ - kind: name: NonPEP604Annotation @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 46 fix: - content: "str | int | Union[float, bytes]" - location: - row: 30 - column: 10 - end_location: - row: 30 - column: 46 + edits: + - content: "str | int | Union[float, bytes]" + location: + row: 30 + column: 10 + end_location: + row: 30 + column: 46 parent: ~ - kind: name: NonPEP604Annotation @@ -174,13 +182,14 @@ expression: diagnostics row: 30 column: 45 fix: - content: float | bytes - location: - row: 30 - column: 26 - end_location: - row: 30 - column: 45 + edits: + - content: float | bytes + location: + row: 30 + column: 26 + end_location: + row: 30 + column: 45 parent: ~ - kind: name: NonPEP604Annotation @@ -194,13 +203,14 @@ expression: diagnostics row: 34 column: 32 fix: - content: str | int - location: - row: 34 - column: 10 - end_location: - row: 34 - column: 32 + edits: + - content: str | int + location: + row: 34 + column: 10 + end_location: + row: 34 + column: 32 parent: ~ - kind: name: NonPEP604Annotation @@ -214,13 +224,14 @@ expression: diagnostics row: 47 column: 20 fix: - content: str | None - location: - row: 47 - column: 7 - end_location: - row: 47 - column: 20 + edits: + - content: str | None + location: + row: 47 + column: 7 + end_location: + row: 47 + column: 20 parent: ~ - kind: name: NonPEP604Annotation @@ -234,12 +245,13 @@ expression: diagnostics row: 52 column: 22 fix: - content: str | int - location: - row: 52 - column: 7 - end_location: - row: 52 - column: 22 + edits: + - content: str | int + location: + row: 52 + column: 7 + end_location: + row: 52 + column: 22 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap index 064e73350db60..47599556aae9a 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 17 column: 35 fix: - content: super() - location: - row: 17 - column: 17 - end_location: - row: 17 - column: 35 + edits: + - content: super() + location: + row: 17 + column: 17 + end_location: + row: 17 + column: 35 parent: ~ - kind: name: SuperCallWithParameters @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 26 fix: - content: super() - location: - row: 18 - column: 8 - end_location: - row: 18 - column: 26 + edits: + - content: super() + location: + row: 18 + column: 8 + end_location: + row: 18 + column: 26 parent: ~ - kind: name: SuperCallWithParameters @@ -54,13 +56,14 @@ expression: diagnostics row: 22 column: 9 fix: - content: super() - location: - row: 19 - column: 8 - end_location: - row: 22 - column: 9 + edits: + - content: super() + location: + row: 19 + column: 8 + end_location: + row: 22 + column: 9 parent: ~ - kind: name: SuperCallWithParameters @@ -74,13 +77,14 @@ expression: diagnostics row: 36 column: 28 fix: - content: super() - location: - row: 36 - column: 8 - end_location: - row: 36 - column: 28 + edits: + - content: super() + location: + row: 36 + column: 8 + end_location: + row: 36 + column: 28 parent: ~ - kind: name: SuperCallWithParameters @@ -94,12 +98,13 @@ expression: diagnostics row: 50 column: 32 fix: - content: super() - location: - row: 50 - column: 12 - end_location: - row: 50 - column: 32 + edits: + - content: super() + location: + row: 50 + column: 12 + end_location: + row: 50 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap index c3a460d22b1fb..a5c0f4a26e365 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 0 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap index 42f86ee89c2e5..2c8d4acdd6e90 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap index 6bdcd5bbf136e..55bad0f03794d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 48 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 55 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 48 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 37 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 53 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 49 fix: - content: from __future__ import invalid_module - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 49 + edits: + - content: from __future__ import invalid_module + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 49 parent: ~ - kind: name: UnnecessaryFutureImport @@ -134,13 +140,14 @@ expression: diagnostics row: 9 column: 41 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -154,13 +161,14 @@ expression: diagnostics row: 10 column: 37 fix: - content: pass - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 37 + edits: + - content: pass + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 37 parent: ~ - kind: name: UnnecessaryFutureImport @@ -174,13 +182,14 @@ expression: diagnostics row: 13 column: 41 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -194,12 +203,13 @@ expression: diagnostics row: 14 column: 53 fix: - content: from __future__ import invalid_module - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 53 + edits: + - content: from __future__ import invalid_module + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 53 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap index 922e3e4f4eb88..98469008a2c81 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 22 fix: - content: functools.lru_cache - location: - row: 5 - column: 1 - end_location: - row: 5 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 5 + column: 1 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 12 fix: - content: lru_cache - location: - row: 10 - column: 1 - end_location: - row: 10 - column: 12 + edits: + - content: lru_cache + location: + row: 10 + column: 1 + end_location: + row: 10 + column: 12 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: functools.lru_cache - location: - row: 16 - column: 1 - end_location: - row: 16 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 16 + column: 1 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -74,12 +77,13 @@ expression: diagnostics row: 21 column: 22 fix: - content: functools.lru_cache - location: - row: 21 - column: 1 - end_location: - row: 21 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 21 + column: 1 + end_location: + row: 21 + column: 22 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap index 751fb400c833c..442fe28d0ad0f 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 21 fix: - content: "b\"foo\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 21 + edits: + - content: "b\"foo\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 21 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "b\"foo\"" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 18 + edits: + - content: "b\"foo\"" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 18 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: "b\"foo\"" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 14 + edits: + - content: "b\"foo\"" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 20 fix: - content: "b\"foo\"" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 20 + edits: + - content: "b\"foo\"" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 22 fix: - content: "b\"foo\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 30 fix: - content: "b\"foo\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 30 + edits: + - content: "b\"foo\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 30 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 1 fix: - content: "b\"\"\"\nLorem\n\nIpsum\n\"\"\"" - location: - row: 8 - column: 0 - end_location: - row: 14 - column: 1 + edits: + - content: "b\"\"\"\nLorem\n\nIpsum\n\"\"\"" + location: + row: 8 + column: 0 + end_location: + row: 14 + column: 1 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -154,13 +161,14 @@ expression: diagnostics row: 17 column: 20 fix: - content: "b\"Lorem \"\n b\"Ipsum\"" - location: - row: 16 - column: 4 - end_location: - row: 17 - column: 20 + edits: + - content: "b\"Lorem \"\n b\"Ipsum\"" + location: + row: 16 + column: 4 + end_location: + row: 17 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "b\"Lorem \" # Comment\n b\"Ipsum\"" - location: - row: 20 - column: 4 - end_location: - row: 21 - column: 20 + edits: + - content: "b\"Lorem \" # Comment\n b\"Ipsum\"" + location: + row: 20 + column: 4 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -194,13 +203,14 @@ expression: diagnostics row: 24 column: 29 fix: - content: "b\"Lorem \" b\"Ipsum\"" - location: - row: 24 - column: 4 - end_location: - row: 24 - column: 29 + edits: + - content: "b\"Lorem \" b\"Ipsum\"" + location: + row: 24 + column: 4 + end_location: + row: 24 + column: 29 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -214,13 +224,14 @@ expression: diagnostics row: 32 column: 27 fix: - content: "" - location: - row: 32 - column: 19 - end_location: - row: 32 - column: 26 + edits: + - content: "" + location: + row: 32 + column: 19 + end_location: + row: 32 + column: 26 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -234,13 +245,14 @@ expression: diagnostics row: 50 column: 31 fix: - content: "" - location: - row: 50 - column: 23 - end_location: - row: 50 - column: 30 + edits: + - content: "" + location: + row: 50 + column: 23 + end_location: + row: 50 + column: 30 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -254,13 +266,14 @@ expression: diagnostics row: 52 column: 39 fix: - content: "" - location: - row: 52 - column: 23 - end_location: - row: 52 - column: 38 + edits: + - content: "" + location: + row: 52 + column: 23 + end_location: + row: 52 + column: 38 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -274,13 +287,14 @@ expression: diagnostics row: 54 column: 24 fix: - content: "br\"foo\\o\"" - location: - row: 54 - column: 0 - end_location: - row: 54 - column: 24 + edits: + - content: "br\"foo\\o\"" + location: + row: 54 + column: 0 + end_location: + row: 54 + column: 24 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -294,13 +308,14 @@ expression: diagnostics row: 55 column: 22 fix: - content: "b\"foo\"" - location: - row: 55 - column: 0 - end_location: - row: 55 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 55 + column: 0 + end_location: + row: 55 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -314,13 +329,14 @@ expression: diagnostics row: 56 column: 24 fix: - content: "bR\"foo\\o\"" - location: - row: 56 - column: 0 - end_location: - row: 56 - column: 24 + edits: + - content: "bR\"foo\\o\"" + location: + row: 56 + column: 0 + end_location: + row: 56 + column: 24 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -334,13 +350,14 @@ expression: diagnostics row: 57 column: 22 fix: - content: "b\"foo\"" - location: - row: 57 - column: 0 - end_location: - row: 57 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 57 + column: 0 + end_location: + row: 57 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -354,12 +371,13 @@ expression: diagnostics row: 58 column: 20 fix: - content: "b\"foo\"" - location: - row: 58 - column: 6 - end_location: - row: 58 - column: 20 + edits: + - content: "b\"foo\"" + location: + row: 58 + column: 6 + end_location: + row: 58 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap index c667eb40b743f..bac5ea28c4a4d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 50 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 50 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 50 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 48 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 48 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 48 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 42 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 42 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 42 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 28 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 28 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -94,13 +98,14 @@ expression: diagnostics row: 17 column: 44 fix: - content: "class MyType(TypedDict):\n a: \"hello\"" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 44 + edits: + - content: "class MyType(TypedDict):\n a: \"hello\"" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 44 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -114,13 +119,14 @@ expression: diagnostics row: 18 column: 39 fix: - content: "class MyType(TypedDict):\n a: \"hello\"" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 39 + edits: + - content: "class MyType(TypedDict):\n a: \"hello\"" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 39 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -134,13 +140,14 @@ expression: diagnostics row: 21 column: 54 fix: - content: "class MyType(TypedDict):\n a: NotRequired[dict]" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 54 + edits: + - content: "class MyType(TypedDict):\n a: NotRequired[dict]" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 54 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -154,13 +161,14 @@ expression: diagnostics row: 24 column: 63 fix: - content: "class MyType(TypedDict, total=False):\n x: int\n y: int" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 63 + edits: + - content: "class MyType(TypedDict, total=False):\n x: int\n y: int" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 63 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -174,13 +182,14 @@ expression: diagnostics row: 27 column: 55 fix: - content: "class MyType(TypedDict):\n key: Literal[\"value\"]" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 55 + edits: + - content: "class MyType(TypedDict):\n key: Literal[\"value\"]" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 55 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -194,13 +203,14 @@ expression: diagnostics row: 30 column: 49 fix: - content: "class MyType(typing.TypedDict):\n key: int" - location: - row: 30 - column: 0 - end_location: - row: 30 - column: 49 + edits: + - content: "class MyType(typing.TypedDict):\n key: int" + location: + row: 30 + column: 0 + end_location: + row: 30 + column: 49 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -214,13 +224,14 @@ expression: diagnostics row: 40 column: 32 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 40 - column: 0 - end_location: - row: 40 - column: 32 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 40 + column: 0 + end_location: + row: 40 + column: 32 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -234,12 +245,13 @@ expression: diagnostics row: 43 column: 36 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 36 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap index 10161c5a5db80..bec9c534942e0 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 67 fix: - content: "class MyType(NamedTuple):\n a: int\n b: tuple[str, ...]" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 67 + edits: + - content: "class MyType(NamedTuple):\n a: int\n b: tuple[str, ...]" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 67 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 1 fix: - content: "class MyType(NamedTuple):\n a: int\n b: str = \"foo\"\n c: list[bool] = [True]" - location: - row: 8 - column: 0 - end_location: - row: 12 - column: 1 + edits: + - content: "class MyType(NamedTuple):\n a: int\n b: str = \"foo\"\n c: list[bool] = [True]" + location: + row: 8 + column: 0 + end_location: + row: 12 + column: 1 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 62 fix: - content: "class MyType(typing.NamedTuple):\n a: int\n b: str" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 62 + edits: + - content: "class MyType(typing.NamedTuple):\n a: int\n b: str" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 62 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -74,13 +77,14 @@ expression: diagnostics row: 28 column: 36 fix: - content: "class MyType(typing.NamedTuple):\n pass" - location: - row: 28 - column: 0 - end_location: - row: 28 - column: 36 + edits: + - content: "class MyType(typing.NamedTuple):\n pass" + location: + row: 28 + column: 0 + end_location: + row: 28 + column: 36 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -94,12 +98,13 @@ expression: diagnostics row: 31 column: 40 fix: - content: "class MyType(typing.NamedTuple):\n pass" - location: - row: 31 - column: 0 - end_location: - row: 31 - column: 40 + edits: + - content: "class MyType(typing.NamedTuple):\n pass" + location: + row: 31 + column: 0 + end_location: + row: 31 + column: 40 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap index c10dfd9933846..5522b543edca9 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 16 fix: - content: "" - location: - row: 1 - column: 10 - end_location: - row: 1 - column: 15 + edits: + - content: "" + location: + row: 1 + column: 10 + end_location: + row: 1 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 16 + edits: + - content: "" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 17 fix: - content: "\"rb\"" - location: - row: 3 - column: 12 - end_location: - row: 3 - column: 16 + edits: + - content: "\"rb\"" + location: + row: 3 + column: 12 + end_location: + row: 3 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 18 fix: - content: "\"rb\"" - location: - row: 4 - column: 12 - end_location: - row: 4 - column: 17 + edits: + - content: "\"rb\"" + location: + row: 4 + column: 12 + end_location: + row: 4 + column: 17 parent: ~ - kind: name: RedundantOpenModes @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: "" - location: - row: 5 - column: 10 - end_location: - row: 5 - column: 15 + edits: + - content: "" + location: + row: 5 + column: 10 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 17 fix: - content: "" - location: - row: 6 - column: 10 - end_location: - row: 6 - column: 16 + edits: + - content: "" + location: + row: 6 + column: 10 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -134,13 +140,14 @@ expression: diagnostics row: 7 column: 32 fix: - content: "" - location: - row: 7 - column: 8 - end_location: - row: 7 - column: 13 + edits: + - content: "" + location: + row: 7 + column: 8 + end_location: + row: 7 + column: 13 parent: ~ - kind: name: RedundantOpenModes @@ -154,13 +161,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: "\"w\"" - location: - row: 8 - column: 10 - end_location: - row: 8 - column: 14 + edits: + - content: "\"w\"" + location: + row: 8 + column: 10 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: RedundantOpenModes @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 21 fix: - content: "" - location: - row: 10 - column: 15 - end_location: - row: 10 - column: 20 + edits: + - content: "" + location: + row: 10 + column: 15 + end_location: + row: 10 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -194,13 +203,14 @@ expression: diagnostics row: 12 column: 22 fix: - content: "" - location: - row: 12 - column: 15 - end_location: - row: 12 - column: 21 + edits: + - content: "" + location: + row: 12 + column: 15 + end_location: + row: 12 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -214,13 +224,14 @@ expression: diagnostics row: 14 column: 22 fix: - content: "\"rb\"" - location: - row: 14 - column: 17 - end_location: - row: 14 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 14 + column: 17 + end_location: + row: 14 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -234,13 +245,14 @@ expression: diagnostics row: 16 column: 23 fix: - content: "\"rb\"" - location: - row: 16 - column: 17 - end_location: - row: 16 - column: 22 + edits: + - content: "\"rb\"" + location: + row: 16 + column: 17 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: RedundantOpenModes @@ -254,13 +266,14 @@ expression: diagnostics row: 18 column: 21 fix: - content: "" - location: - row: 18 - column: 15 - end_location: - row: 18 - column: 20 + edits: + - content: "" + location: + row: 18 + column: 15 + end_location: + row: 18 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -274,13 +287,14 @@ expression: diagnostics row: 20 column: 22 fix: - content: "" - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 21 + edits: + - content: "" + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -294,13 +308,14 @@ expression: diagnostics row: 22 column: 39 fix: - content: "" - location: - row: 22 - column: 15 - end_location: - row: 22 - column: 20 + edits: + - content: "" + location: + row: 22 + column: 15 + end_location: + row: 22 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -314,13 +329,14 @@ expression: diagnostics row: 24 column: 22 fix: - content: "\"w\"" - location: - row: 24 - column: 17 - end_location: - row: 24 - column: 21 + edits: + - content: "\"w\"" + location: + row: 24 + column: 17 + end_location: + row: 24 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -334,13 +350,14 @@ expression: diagnostics row: 27 column: 27 fix: - content: "" - location: - row: 27 - column: 21 - end_location: - row: 27 - column: 26 + edits: + - content: "" + location: + row: 27 + column: 21 + end_location: + row: 27 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -354,13 +371,14 @@ expression: diagnostics row: 28 column: 28 fix: - content: "\"rb\"" - location: - row: 28 - column: 23 - end_location: - row: 28 - column: 27 + edits: + - content: "\"rb\"" + location: + row: 28 + column: 23 + end_location: + row: 28 + column: 27 parent: ~ - kind: name: RedundantOpenModes @@ -374,13 +392,14 @@ expression: diagnostics row: 30 column: 32 fix: - content: "" - location: - row: 30 - column: 26 - end_location: - row: 30 - column: 31 + edits: + - content: "" + location: + row: 30 + column: 26 + end_location: + row: 30 + column: 31 parent: ~ - kind: name: RedundantOpenModes @@ -394,13 +413,14 @@ expression: diagnostics row: 32 column: 33 fix: - content: "\"rb\"" - location: - row: 32 - column: 28 - end_location: - row: 32 - column: 32 + edits: + - content: "\"rb\"" + location: + row: 32 + column: 28 + end_location: + row: 32 + column: 32 parent: ~ - kind: name: RedundantOpenModes @@ -414,13 +434,14 @@ expression: diagnostics row: 35 column: 21 fix: - content: "" - location: - row: 35 - column: 15 - end_location: - row: 35 - column: 20 + edits: + - content: "" + location: + row: 35 + column: 15 + end_location: + row: 35 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -434,13 +455,14 @@ expression: diagnostics row: 35 column: 45 fix: - content: "" - location: - row: 35 - column: 39 - end_location: - row: 35 - column: 44 + edits: + - content: "" + location: + row: 35 + column: 39 + end_location: + row: 35 + column: 44 parent: ~ - kind: name: RedundantOpenModes @@ -454,13 +476,14 @@ expression: diagnostics row: 37 column: 22 fix: - content: "\"rb\"" - location: - row: 37 - column: 17 - end_location: - row: 37 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 37 + column: 17 + end_location: + row: 37 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -474,13 +497,14 @@ expression: diagnostics row: 37 column: 47 fix: - content: "\"rb\"" - location: - row: 37 - column: 42 - end_location: - row: 37 - column: 46 + edits: + - content: "\"rb\"" + location: + row: 37 + column: 42 + end_location: + row: 37 + column: 46 parent: ~ - kind: name: RedundantOpenModes @@ -494,13 +518,14 @@ expression: diagnostics row: 40 column: 21 fix: - content: "" - location: - row: 40 - column: 10 - end_location: - row: 40 - column: 20 + edits: + - content: "" + location: + row: 40 + column: 10 + end_location: + row: 40 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -514,13 +539,14 @@ expression: diagnostics row: 41 column: 26 fix: - content: "" - location: - row: 41 - column: 15 - end_location: - row: 41 - column: 25 + edits: + - content: "" + location: + row: 41 + column: 15 + end_location: + row: 41 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -534,13 +560,14 @@ expression: diagnostics row: 42 column: 26 fix: - content: "" - location: - row: 42 - column: 5 - end_location: - row: 42 - column: 15 + edits: + - content: "" + location: + row: 42 + column: 5 + end_location: + row: 42 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -554,13 +581,14 @@ expression: diagnostics row: 44 column: 26 fix: - content: "" - location: - row: 44 - column: 15 - end_location: - row: 44 - column: 25 + edits: + - content: "" + location: + row: 44 + column: 15 + end_location: + row: 44 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -574,13 +602,14 @@ expression: diagnostics row: 46 column: 31 fix: - content: "" - location: - row: 46 - column: 20 - end_location: - row: 46 - column: 30 + edits: + - content: "" + location: + row: 46 + column: 20 + end_location: + row: 46 + column: 30 parent: ~ - kind: name: RedundantOpenModes @@ -594,13 +623,14 @@ expression: diagnostics row: 48 column: 31 fix: - content: "" - location: - row: 48 - column: 10 - end_location: - row: 48 - column: 20 + edits: + - content: "" + location: + row: 48 + column: 10 + end_location: + row: 48 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -614,13 +644,14 @@ expression: diagnostics row: 51 column: 22 fix: - content: "\"rb\"" - location: - row: 51 - column: 17 - end_location: - row: 51 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 51 + column: 17 + end_location: + row: 51 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -634,13 +665,14 @@ expression: diagnostics row: 52 column: 27 fix: - content: "\"rb\"" - location: - row: 52 - column: 22 - end_location: - row: 52 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 52 + column: 22 + end_location: + row: 52 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -654,13 +686,14 @@ expression: diagnostics row: 53 column: 27 fix: - content: "\"rb\"" - location: - row: 53 - column: 10 - end_location: - row: 53 - column: 14 + edits: + - content: "\"rb\"" + location: + row: 53 + column: 10 + end_location: + row: 53 + column: 14 parent: ~ - kind: name: RedundantOpenModes @@ -674,13 +707,14 @@ expression: diagnostics row: 55 column: 27 fix: - content: "\"rb\"" - location: - row: 55 - column: 22 - end_location: - row: 55 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 55 + column: 22 + end_location: + row: 55 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -694,13 +728,14 @@ expression: diagnostics row: 57 column: 32 fix: - content: "\"rb\"" - location: - row: 57 - column: 27 - end_location: - row: 57 - column: 31 + edits: + - content: "\"rb\"" + location: + row: 57 + column: 27 + end_location: + row: 57 + column: 31 parent: ~ - kind: name: RedundantOpenModes @@ -714,13 +749,14 @@ expression: diagnostics row: 59 column: 32 fix: - content: "\"rb\"" - location: - row: 59 - column: 15 - end_location: - row: 59 - column: 19 + edits: + - content: "\"rb\"" + location: + row: 59 + column: 15 + end_location: + row: 59 + column: 19 parent: ~ - kind: name: RedundantOpenModes @@ -734,13 +770,14 @@ expression: diagnostics row: 62 column: 110 fix: - content: "" - location: - row: 62 - column: 15 - end_location: - row: 62 - column: 25 + edits: + - content: "" + location: + row: 62 + column: 15 + end_location: + row: 62 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -754,13 +791,14 @@ expression: diagnostics row: 63 column: 110 fix: - content: "" - location: - row: 63 - column: 99 - end_location: - row: 63 - column: 109 + edits: + - content: "" + location: + row: 63 + column: 99 + end_location: + row: 63 + column: 109 parent: ~ - kind: name: RedundantOpenModes @@ -774,13 +812,14 @@ expression: diagnostics row: 64 column: 110 fix: - content: "" - location: - row: 64 - column: 58 - end_location: - row: 64 - column: 68 + edits: + - content: "" + location: + row: 64 + column: 58 + end_location: + row: 64 + column: 68 parent: ~ - kind: name: RedundantOpenModes @@ -794,13 +833,14 @@ expression: diagnostics row: 65 column: 110 fix: - content: "" - location: - row: 65 - column: 5 - end_location: - row: 65 - column: 15 + edits: + - content: "" + location: + row: 65 + column: 5 + end_location: + row: 65 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -814,13 +854,14 @@ expression: diagnostics row: 67 column: 111 fix: - content: "\"rb\"" - location: - row: 67 - column: 22 - end_location: - row: 67 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 67 + column: 22 + end_location: + row: 67 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -834,13 +875,14 @@ expression: diagnostics row: 68 column: 111 fix: - content: "\"rb\"" - location: - row: 68 - column: 106 - end_location: - row: 68 - column: 110 + edits: + - content: "\"rb\"" + location: + row: 68 + column: 106 + end_location: + row: 68 + column: 110 parent: ~ - kind: name: RedundantOpenModes @@ -854,13 +896,14 @@ expression: diagnostics row: 69 column: 111 fix: - content: "\"rb\"" - location: - row: 69 - column: 65 - end_location: - row: 69 - column: 69 + edits: + - content: "\"rb\"" + location: + row: 69 + column: 65 + end_location: + row: 69 + column: 69 parent: ~ - kind: name: RedundantOpenModes @@ -874,12 +917,13 @@ expression: diagnostics row: 70 column: 111 fix: - content: "\"rb\"" - location: - row: 70 - column: 10 - end_location: - row: 70 - column: 14 + edits: + - content: "\"rb\"" + location: + row: 70 + column: 10 + end_location: + row: 70 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap index d86ed2e71f05f..9ced091674cf6 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 20 column: 5 fix: - content: "\"\"" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 5 + edits: + - content: "\"\"" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 5 parent: ~ - kind: name: NativeLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 21 column: 10 fix: - content: "\"foo\"" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 10 + edits: + - content: "\"foo\"" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 10 parent: ~ - kind: name: NativeLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: "\"\"\"\nfoo\"\"\"" - location: - row: 22 - column: 0 - end_location: - row: 23 - column: 7 + edits: + - content: "\"\"\"\nfoo\"\"\"" + location: + row: 22 + column: 0 + end_location: + row: 23 + column: 7 parent: ~ - kind: name: NativeLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 7 fix: - content: "b\"\"" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 7 + edits: + - content: "b\"\"" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 7 parent: ~ - kind: name: NativeLiterals @@ -94,13 +98,14 @@ expression: diagnostics row: 25 column: 13 fix: - content: "b\"foo\"" - location: - row: 25 - column: 0 - end_location: - row: 25 - column: 13 + edits: + - content: "b\"foo\"" + location: + row: 25 + column: 0 + end_location: + row: 25 + column: 13 parent: ~ - kind: name: NativeLiterals @@ -114,12 +119,13 @@ expression: diagnostics row: 27 column: 7 fix: - content: "b\"\"\"\nfoo\"\"\"" - location: - row: 26 - column: 0 - end_location: - row: 27 - column: 7 + edits: + - content: "b\"\"\"\nfoo\"\"\"" + location: + row: 26 + column: 0 + end_location: + row: 27 + column: 7 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap index 8277f1f3fd0f5..05b74633fc67a 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 25 fix: - content: str - location: - row: 7 - column: 21 - end_location: - row: 7 - column: 25 + edits: + - content: str + location: + row: 7 + column: 21 + end_location: + row: 7 + column: 25 parent: ~ - kind: name: TypingTextStrAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 39 fix: - content: str - location: - row: 11 - column: 28 - end_location: - row: 11 - column: 39 + edits: + - content: str + location: + row: 11 + column: 28 + end_location: + row: 11 + column: 39 parent: ~ - kind: name: TypingTextStrAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 37 fix: - content: str - location: - row: 15 - column: 27 - end_location: - row: 15 - column: 37 + edits: + - content: str + location: + row: 15 + column: 27 + end_location: + row: 15 + column: 37 parent: ~ - kind: name: TypingTextStrAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 19 column: 35 fix: - content: str - location: - row: 19 - column: 28 - end_location: - row: 19 - column: 35 + edits: + - content: str + location: + row: 19 + column: 28 + end_location: + row: 19 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap index 18f24d85dfdcd..e0069c5ef5c5d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 55 fix: - content: open - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 12 + edits: + - content: open + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 12 parent: ~ - kind: name: OpenAlias @@ -33,6 +34,7 @@ expression: diagnostics end_location: row: 8 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap index ebfcaecd3f136..c4dcd7d94b60e 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 42 fix: - content: text - location: - row: 6 - column: 24 - end_location: - row: 6 - column: 42 + edits: + - content: text + location: + row: 6 + column: 24 + end_location: + row: 6 + column: 42 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: text - location: - row: 7 - column: 22 - end_location: - row: 7 - column: 40 + edits: + - content: text + location: + row: 7 + column: 22 + end_location: + row: 7 + column: 40 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 31 fix: - content: text - location: - row: 9 - column: 13 - end_location: - row: 9 - column: 31 + edits: + - content: text + location: + row: 9 + column: 13 + end_location: + row: 9 + column: 31 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 39 fix: - content: text - location: - row: 10 - column: 21 - end_location: - row: 10 - column: 39 + edits: + - content: text + location: + row: 10 + column: 21 + end_location: + row: 10 + column: 39 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap index 2d82b2b78f009..0aecf7a808db4 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap @@ -14,13 +14,21 @@ expression: diagnostics row: 4 column: 69 fix: - content: capture_output=True - location: - row: 4 - column: 22 - end_location: - row: 4 - column: 68 + edits: + - content: capture_output=True + location: + row: 4 + column: 22 + end_location: + row: 4 + column: 44 + - content: "" + location: + row: 4 + column: 44 + end_location: + row: 4 + column: 68 parent: ~ - kind: name: ReplaceStdoutStderr @@ -34,13 +42,21 @@ expression: diagnostics row: 6 column: 80 fix: - content: capture_output=True - location: - row: 6 - column: 33 - end_location: - row: 6 - column: 79 + edits: + - content: capture_output=True + location: + row: 6 + column: 33 + end_location: + row: 6 + column: 55 + - content: "" + location: + row: 6 + column: 55 + end_location: + row: 6 + column: 79 parent: ~ - kind: name: ReplaceStdoutStderr @@ -54,13 +70,21 @@ expression: diagnostics row: 8 column: 86 fix: - content: "capture_output=True, args=[\"foo\"]" - location: - row: 8 - column: 24 - end_location: - row: 8 - column: 85 + edits: + - content: capture_output=True + location: + row: 8 + column: 24 + end_location: + row: 8 + column: 46 + - content: "" + location: + row: 8 + column: 60 + end_location: + row: 8 + column: 85 parent: ~ - kind: name: ReplaceStdoutStderr @@ -74,13 +98,21 @@ expression: diagnostics row: 12 column: 1 fix: - content: "capture_output=True, check=True" - location: - row: 11 - column: 13 - end_location: - row: 11 - column: 71 + edits: + - content: capture_output=True + location: + row: 11 + column: 13 + end_location: + row: 11 + column: 35 + - content: "" + location: + row: 11 + column: 47 + end_location: + row: 11 + column: 71 parent: ~ - kind: name: ReplaceStdoutStderr @@ -94,13 +126,21 @@ expression: diagnostics row: 16 column: 1 fix: - content: "capture_output=True, check=True" - location: - row: 15 - column: 13 - end_location: - row: 15 - column: 71 + edits: + - content: capture_output=True + location: + row: 15 + column: 13 + end_location: + row: 15 + column: 35 + - content: "" + location: + row: 15 + column: 47 + end_location: + row: 15 + column: 71 parent: ~ - kind: name: ReplaceStdoutStderr @@ -114,13 +154,21 @@ expression: diagnostics row: 26 column: 1 fix: - content: "capture_output=True,\n check=True" - location: - row: 20 - column: 4 - end_location: - row: 22 - column: 26 + edits: + - content: capture_output=True + location: + row: 20 + column: 4 + end_location: + row: 20 + column: 26 + - content: "" + location: + row: 22 + column: 4 + end_location: + row: 23 + column: 4 parent: ~ - kind: name: ReplaceStdoutStderr @@ -134,12 +182,20 @@ expression: diagnostics row: 36 column: 5 fix: - content: "capture_output=True,\n check=True" - location: - row: 31 - column: 8 - end_location: - row: 33 - column: 30 + edits: + - content: capture_output=True + location: + row: 31 + column: 8 + end_location: + row: 31 + column: 30 + - content: "" + location: + row: 33 + column: 8 + end_location: + row: 34 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap index d757231a5ac03..e074ba9711390 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 59 fix: - content: "from xml.etree.ElementTree import XML, Element, SubElement" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 59 + edits: + - content: "from xml.etree.ElementTree import XML, Element, SubElement" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 59 parent: ~ - kind: name: DeprecatedCElementTree @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 35 fix: - content: xml.etree.ElementTree as ET - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 35 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 35 parent: ~ - kind: name: DeprecatedCElementTree @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 44 fix: - content: from xml.etree.ElementTree import XML - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 44 + edits: + - content: from xml.etree.ElementTree import XML + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 44 parent: ~ - kind: name: DeprecatedCElementTree @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 49 fix: - content: xml.etree.ElementTree as ET - location: - row: 7 - column: 10 - end_location: - row: 7 - column: 49 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 7 + column: 10 + end_location: + row: 7 + column: 49 parent: ~ - kind: name: DeprecatedCElementTree @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 1 fix: - content: "from xml.etree.ElementTree import (\n XML,\n Element,\n SubElement,\n)" - location: - row: 10 - column: 0 - end_location: - row: 14 - column: 1 + edits: + - content: "from xml.etree.ElementTree import (\n XML,\n Element,\n SubElement,\n)" + location: + row: 10 + column: 0 + end_location: + row: 14 + column: 1 parent: ~ - kind: name: DeprecatedCElementTree @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 39 fix: - content: xml.etree.ElementTree as ET - location: - row: 16 - column: 11 - end_location: - row: 16 - column: 39 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 16 + column: 11 + end_location: + row: 16 + column: 39 parent: ~ - kind: name: DeprecatedCElementTree @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 45 fix: - content: ElementTree as CET - location: - row: 17 - column: 26 - end_location: - row: 17 - column: 45 + edits: + - content: ElementTree as CET + location: + row: 17 + column: 26 + end_location: + row: 17 + column: 45 parent: ~ - kind: name: DeprecatedCElementTree @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: ElementTree as ET - location: - row: 19 - column: 22 - end_location: - row: 19 - column: 40 + edits: + - content: ElementTree as ET + location: + row: 19 + column: 22 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: DeprecatedCElementTree @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 47 fix: - content: xml.etree.ElementTree as ET - location: - row: 21 - column: 19 - end_location: - row: 21 - column: 47 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 21 + column: 19 + end_location: + row: 21 + column: 47 parent: ~ - kind: name: DeprecatedCElementTree @@ -194,12 +203,13 @@ expression: diagnostics row: 24 column: 59 fix: - content: xml.etree.ElementTree as ET - location: - row: 24 - column: 31 - end_location: - row: 24 - column: 59 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 24 + column: 31 + end_location: + row: 24 + column: 59 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap index 96484c4ea2f5e..d21f2bb10fd88 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 23 fix: - content: OSError - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 23 + edits: + - content: OSError + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 23 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 14 fix: - content: OSError - location: - row: 11 - column: 7 - end_location: - row: 11 - column: 14 + edits: + - content: OSError + location: + row: 11 + column: 7 + end_location: + row: 11 + column: 14 parent: ~ - kind: name: OSErrorAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 19 fix: - content: OSError - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 19 + edits: + - content: OSError + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 17 fix: - content: OSError - location: - row: 21 - column: 7 - end_location: - row: 21 - column: 17 + edits: + - content: OSError + location: + row: 21 + column: 7 + end_location: + row: 21 + column: 17 parent: ~ - kind: name: OSErrorAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 19 fix: - content: OSError - location: - row: 26 - column: 7 - end_location: - row: 26 - column: 19 + edits: + - content: OSError + location: + row: 26 + column: 7 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 31 column: 19 fix: - content: OSError - location: - row: 31 - column: 7 - end_location: - row: 31 - column: 19 + edits: + - content: OSError + location: + row: 31 + column: 7 + end_location: + row: 31 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 36 column: 12 fix: - content: OSError - location: - row: 36 - column: 7 - end_location: - row: 36 - column: 12 + edits: + - content: OSError + location: + row: 36 + column: 7 + end_location: + row: 36 + column: 12 parent: ~ - kind: name: OSErrorAlias @@ -154,13 +161,14 @@ expression: diagnostics row: 43 column: 17 fix: - content: OSError - location: - row: 43 - column: 7 - end_location: - row: 43 - column: 17 + edits: + - content: OSError + location: + row: 43 + column: 7 + end_location: + row: 43 + column: 17 parent: ~ - kind: name: OSErrorAlias @@ -174,13 +182,14 @@ expression: diagnostics row: 47 column: 20 fix: - content: OSError - location: - row: 47 - column: 7 - end_location: - row: 47 - column: 20 + edits: + - content: OSError + location: + row: 47 + column: 7 + end_location: + row: 47 + column: 20 parent: ~ - kind: name: OSErrorAlias @@ -194,13 +203,14 @@ expression: diagnostics row: 51 column: 57 fix: - content: OSError - location: - row: 51 - column: 7 - end_location: - row: 51 - column: 57 + edits: + - content: OSError + location: + row: 51 + column: 7 + end_location: + row: 51 + column: 57 parent: ~ - kind: name: OSErrorAlias @@ -214,13 +224,14 @@ expression: diagnostics row: 58 column: 35 fix: - content: "(KeyError, OSError)" - location: - row: 58 - column: 7 - end_location: - row: 58 - column: 35 + edits: + - content: "(KeyError, OSError)" + location: + row: 58 + column: 7 + end_location: + row: 58 + column: 35 parent: ~ - kind: name: OSErrorAlias @@ -234,13 +245,14 @@ expression: diagnostics row: 65 column: 23 fix: - content: "(OSError, error)" - location: - row: 65 - column: 7 - end_location: - row: 65 - column: 23 + edits: + - content: "(OSError, error)" + location: + row: 65 + column: 7 + end_location: + row: 65 + column: 23 parent: ~ - kind: name: OSErrorAlias @@ -254,12 +266,13 @@ expression: diagnostics row: 87 column: 19 fix: - content: OSError - location: - row: 87 - column: 7 - end_location: - row: 87 - column: 19 + edits: + - content: OSError + location: + row: 87 + column: 7 + end_location: + row: 87 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap index 4175489659c77..cd874d758a4c6 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 37 fix: - content: OSError - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 37 + edits: + - content: OSError + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 37 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: "(OSError, KeyError)" - location: - row: 7 - column: 7 - end_location: - row: 7 - column: 40 + edits: + - content: "(OSError, KeyError)" + location: + row: 7 + column: 7 + end_location: + row: 7 + column: 40 parent: ~ - kind: name: OSErrorAlias @@ -54,12 +56,13 @@ expression: diagnostics row: 16 column: 1 fix: - content: OSError - location: - row: 12 - column: 7 - end_location: - row: 16 - column: 1 + edits: + - content: OSError + location: + row: 12 + column: 7 + end_location: + row: 16 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap index a2b5213990cb3..b023303be8166 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 18 fix: - content: OSError - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 18 + edits: + - content: OSError + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 16 fix: - content: OSError - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 16 + edits: + - content: OSError + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 16 parent: ~ - kind: name: OSErrorAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 12 column: 18 fix: - content: OSError - location: - row: 12 - column: 6 - end_location: - row: 12 - column: 18 + edits: + - content: OSError + location: + row: 12 + column: 6 + end_location: + row: 12 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: OSError - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 18 + edits: + - content: OSError + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 15 column: 16 fix: - content: OSError - location: - row: 15 - column: 6 - end_location: - row: 15 - column: 16 + edits: + - content: OSError + location: + row: 15 + column: 6 + end_location: + row: 15 + column: 16 parent: ~ - kind: name: OSErrorAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: OSError - location: - row: 16 - column: 6 - end_location: - row: 16 - column: 18 + edits: + - content: OSError + location: + row: 16 + column: 6 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 18 fix: - content: OSError - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 18 + edits: + - content: OSError + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -154,13 +161,14 @@ expression: diagnostics row: 25 column: 11 fix: - content: OSError - location: - row: 25 - column: 6 - end_location: - row: 25 - column: 11 + edits: + - content: OSError + location: + row: 25 + column: 6 + end_location: + row: 25 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -174,13 +182,14 @@ expression: diagnostics row: 28 column: 11 fix: - content: OSError - location: - row: 28 - column: 6 - end_location: - row: 28 - column: 11 + edits: + - content: OSError + location: + row: 28 + column: 6 + end_location: + row: 28 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -194,13 +203,14 @@ expression: diagnostics row: 31 column: 11 fix: - content: OSError - location: - row: 31 - column: 6 - end_location: - row: 31 - column: 11 + edits: + - content: OSError + location: + row: 31 + column: 6 + end_location: + row: 31 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -214,13 +224,14 @@ expression: diagnostics row: 34 column: 22 fix: - content: OSError - location: - row: 34 - column: 6 - end_location: - row: 34 - column: 22 + edits: + - content: OSError + location: + row: 34 + column: 6 + end_location: + row: 34 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -234,13 +245,14 @@ expression: diagnostics row: 35 column: 13 fix: - content: OSError - location: - row: 35 - column: 6 - end_location: - row: 35 - column: 13 + edits: + - content: OSError + location: + row: 35 + column: 6 + end_location: + row: 35 + column: 13 parent: ~ - kind: name: OSErrorAlias @@ -254,13 +266,14 @@ expression: diagnostics row: 36 column: 18 fix: - content: OSError - location: - row: 36 - column: 6 - end_location: - row: 36 - column: 18 + edits: + - content: OSError + location: + row: 36 + column: 6 + end_location: + row: 36 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -274,13 +287,14 @@ expression: diagnostics row: 38 column: 22 fix: - content: OSError - location: - row: 38 - column: 6 - end_location: - row: 38 - column: 22 + edits: + - content: OSError + location: + row: 38 + column: 6 + end_location: + row: 38 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -294,13 +308,14 @@ expression: diagnostics row: 39 column: 13 fix: - content: OSError - location: - row: 39 - column: 6 - end_location: - row: 39 - column: 13 + edits: + - content: OSError + location: + row: 39 + column: 6 + end_location: + row: 39 + column: 13 parent: ~ - kind: name: OSErrorAlias @@ -314,13 +329,14 @@ expression: diagnostics row: 40 column: 18 fix: - content: OSError - location: - row: 40 - column: 6 - end_location: - row: 40 - column: 18 + edits: + - content: OSError + location: + row: 40 + column: 6 + end_location: + row: 40 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -334,13 +350,14 @@ expression: diagnostics row: 42 column: 22 fix: - content: OSError - location: - row: 42 - column: 6 - end_location: - row: 42 - column: 22 + edits: + - content: OSError + location: + row: 42 + column: 6 + end_location: + row: 42 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -354,13 +371,14 @@ expression: diagnostics row: 48 column: 18 fix: - content: OSError - location: - row: 48 - column: 6 - end_location: - row: 48 - column: 18 + edits: + - content: OSError + location: + row: 48 + column: 6 + end_location: + row: 48 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -374,13 +392,14 @@ expression: diagnostics row: 49 column: 22 fix: - content: OSError - location: - row: 49 - column: 6 - end_location: - row: 49 - column: 22 + edits: + - content: OSError + location: + row: 49 + column: 6 + end_location: + row: 49 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -394,12 +413,13 @@ expression: diagnostics row: 50 column: 13 fix: - content: OSError - location: - row: 50 - column: 6 - end_location: - row: 50 - column: 13 + edits: + - content: OSError + location: + row: 50 + column: 6 + end_location: + row: 50 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap index 8783b93e1eacb..328a0103cb3b2 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 9 column: 50 fix: - content: "(OSError, exceptions.OperationalError)" - location: - row: 9 - column: 7 - end_location: - row: 9 - column: 50 + edits: + - content: "(OSError, exceptions.OperationalError)" + location: + row: 9 + column: 7 + end_location: + row: 9 + column: 50 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap index 6cdba343151b0..24d3109660232 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 12 fix: - content: "" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 5 + edits: + - content: "" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 1 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnicodeKindPrefix @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 14 fix: - content: "" - location: - row: 6 - column: 6 - end_location: - row: 6 - column: 7 + edits: + - content: "" + location: + row: 6 + column: 6 + end_location: + row: 6 + column: 7 parent: ~ - kind: name: UnicodeKindPrefix @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 14 fix: - content: "" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 7 + edits: + - content: "" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 7 parent: ~ - kind: name: UnicodeKindPrefix @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 12 fix: - content: "" - location: - row: 12 - column: 4 - end_location: - row: 12 - column: 5 + edits: + - content: "" + location: + row: 12 + column: 4 + end_location: + row: 12 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -114,13 +119,14 @@ expression: diagnostics row: 12 column: 22 fix: - content: "" - location: - row: 12 - column: 14 - end_location: - row: 12 - column: 15 + edits: + - content: "" + location: + row: 12 + column: 14 + end_location: + row: 12 + column: 15 parent: ~ - kind: name: UnicodeKindPrefix @@ -134,13 +140,14 @@ expression: diagnostics row: 12 column: 34 fix: - content: "" - location: - row: 12 - column: 26 - end_location: - row: 12 - column: 27 + edits: + - content: "" + location: + row: 12 + column: 26 + end_location: + row: 12 + column: 27 parent: ~ - kind: name: UnicodeKindPrefix @@ -154,13 +161,14 @@ expression: diagnostics row: 12 column: 46 fix: - content: "" - location: - row: 12 - column: 38 - end_location: - row: 12 - column: 39 + edits: + - content: "" + location: + row: 12 + column: 38 + end_location: + row: 12 + column: 39 parent: ~ - kind: name: UnicodeKindPrefix @@ -174,13 +182,14 @@ expression: diagnostics row: 16 column: 12 fix: - content: "" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 5 + edits: + - content: "" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -194,13 +203,14 @@ expression: diagnostics row: 17 column: 16 fix: - content: "" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 5 + edits: + - content: "" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -214,13 +224,14 @@ expression: diagnostics row: 18 column: 16 fix: - content: "" - location: - row: 18 - column: 4 - end_location: - row: 18 - column: 5 + edits: + - content: "" + location: + row: 18 + column: 4 + end_location: + row: 18 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -234,12 +245,13 @@ expression: diagnostics row: 19 column: 20 fix: - content: "" - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 5 + edits: + - content: "" + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap index 35b374b6ae85e..de25f71ef3a58 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: from unittest import mock - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 15 + edits: + - content: from unittest import mock + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: DeprecatedMockImport @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "import sys\n from unittest import mock" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 20 + edits: + - content: "import sys\n from unittest import mock" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 20 parent: ~ - kind: name: DeprecatedMockImport @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 22 fix: - content: from unittest.mock import * - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 22 + edits: + - content: from unittest.mock import * + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 22 parent: ~ - kind: name: DeprecatedMockImport @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: from unittest import mock - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 16 + edits: + - content: from unittest import mock + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: DeprecatedMockImport @@ -94,13 +98,14 @@ expression: diagnostics row: 17 column: 23 fix: - content: "import contextlib, sys\nfrom unittest import mock" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 28 + edits: + - content: "import contextlib, sys\nfrom unittest import mock" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 28 parent: ~ - kind: name: DeprecatedMockImport @@ -114,13 +119,14 @@ expression: diagnostics row: 20 column: 11 fix: - content: "import sys\nfrom unittest import mock" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 16 + edits: + - content: "import sys\nfrom unittest import mock" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 16 parent: ~ - kind: name: DeprecatedMockImport @@ -134,13 +140,14 @@ expression: diagnostics row: 24 column: 21 fix: - content: from unittest import mock - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 21 + edits: + - content: from unittest import mock + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 21 parent: ~ - kind: name: DeprecatedMockImport @@ -154,13 +161,14 @@ expression: diagnostics row: 32 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" - location: - row: 27 - column: 0 - end_location: - row: 32 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" + location: + row: 27 + column: 0 + end_location: + row: 32 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -174,13 +182,14 @@ expression: diagnostics row: 38 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" - location: - row: 33 - column: 0 - end_location: - row: 38 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" + location: + row: 33 + column: 0 + end_location: + row: 38 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -194,13 +203,14 @@ expression: diagnostics row: 46 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" - location: - row: 41 - column: 0 - end_location: - row: 46 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" + location: + row: 41 + column: 0 + end_location: + row: 46 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -214,13 +224,14 @@ expression: diagnostics row: 52 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" - location: - row: 47 - column: 0 - end_location: - row: 52 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" + location: + row: 47 + column: 0 + end_location: + row: 52 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -234,13 +245,14 @@ expression: diagnostics row: 53 column: 30 fix: - content: "from unittest.mock import a, b, c\nfrom unittest import mock" - location: - row: 53 - column: 0 - end_location: - row: 53 - column: 30 + edits: + - content: "from unittest.mock import a, b, c\nfrom unittest import mock" + location: + row: 53 + column: 0 + end_location: + row: 53 + column: 30 parent: ~ - kind: name: DeprecatedMockImport @@ -254,13 +266,14 @@ expression: diagnostics row: 54 column: 30 fix: - content: "from unittest.mock import a, b, c\nfrom unittest import mock" - location: - row: 54 - column: 0 - end_location: - row: 54 - column: 30 + edits: + - content: "from unittest.mock import a, b, c\nfrom unittest import mock" + location: + row: 54 + column: 0 + end_location: + row: 54 + column: 30 parent: ~ - kind: name: DeprecatedMockImport @@ -274,13 +287,14 @@ expression: diagnostics row: 63 column: 9 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n )\n from unittest import mock" - location: - row: 58 - column: 8 - end_location: - row: 63 - column: 9 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n )\n from unittest import mock" + location: + row: 58 + column: 8 + end_location: + row: 63 + column: 9 parent: ~ - kind: name: DeprecatedMockImport @@ -294,13 +308,14 @@ expression: diagnostics row: 69 column: 11 fix: - content: "from unittest import mock\nfrom unittest import mock" - location: - row: 69 - column: 0 - end_location: - row: 69 - column: 17 + edits: + - content: "from unittest import mock\nfrom unittest import mock" + location: + row: 69 + column: 0 + end_location: + row: 69 + column: 17 parent: ~ - kind: name: DeprecatedMockImport @@ -314,13 +329,14 @@ expression: diagnostics row: 69 column: 17 fix: - content: "from unittest import mock\nfrom unittest import mock" - location: - row: 69 - column: 0 - end_location: - row: 69 - column: 17 + edits: + - content: "from unittest import mock\nfrom unittest import mock" + location: + row: 69 + column: 0 + end_location: + row: 69 + column: 17 parent: ~ - kind: name: DeprecatedMockImport @@ -334,13 +350,14 @@ expression: diagnostics row: 72 column: 18 fix: - content: from unittest import mock as foo - location: - row: 72 - column: 0 - end_location: - row: 72 - column: 18 + edits: + - content: from unittest import mock as foo + location: + row: 72 + column: 0 + end_location: + row: 72 + column: 18 parent: ~ - kind: name: DeprecatedMockImport @@ -354,13 +371,14 @@ expression: diagnostics row: 75 column: 28 fix: - content: from unittest import mock as foo - location: - row: 75 - column: 0 - end_location: - row: 75 - column: 28 + edits: + - content: from unittest import mock as foo + location: + row: 75 + column: 0 + end_location: + row: 75 + column: 28 parent: ~ - kind: name: DeprecatedMockImport @@ -374,13 +392,14 @@ expression: diagnostics row: 79 column: 22 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -394,13 +413,14 @@ expression: diagnostics row: 79 column: 35 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -414,13 +434,14 @@ expression: diagnostics row: 79 column: 41 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -434,13 +455,14 @@ expression: diagnostics row: 82 column: 22 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -454,13 +476,14 @@ expression: diagnostics row: 82 column: 35 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -474,13 +497,14 @@ expression: diagnostics row: 82 column: 41 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -494,13 +518,14 @@ expression: diagnostics row: 86 column: 51 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 86 - column: 4 - end_location: - row: 86 - column: 51 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 86 + column: 4 + end_location: + row: 86 + column: 51 parent: ~ - kind: name: DeprecatedMockImport @@ -514,12 +539,13 @@ expression: diagnostics row: 93 column: 13 fix: - content: mock - location: - row: 93 - column: 4 - end_location: - row: 93 - column: 13 + edits: + - content: mock + location: + row: 93 + column: 4 + end_location: + row: 93 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap index 416c92104026d..50656935c7ce3 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 38 fix: - content: (fn(x) for x in items) - location: - row: 2 - column: 16 - end_location: - row: 2 - column: 38 + edits: + - content: (fn(x) for x in items) + location: + row: 2 + column: 16 + end_location: + row: 2 + column: 38 parent: ~ - kind: name: UnpackedListComprehension @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 37 fix: - content: (fn(x) for x in items) - location: - row: 4 - column: 15 - end_location: - row: 4 - column: 37 + edits: + - content: (fn(x) for x in items) + location: + row: 4 + column: 15 + end_location: + row: 4 + column: 37 parent: ~ - kind: name: UnpackedListComprehension @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 47 fix: - content: (fn(x) for x in items) - location: - row: 6 - column: 25 - end_location: - row: 6 - column: 47 + edits: + - content: (fn(x) for x in items) + location: + row: 6 + column: 25 + end_location: + row: 6 + column: 47 parent: ~ - kind: name: UnpackedListComprehension @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 51 fix: - content: "([i for i in fn(x)] for x in items)" - location: - row: 8 - column: 16 - end_location: - row: 8 - column: 51 + edits: + - content: "([i for i in fn(x)] for x in items)" + location: + row: 8 + column: 16 + end_location: + row: 8 + column: 51 parent: ~ - kind: name: UnpackedListComprehension @@ -94,12 +98,13 @@ expression: diagnostics row: 13 column: 1 fix: - content: "(\n fn(x)\n for x in items\n)" - location: - row: 10 - column: 16 - end_location: - row: 13 - column: 1 + edits: + - content: "(\n fn(x)\n for x in items\n)" + location: + row: 10 + column: 16 + end_location: + row: 13 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap index 4799cb213a935..d86be22bfc695 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: yield from y - location: - row: 2 - column: 4 - end_location: - row: 3 - column: 15 + edits: + - content: yield from y + location: + row: 2 + column: 4 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: yield from z - location: - row: 7 - column: 4 - end_location: - row: 8 - column: 20 + edits: + - content: yield from z + location: + row: 7 + column: 4 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: YieldInForLoop @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 15 fix: - content: "yield from [1, 2, 3]" - location: - row: 12 - column: 4 - end_location: - row: 13 - column: 15 + edits: + - content: "yield from [1, 2, 3]" + location: + row: 12 + column: 4 + end_location: + row: 13 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -74,13 +77,14 @@ expression: diagnostics row: 18 column: 15 fix: - content: "yield from {x for x in y}" - location: - row: 17 - column: 4 - end_location: - row: 18 - column: 15 + edits: + - content: "yield from {x for x in y}" + location: + row: 17 + column: 4 + end_location: + row: 18 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -94,13 +98,14 @@ expression: diagnostics row: 23 column: 15 fix: - content: "yield from (1, 2, 3)" - location: - row: 22 - column: 4 - end_location: - row: 23 - column: 15 + edits: + - content: "yield from (1, 2, 3)" + location: + row: 22 + column: 4 + end_location: + row: 23 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -114,13 +119,14 @@ expression: diagnostics row: 28 column: 18 fix: - content: "yield from {3: \"x\", 6: \"y\"}" - location: - row: 27 - column: 4 - end_location: - row: 28 - column: 18 + edits: + - content: "yield from {3: \"x\", 6: \"y\"}" + location: + row: 27 + column: 4 + end_location: + row: 28 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -134,13 +140,14 @@ expression: diagnostics row: 39 column: 18 fix: - content: "yield from { # Comment three\\n'\n 3: \"x\", # Comment four\\n'\n # Comment five\\n'\n 6: \"y\", # Comment six\\n'\n }" - location: - row: 33 - column: 4 - end_location: - row: 39 - column: 18 + edits: + - content: "yield from { # Comment three\\n'\n 3: \"x\", # Comment four\\n'\n # Comment five\\n'\n 6: \"y\", # Comment six\\n'\n }" + location: + row: 33 + column: 4 + end_location: + row: 39 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -154,13 +161,14 @@ expression: diagnostics row: 45 column: 18 fix: - content: "yield from [{3: (3, [44, \"long ss\"]), 6: \"y\"}]" - location: - row: 44 - column: 4 - end_location: - row: 45 - column: 18 + edits: + - content: "yield from [{3: (3, [44, \"long ss\"]), 6: \"y\"}]" + location: + row: 44 + column: 4 + end_location: + row: 45 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -174,13 +182,14 @@ expression: diagnostics row: 50 column: 18 fix: - content: yield from z() - location: - row: 49 - column: 4 - end_location: - row: 50 - column: 18 + edits: + - content: yield from z() + location: + row: 49 + column: 4 + end_location: + row: 50 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 22 fix: - content: yield from z() - location: - row: 55 - column: 8 - end_location: - row: 57 - column: 22 + edits: + - content: yield from z() + location: + row: 55 + column: 8 + end_location: + row: 57 + column: 22 parent: ~ - kind: name: YieldInForLoop @@ -214,13 +224,14 @@ expression: diagnostics row: 68 column: 15 fix: - content: yield from x - location: - row: 67 - column: 4 - end_location: - row: 68 - column: 15 + edits: + - content: yield from x + location: + row: 67 + column: 4 + end_location: + row: 68 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -234,12 +245,13 @@ expression: diagnostics row: 73 column: 18 fix: - content: yield from z() - location: - row: 72 - column: 4 - end_location: - row: 73 - column: 18 + edits: + - content: yield from z() + location: + row: 72 + column: 4 + end_location: + row: 73 + column: 18 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap index 3f58b4df1dc4d..4ceb60d546ea3 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 22 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 42 fix: - content: from builtins import compile - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 42 + edits: + - content: from builtins import compile + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 42 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 46 fix: - content: from six.moves import zip_longest - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 46 + edits: + - content: from six.moves import zip_longest + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 46 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -74,12 +77,13 @@ expression: diagnostics row: 5 column: 19 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap index 62691d7759e88..8e152b5c723b7 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 33 fix: - content: "\"{}\" \"{}\" \"{}\".format(1, 2, 3)" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 33 + edits: + - content: "\"{}\" \"{}\" \"{}\".format(1, 2, 3)" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 33 parent: ~ - kind: name: FormatLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 1 fix: - content: "\"a {} complicated {} string with {} {}\".format(\n \"fourth\", \"second\", \"first\", \"third\"\n)" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 1 + edits: + - content: "\"a {} complicated {} string with {} {}\".format(\n \"fourth\", \"second\", \"first\", \"third\"\n)" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 1 parent: ~ - kind: name: FormatLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 15 fix: - content: "'{}'.format(1)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 15 + edits: + - content: "'{}'.format(1)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 15 parent: ~ - kind: name: FormatLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 18 fix: - content: "'{:x}'.format(30)" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 18 + edits: + - content: "'{:x}'.format(30)" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 18 parent: ~ - kind: name: FormatLiterals @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 19 fix: - content: "'{}'.format(1)" - location: - row: 13 - column: 4 - end_location: - row: 13 - column: 19 + edits: + - content: "'{}'.format(1)" + location: + row: 13 + column: 4 + end_location: + row: 13 + column: 19 parent: ~ - kind: name: FormatLiterals @@ -114,13 +119,14 @@ expression: diagnostics row: 15 column: 29 fix: - content: "'''{}\\n{}\\n'''.format(1, 2)" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 29 + edits: + - content: "'''{}\\n{}\\n'''.format(1, 2)" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 26 fix: - content: "\"foo {}\" \\\n \"bar {}\".format(1, 2)" - location: - row: 17 - column: 4 - end_location: - row: 18 - column: 26 + edits: + - content: "\"foo {}\" \\\n \"bar {}\".format(1, 2)" + location: + row: 17 + column: 4 + end_location: + row: 18 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 17 fix: - content: "(\"{}\").format(1)" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 17 + edits: + - content: "(\"{}\").format(1)" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 17 parent: ~ - kind: name: FormatLiterals @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 27 fix: - content: "\"\\N{snowman} {}\".format(1)" - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 27 + edits: + - content: "\"\\N{snowman} {}\".format(1)" + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 27 parent: ~ - kind: name: FormatLiterals @@ -193,7 +202,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -206,7 +216,8 @@ expression: diagnostics end_location: row: 30 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -219,6 +230,7 @@ expression: diagnostics end_location: row: 35 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap index e44af6bb77389..e6014f5d43de2 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: "\"{}\".format(*args)" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 19 + edits: + - content: "\"{}\".format(*args)" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: FormatLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 22 fix: - content: "\"{}\".format(**kwargs)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 22 + edits: + - content: "\"{}\".format(**kwargs)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 22 parent: ~ - kind: name: FormatLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: "\"{}_{}\".format(*args)" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 23 + edits: + - content: "\"{}_{}\".format(*args)" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 23 parent: ~ - kind: name: FormatLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 12 column: 26 fix: - content: "\"{}_{}\".format(1, *args)" - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 26 + edits: + - content: "\"{}_{}\".format(1, *args)" + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -107,13 +112,14 @@ expression: diagnostics row: 16 column: 26 fix: - content: "\"{}_{}\".format(*args, 1)" - location: - row: 16 - column: 0 - end_location: - row: 16 - column: 26 + edits: + - content: "\"{}_{}\".format(*args, 1)" + location: + row: 16 + column: 0 + end_location: + row: 16 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -127,13 +133,14 @@ expression: diagnostics row: 18 column: 29 fix: - content: "\"{}_{}\".format(1, 2, *args)" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 29 + edits: + - content: "\"{}_{}\".format(1, 2, *args)" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -147,13 +154,14 @@ expression: diagnostics row: 20 column: 29 fix: - content: "\"{}_{}\".format(*args, 1, 2)" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 29 + edits: + - content: "\"{}_{}\".format(*args, 1, 2)" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -167,13 +175,14 @@ expression: diagnostics row: 22 column: 33 fix: - content: "\"{}_{}_{}\".format(1, **kwargs)" - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 33 + edits: + - content: "\"{}_{}_{}\".format(1, **kwargs)" + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 33 parent: ~ - kind: name: FormatLiterals @@ -187,13 +196,14 @@ expression: diagnostics row: 24 column: 36 fix: - content: "\"{}_{}_{}\".format(1, 2, **kwargs)" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 36 + edits: + - content: "\"{}_{}_{}\".format(1, 2, **kwargs)" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 36 parent: ~ - kind: name: FormatLiterals @@ -207,13 +217,14 @@ expression: diagnostics row: 26 column: 39 fix: - content: "\"{}_{}_{}\".format(1, 2, 3, **kwargs)" - location: - row: 26 - column: 0 - end_location: - row: 26 - column: 39 + edits: + - content: "\"{}_{}_{}\".format(1, 2, 3, **kwargs)" + location: + row: 26 + column: 0 + end_location: + row: 26 + column: 39 parent: ~ - kind: name: FormatLiterals @@ -227,12 +238,13 @@ expression: diagnostics row: 28 column: 46 fix: - content: "\"{}_{}_{}\".format(1, 2, 3, *args, **kwargs)" - location: - row: 28 - column: 0 - end_location: - row: 28 - column: 46 + edits: + - content: "\"{}_{}_{}\".format(1, 2, 3, *args, **kwargs)" + location: + row: 28 + column: 0 + end_location: + row: 28 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap index acb8c5312199f..c5a2acee6dfb7 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 22 fix: - content: "'{} {}'.format(a, b)" - location: - row: 4 - column: 6 - end_location: - row: 4 - column: 22 + edits: + - content: "'{} {}'.format(a, b)" + location: + row: 4 + column: 6 + end_location: + row: 4 + column: 22 parent: ~ - kind: name: PrintfStringFormatting @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 21 fix: - content: "'{}{}'.format(a, b)" - location: - row: 6 - column: 6 - end_location: - row: 6 - column: 21 + edits: + - content: "'{}{}'.format(a, b)" + location: + row: 6 + column: 6 + end_location: + row: 6 + column: 21 parent: ~ - kind: name: PrintfStringFormatting @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: "\"trivial\".format()" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 20 + edits: + - content: "\"trivial\".format()" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 24 fix: - content: "\"{}\".format(\"simple\")" - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 24 + edits: + - content: "\"{}\".format(\"simple\")" + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 24 parent: ~ - kind: name: PrintfStringFormatting @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 34 fix: - content: "\"{}\".format(\"%s\" % (\"nested\",))" - location: - row: 12 - column: 6 - end_location: - row: 12 - column: 34 + edits: + - content: "\"{}\".format(\"%s\" % (\"nested\",))" + location: + row: 12 + column: 6 + end_location: + row: 12 + column: 34 parent: ~ - kind: name: PrintfStringFormatting @@ -114,13 +119,14 @@ expression: diagnostics row: 12 column: 32 fix: - content: "\"{}\".format(\"nested\")" - location: - row: 12 - column: 14 - end_location: - row: 12 - column: 32 + edits: + - content: "\"{}\".format(\"nested\")" + location: + row: 12 + column: 14 + end_location: + row: 12 + column: 32 parent: ~ - kind: name: PrintfStringFormatting @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 28 fix: - content: "\"{}% percent\".format(15)" - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 28 + edits: + - content: "\"{}% percent\".format(15)" + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: PrintfStringFormatting @@ -154,13 +161,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: "\"{:f}\".format(15)" - location: - row: 16 - column: 6 - end_location: - row: 16 - column: 18 + edits: + - content: "\"{:f}\".format(15)" + location: + row: 16 + column: 6 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: PrintfStringFormatting @@ -174,13 +182,14 @@ expression: diagnostics row: 18 column: 19 fix: - content: "\"{:.0f}\".format(15)" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 19 + edits: + - content: "\"{:.0f}\".format(15)" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -194,13 +203,14 @@ expression: diagnostics row: 20 column: 20 fix: - content: "\"{:.3f}\".format(15)" - location: - row: 20 - column: 6 - end_location: - row: 20 - column: 20 + edits: + - content: "\"{:.3f}\".format(15)" + location: + row: 20 + column: 6 + end_location: + row: 20 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -214,13 +224,14 @@ expression: diagnostics row: 22 column: 19 fix: - content: "\"{:3f}\".format(15)" - location: - row: 22 - column: 6 - end_location: - row: 22 - column: 19 + edits: + - content: "\"{:3f}\".format(15)" + location: + row: 22 + column: 6 + end_location: + row: 22 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -234,13 +245,14 @@ expression: diagnostics row: 24 column: 19 fix: - content: "\"{:<5f}\".format(5)" - location: - row: 24 - column: 6 - end_location: - row: 24 - column: 19 + edits: + - content: "\"{:<5f}\".format(5)" + location: + row: 24 + column: 6 + end_location: + row: 24 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -254,13 +266,14 @@ expression: diagnostics row: 26 column: 18 fix: - content: "\"{:9f}\".format(5)" - location: - row: 26 - column: 6 - end_location: - row: 26 - column: 18 + edits: + - content: "\"{:9f}\".format(5)" + location: + row: 26 + column: 6 + end_location: + row: 26 + column: 18 parent: ~ - kind: name: PrintfStringFormatting @@ -274,13 +287,14 @@ expression: diagnostics row: 28 column: 20 fix: - content: "\"{:#o}\".format(123)" - location: - row: 28 - column: 6 - end_location: - row: 28 - column: 20 + edits: + - content: "\"{:#o}\".format(123)" + location: + row: 28 + column: 6 + end_location: + row: 28 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -294,13 +308,14 @@ expression: diagnostics row: 30 column: 26 fix: - content: "\"brace {{}} {}\".format(1)" - location: - row: 30 - column: 6 - end_location: - row: 30 - column: 26 + edits: + - content: "\"brace {{}} {}\".format(1)" + location: + row: 30 + column: 6 + end_location: + row: 30 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -314,13 +329,14 @@ expression: diagnostics row: 35 column: 9 fix: - content: "\"{}\".format(\n \"trailing comma\",\n )" - location: - row: 33 - column: 2 - end_location: - row: 35 - column: 9 + edits: + - content: "\"{}\".format(\n \"trailing comma\",\n )" + location: + row: 33 + column: 2 + end_location: + row: 35 + column: 9 parent: ~ - kind: name: PrintfStringFormatting @@ -334,13 +350,14 @@ expression: diagnostics row: 38 column: 22 fix: - content: "\"foo {} \".format(x)" - location: - row: 38 - column: 6 - end_location: - row: 38 - column: 22 + edits: + - content: "\"foo {} \".format(x)" + location: + row: 38 + column: 6 + end_location: + row: 38 + column: 22 parent: ~ - kind: name: PrintfStringFormatting @@ -354,13 +371,14 @@ expression: diagnostics row: 40 column: 26 fix: - content: "\"{k}\".format(k=\"v\")" - location: - row: 40 - column: 6 - end_location: - row: 40 - column: 26 + edits: + - content: "\"{k}\".format(k=\"v\")" + location: + row: 40 + column: 6 + end_location: + row: 40 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -374,13 +392,14 @@ expression: diagnostics row: 45 column: 1 fix: - content: "\"{k}\".format(\n k=\"v\",\n i=\"j\",\n)" - location: - row: 42 - column: 6 - end_location: - row: 45 - column: 1 + edits: + - content: "\"{k}\".format(\n k=\"v\",\n i=\"j\",\n)" + location: + row: 42 + column: 6 + end_location: + row: 45 + column: 1 parent: ~ - kind: name: PrintfStringFormatting @@ -394,13 +413,14 @@ expression: diagnostics row: 47 column: 37 fix: - content: "\"{to_list}\".format(to_list=[])" - location: - row: 47 - column: 6 - end_location: - row: 47 - column: 37 + edits: + - content: "\"{to_list}\".format(to_list=[])" + location: + row: 47 + column: 6 + end_location: + row: 47 + column: 37 parent: ~ - kind: name: PrintfStringFormatting @@ -414,13 +434,14 @@ expression: diagnostics row: 49 column: 43 fix: - content: "\"{k}\".format(k=\"v\", i=1, j=[])" - location: - row: 49 - column: 6 - end_location: - row: 49 - column: 43 + edits: + - content: "\"{k}\".format(k=\"v\", i=1, j=[])" + location: + row: 49 + column: 6 + end_location: + row: 49 + column: 43 parent: ~ - kind: name: PrintfStringFormatting @@ -434,13 +455,14 @@ expression: diagnostics row: 51 column: 29 fix: - content: "\"{ab}\".format(ab=1)" - location: - row: 51 - column: 6 - end_location: - row: 51 - column: 29 + edits: + - content: "\"{ab}\".format(ab=1)" + location: + row: 51 + column: 6 + end_location: + row: 51 + column: 29 parent: ~ - kind: name: PrintfStringFormatting @@ -454,13 +476,14 @@ expression: diagnostics row: 53 column: 27 fix: - content: "\"{a}\".format(a=1)" - location: - row: 53 - column: 6 - end_location: - row: 53 - column: 27 + edits: + - content: "\"{a}\".format(a=1)" + location: + row: 53 + column: 6 + end_location: + row: 53 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -474,13 +497,14 @@ expression: diagnostics row: 57 column: 21 fix: - content: "\"foo {} \"\n \"bar {}\".format(x, y)" - location: - row: 56 - column: 4 - end_location: - row: 57 - column: 21 + edits: + - content: "\"foo {} \"\n \"bar {}\".format(x, y)" + location: + row: 56 + column: 4 + end_location: + row: 57 + column: 21 parent: ~ - kind: name: PrintfStringFormatting @@ -494,13 +518,14 @@ expression: diagnostics row: 62 column: 40 fix: - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, bar=y)" - location: - row: 61 - column: 4 - end_location: - row: 62 - column: 40 + edits: + - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, bar=y)" + location: + row: 61 + column: 4 + end_location: + row: 62 + column: 40 parent: ~ - kind: name: PrintfStringFormatting @@ -514,13 +539,14 @@ expression: diagnostics row: 68 column: 37 fix: - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, **bar)" - location: - row: 67 - column: 4 - end_location: - row: 68 - column: 37 + edits: + - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, **bar)" + location: + row: 67 + column: 4 + end_location: + row: 68 + column: 37 parent: ~ - kind: name: PrintfStringFormatting @@ -534,13 +560,14 @@ expression: diagnostics row: 71 column: 29 fix: - content: "\"{} \\N{snowman}\".format(a)" - location: - row: 71 - column: 6 - end_location: - row: 71 - column: 29 + edits: + - content: "\"{} \\N{snowman}\".format(a)" + location: + row: 71 + column: 6 + end_location: + row: 71 + column: 29 parent: ~ - kind: name: PrintfStringFormatting @@ -554,13 +581,14 @@ expression: diagnostics row: 73 column: 40 fix: - content: "\"{foo} \\N{snowman}\".format(foo=1)" - location: - row: 73 - column: 6 - end_location: - row: 73 - column: 40 + edits: + - content: "\"{foo} \\N{snowman}\".format(foo=1)" + location: + row: 73 + column: 6 + end_location: + row: 73 + column: 40 parent: ~ - kind: name: PrintfStringFormatting @@ -574,13 +602,14 @@ expression: diagnostics row: 75 column: 35 fix: - content: "(\"foo {} \" \"bar {}\").format(x, y)" - location: - row: 75 - column: 6 - end_location: - row: 75 - column: 35 + edits: + - content: "(\"foo {} \" \"bar {}\").format(x, y)" + location: + row: 75 + column: 6 + end_location: + row: 75 + column: 35 parent: ~ - kind: name: PrintfStringFormatting @@ -594,13 +623,14 @@ expression: diagnostics row: 78 column: 26 fix: - content: "'Hello {}'.format(\"World\")" - location: - row: 78 - column: 6 - end_location: - row: 78 - column: 26 + edits: + - content: "'Hello {}'.format(\"World\")" + location: + row: 78 + column: 6 + end_location: + row: 78 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -614,13 +644,14 @@ expression: diagnostics row: 79 column: 27 fix: - content: "'Hello {}'.format(f\"World\")" - location: - row: 79 - column: 6 - end_location: - row: 79 - column: 27 + edits: + - content: "'Hello {}'.format(f\"World\")" + location: + row: 79 + column: 6 + end_location: + row: 79 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -634,13 +665,14 @@ expression: diagnostics row: 80 column: 27 fix: - content: "'Hello {} ({})'.format(*bar)" - location: - row: 80 - column: 6 - end_location: - row: 80 - column: 27 + edits: + - content: "'Hello {} ({})'.format(*bar)" + location: + row: 80 + column: 6 + end_location: + row: 80 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -654,13 +686,14 @@ expression: diagnostics row: 81 column: 31 fix: - content: "'Hello {} ({})'.format(*bar.baz)" - location: - row: 81 - column: 6 - end_location: - row: 81 - column: 31 + edits: + - content: "'Hello {} ({})'.format(*bar.baz)" + location: + row: 81 + column: 6 + end_location: + row: 81 + column: 31 parent: ~ - kind: name: PrintfStringFormatting @@ -674,13 +707,14 @@ expression: diagnostics row: 82 column: 34 fix: - content: "'Hello {} ({})'.format(*bar['bop'])" - location: - row: 82 - column: 6 - end_location: - row: 82 - column: 34 + edits: + - content: "'Hello {} ({})'.format(*bar['bop'])" + location: + row: 82 + column: 6 + end_location: + row: 82 + column: 34 parent: ~ - kind: name: PrintfStringFormatting @@ -694,13 +728,14 @@ expression: diagnostics row: 83 column: 27 fix: - content: "'Hello {arg}'.format(**bar)" - location: - row: 83 - column: 6 - end_location: - row: 83 - column: 27 + edits: + - content: "'Hello {arg}'.format(**bar)" + location: + row: 83 + column: 6 + end_location: + row: 83 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -714,13 +749,14 @@ expression: diagnostics row: 84 column: 31 fix: - content: "'Hello {arg}'.format(**bar.baz)" - location: - row: 84 - column: 6 - end_location: - row: 84 - column: 31 + edits: + - content: "'Hello {arg}'.format(**bar.baz)" + location: + row: 84 + column: 6 + end_location: + row: 84 + column: 31 parent: ~ - kind: name: PrintfStringFormatting @@ -734,12 +770,13 @@ expression: diagnostics row: 85 column: 34 fix: - content: "'Hello {arg}'.format(**bar['bop'])" - location: - row: 85 - column: 6 - end_location: - row: 85 - column: 34 + edits: + - content: "'Hello {arg}'.format(**bar['bop'])" + location: + row: 85 + column: 6 + end_location: + row: 85 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap index 9be0af3e0c979..4aba54b1aeb1d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 20 fix: - content: "f\"{a} {b}\"" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 20 + edits: + - content: "f\"{a} {b}\"" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 20 parent: ~ - kind: name: FString @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 22 fix: - content: "f\"{b} {a}\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 22 + edits: + - content: "f\"{b} {a}\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 22 parent: ~ - kind: name: FString @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 19 fix: - content: "f\"{z.y}\"" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 19 + edits: + - content: "f\"{z.y}\"" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 19 parent: ~ - kind: name: FString @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 24 fix: - content: "f\"{a.x} {b.y}\"" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 24 + edits: + - content: "f\"{a.x} {b.y}\"" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 24 parent: ~ - kind: name: FString @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 24 fix: - content: "f\"{a.b} {c.d}\"" - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 24 + edits: + - content: "f\"{a.b} {c.d}\"" + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 24 parent: ~ - kind: name: FString @@ -114,13 +119,14 @@ expression: diagnostics row: 15 column: 16 fix: - content: "f\"{a()}\"" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 16 + edits: + - content: "f\"{a()}\"" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 16 parent: ~ - kind: name: FString @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 18 fix: - content: "f\"{a.b()}\"" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 18 + edits: + - content: "f\"{a.b()}\"" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: FString @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 22 fix: - content: "f\"{a.b().c()}\"" - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 22 + edits: + - content: "f\"{a.b().c()}\"" + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 22 parent: ~ - kind: name: FString @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 24 fix: - content: "f\"hello {name}!\"" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 24 + edits: + - content: "f\"hello {name}!\"" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 24 parent: ~ - kind: name: FString @@ -194,13 +203,14 @@ expression: diagnostics row: 23 column: 27 fix: - content: "f\"{a}{b}{c}\"" - location: - row: 23 - column: 0 - end_location: - row: 23 - column: 27 + edits: + - content: "f\"{a}{b}{c}\"" + location: + row: 23 + column: 0 + end_location: + row: 23 + column: 27 parent: ~ - kind: name: FString @@ -214,13 +224,14 @@ expression: diagnostics row: 25 column: 16 fix: - content: "f\"{0x0}\"" - location: - row: 25 - column: 0 - end_location: - row: 25 - column: 16 + edits: + - content: "f\"{0x0}\"" + location: + row: 25 + column: 0 + end_location: + row: 25 + column: 16 parent: ~ - kind: name: FString @@ -234,13 +245,14 @@ expression: diagnostics row: 27 column: 20 fix: - content: "f\"{a} {b}\"" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 20 + edits: + - content: "f\"{a} {b}\"" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 20 parent: ~ - kind: name: FString @@ -254,13 +266,14 @@ expression: diagnostics row: 29 column: 24 fix: - content: "f\"\"\"{a} {b}\"\"\"" - location: - row: 29 - column: 0 - end_location: - row: 29 - column: 24 + edits: + - content: "f\"\"\"{a} {b}\"\"\"" + location: + row: 29 + column: 0 + end_location: + row: 29 + column: 24 parent: ~ - kind: name: FString @@ -274,13 +287,14 @@ expression: diagnostics row: 31 column: 17 fix: - content: "f\"foo{1}\"" - location: - row: 31 - column: 0 - end_location: - row: 31 - column: 17 + edits: + - content: "f\"foo{1}\"" + location: + row: 31 + column: 0 + end_location: + row: 31 + column: 17 parent: ~ - kind: name: FString @@ -294,13 +308,14 @@ expression: diagnostics row: 33 column: 18 fix: - content: "fr\"foo{1}\"" - location: - row: 33 - column: 0 - end_location: - row: 33 - column: 18 + edits: + - content: "fr\"foo{1}\"" + location: + row: 33 + column: 0 + end_location: + row: 33 + column: 18 parent: ~ - kind: name: FString @@ -314,13 +329,14 @@ expression: diagnostics row: 35 column: 21 fix: - content: "f\"{1}\"" - location: - row: 35 - column: 4 - end_location: - row: 35 - column: 21 + edits: + - content: "f\"{1}\"" + location: + row: 35 + column: 4 + end_location: + row: 35 + column: 21 parent: ~ - kind: name: FString @@ -334,13 +350,14 @@ expression: diagnostics row: 37 column: 25 fix: - content: "f\"foo {x} \"" - location: - row: 37 - column: 6 - end_location: - row: 37 - column: 25 + edits: + - content: "f\"foo {x} \"" + location: + row: 37 + column: 6 + end_location: + row: 37 + column: 25 parent: ~ - kind: name: FString @@ -354,13 +371,14 @@ expression: diagnostics row: 39 column: 20 fix: - content: "f\"{a[b]}\"" - location: - row: 39 - column: 0 - end_location: - row: 39 - column: 20 + edits: + - content: "f\"{a[b]}\"" + location: + row: 39 + column: 0 + end_location: + row: 39 + column: 20 parent: ~ - kind: name: FString @@ -374,13 +392,14 @@ expression: diagnostics row: 41 column: 22 fix: - content: "f\"{a.a[b]}\"" - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 22 + edits: + - content: "f\"{a.a[b]}\"" + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 22 parent: ~ - kind: name: FString @@ -394,13 +413,14 @@ expression: diagnostics row: 43 column: 29 fix: - content: "f\"{escaped}{{}}{y}\"" - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 29 + edits: + - content: "f\"{escaped}{{}}{y}\"" + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 29 parent: ~ - kind: name: FString @@ -414,13 +434,14 @@ expression: diagnostics row: 45 column: 14 fix: - content: "f\"{a}\"" - location: - row: 45 - column: 0 - end_location: - row: 45 - column: 14 + edits: + - content: "f\"{a}\"" + location: + row: 45 + column: 0 + end_location: + row: 45 + column: 14 parent: ~ - kind: name: FString @@ -434,13 +455,14 @@ expression: diagnostics row: 47 column: 24 fix: - content: "f'({a}={{0!e}})'" - location: - row: 47 - column: 0 - end_location: - row: 47 - column: 24 + edits: + - content: "f'({a}={{0!e}})'" + location: + row: 47 + column: 0 + end_location: + row: 47 + column: 24 parent: ~ - kind: name: FString @@ -454,13 +476,14 @@ expression: diagnostics row: 92 column: 53 fix: - content: " f\"{osname}-{version}.{release}\"" - location: - row: 92 - column: 10 - end_location: - row: 92 - column: 53 + edits: + - content: " f\"{osname}-{version}.{release}\"" + location: + row: 92 + column: 10 + end_location: + row: 92 + column: 53 parent: ~ - kind: name: FString @@ -474,13 +497,14 @@ expression: diagnostics row: 96 column: 23 fix: - content: " f\"{1}\"" - location: - row: 96 - column: 9 - end_location: - row: 96 - column: 23 + edits: + - content: " f\"{1}\"" + location: + row: 96 + column: 9 + end_location: + row: 96 + column: 23 parent: ~ - kind: name: FString @@ -494,12 +518,13 @@ expression: diagnostics row: 99 column: 20 fix: - content: " f\"{1}\"" - location: - row: 99 - column: 6 - end_location: - row: 99 - column: 20 + edits: + - content: " f\"{1}\"" + location: + row: 99 + column: 6 + end_location: + row: 99 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap index 28a1e8a2435be..d587e228b2d65 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 34 fix: - content: functools.cache - location: - row: 5 - column: 1 - end_location: - row: 5 - column: 34 + edits: + - content: functools.cache + location: + row: 5 + column: 1 + end_location: + row: 5 + column: 34 parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -33,7 +34,8 @@ expression: diagnostics end_location: row: 10 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -47,13 +49,14 @@ expression: diagnostics row: 16 column: 34 fix: - content: functools.cache - location: - row: 16 - column: 1 - end_location: - row: 16 - column: 34 + edits: + - content: functools.cache + location: + row: 16 + column: 1 + end_location: + row: 16 + column: 34 parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -67,12 +70,13 @@ expression: diagnostics row: 21 column: 34 fix: - content: functools.cache - location: - row: 21 - column: 1 - end_location: - row: 21 - column: 34 + edits: + - content: functools.cache + location: + row: 21 + column: 1 + end_location: + row: 21 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap index 11131316f68d9..5043eb538aba3 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: "\"foo\"" - location: - row: 2 - column: 6 - end_location: - row: 2 - column: 13 + edits: + - content: "\"foo\"" + location: + row: 2 + column: 6 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: ExtraneousParentheses @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 26 fix: - content: "\"hell((goodybe))o\"" - location: - row: 5 - column: 6 - end_location: - row: 5 - column: 26 + edits: + - content: "\"hell((goodybe))o\"" + location: + row: 5 + column: 6 + end_location: + row: 5 + column: 26 parent: ~ - kind: name: ExtraneousParentheses @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: "(\"foo\")" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 15 + edits: + - content: "(\"foo\")" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 15 parent: ~ - kind: name: ExtraneousParentheses @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 13 fix: - content: ((1)) - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 13 + edits: + - content: ((1)) + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 13 parent: ~ - kind: name: ExtraneousParentheses @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 25 fix: - content: "\"foo{}\".format(1)" - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 25 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 25 parent: ~ - kind: name: ExtraneousParentheses @@ -114,13 +119,14 @@ expression: diagnostics row: 18 column: 23 fix: - content: "\"foo{}\".format(1)" - location: - row: 18 - column: 4 - end_location: - row: 18 - column: 23 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 18 + column: 4 + end_location: + row: 18 + column: 23 parent: ~ - kind: name: ExtraneousParentheses @@ -134,13 +140,14 @@ expression: diagnostics row: 25 column: 5 fix: - content: "\n \"foo\"\n " - location: - row: 23 - column: 4 - end_location: - row: 25 - column: 5 + edits: + - content: "\n \"foo\"\n " + location: + row: 23 + column: 4 + end_location: + row: 25 + column: 5 parent: ~ - kind: name: ExtraneousParentheses @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 23 fix: - content: (yield 1) - location: - row: 30 - column: 12 - end_location: - row: 30 - column: 23 + edits: + - content: (yield 1) + location: + row: 30 + column: 12 + end_location: + row: 30 + column: 23 parent: ~ - kind: name: ExtraneousParentheses @@ -174,13 +182,14 @@ expression: diagnostics row: 35 column: 27 fix: - content: "\"foo{}\".format(1)" - location: - row: 35 - column: 8 - end_location: - row: 35 - column: 27 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 35 + column: 8 + end_location: + row: 35 + column: 27 parent: ~ - kind: name: ExtraneousParentheses @@ -194,12 +203,13 @@ expression: diagnostics row: 39 column: 27 fix: - content: x for x in range(3) - location: - row: 39 - column: 6 - end_location: - row: 39 - column: 27 + edits: + - content: x for x in range(3) + location: + row: 39 + column: 6 + end_location: + row: 39 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap index 441079428fa40..5b72677418c04 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: from collections.abc import Mapping - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: from collections.abc import Mapping + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: DeprecatedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 38 fix: - content: from collections.abc import Mapping as MAP - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 38 + edits: + - content: from collections.abc import Mapping as MAP + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 38 parent: ~ - kind: name: DeprecatedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 41 fix: - content: "from collections.abc import Mapping, Sequence" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 41 + edits: + - content: "from collections.abc import Mapping, Sequence" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 41 parent: ~ - kind: name: DeprecatedImport @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 40 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 40 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -94,13 +98,14 @@ expression: diagnostics row: 10 column: 42 fix: - content: "from collections import (Counter)\nfrom collections.abc import Mapping" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 42 + edits: + - content: "from collections import (Counter)\nfrom collections.abc import Mapping" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 42 parent: ~ - kind: name: DeprecatedImport @@ -114,13 +119,14 @@ expression: diagnostics row: 13 column: 33 fix: - content: "from collections import (Counter)\nfrom collections.abc import Mapping" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 33 + edits: + - content: "from collections import (Counter)\nfrom collections.abc import Mapping" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 33 parent: ~ - kind: name: DeprecatedImport @@ -134,13 +140,14 @@ expression: diagnostics row: 16 column: 32 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 32 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 32 parent: ~ - kind: name: DeprecatedImport @@ -154,13 +161,14 @@ expression: diagnostics row: 18 column: 50 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping, Sequence" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 50 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping, Sequence" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 50 parent: ~ - kind: name: DeprecatedImport @@ -174,13 +182,14 @@ expression: diagnostics row: 20 column: 51 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping as mapping" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 51 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping as mapping" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 51 parent: ~ - kind: name: DeprecatedImport @@ -194,13 +203,14 @@ expression: diagnostics row: 23 column: 44 fix: - content: "from collections import Counter\n from collections.abc import Mapping" - location: - row: 23 - column: 4 - end_location: - row: 23 - column: 44 + edits: + - content: "from collections import Counter\n from collections.abc import Mapping" + location: + row: 23 + column: 4 + end_location: + row: 23 + column: 44 parent: ~ - kind: name: DeprecatedImport @@ -214,13 +224,14 @@ expression: diagnostics row: 28 column: 44 fix: - content: "from collections import Counter\n from collections.abc import Mapping" - location: - row: 28 - column: 4 - end_location: - row: 28 - column: 44 + edits: + - content: "from collections import Counter\n from collections.abc import Mapping" + location: + row: 28 + column: 4 + end_location: + row: 28 + column: 44 parent: ~ - kind: name: DeprecatedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 30 column: 40 fix: - content: from collections.abc import Mapping - location: - row: 30 - column: 9 - end_location: - row: 30 - column: 40 + edits: + - content: from collections.abc import Mapping + location: + row: 30 + column: 9 + end_location: + row: 30 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -254,13 +266,14 @@ expression: diagnostics row: 33 column: 40 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 33 - column: 0 - end_location: - row: 33 - column: 40 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 33 + column: 0 + end_location: + row: 33 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -274,13 +287,14 @@ expression: diagnostics row: 42 column: 5 fix: - content: "from collections import (\n Bad,\n Good,\n )\n from collections.abc import Mapping, Callable" - location: - row: 37 - column: 4 - end_location: - row: 42 - column: 5 + edits: + - content: "from collections import (\n Bad,\n Good,\n )\n from collections.abc import Mapping, Callable" + location: + row: 37 + column: 4 + end_location: + row: 42 + column: 5 parent: ~ - kind: name: DeprecatedImport @@ -294,13 +308,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Match, Pattern, List, OrderedDict, AbstractSet, ContextManager\nfrom collections.abc import Callable" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Match, Pattern, List, OrderedDict, AbstractSet, ContextManager\nfrom collections.abc import Callable" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -314,13 +329,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Callable, Match, Pattern, List, AbstractSet, ContextManager\nfrom collections import OrderedDict" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Callable, Match, Pattern, List, AbstractSet, ContextManager\nfrom collections import OrderedDict" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -334,13 +350,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Callable, List, OrderedDict, AbstractSet, ContextManager\nfrom re import Match, Pattern" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Callable, List, OrderedDict, AbstractSet, ContextManager\nfrom re import Match, Pattern" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -353,7 +370,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -366,7 +384,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -379,7 +398,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -392,6 +412,7 @@ expression: diagnostics end_location: row: 47 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap index b26912ed3da72..bc76cc8371608 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 16 fix: - content: "print(\"py3\")" - location: - row: 3 - column: 0 - end_location: - row: 6 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 3 + column: 0 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: "print(\"py3\")" - location: - row: 8 - column: 0 - end_location: - row: 14 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 8 + column: 0 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "print(\"PY3!\")" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 19 + edits: + - content: "print(\"PY3!\")" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 23 column: 20 fix: - content: " print(\"PY3\")" - location: - row: 20 - column: 0 - end_location: - row: 23 - column: 20 + edits: + - content: " print(\"PY3\")" + location: + row: 20 + column: 0 + end_location: + row: 23 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 16 fix: - content: "print(\"py3\")" - location: - row: 25 - column: 0 - end_location: - row: 27 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 25 + column: 0 + end_location: + row: 27 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 30 fix: - content: "def f():\n print(\"py3\")\n print(\"This the next\")" - location: - row: 29 - column: 0 - end_location: - row: 35 - column: 30 + edits: + - content: "def f():\n print(\"py3\")\n print(\"This the next\")" + location: + row: 29 + column: 0 + end_location: + row: 35 + column: 30 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 40 column: 16 fix: - content: "print(\"py3\")" - location: - row: 37 - column: 0 - end_location: - row: 40 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 37 + column: 0 + end_location: + row: 40 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 48 column: 16 fix: - content: "print(\"py3\")" - location: - row: 45 - column: 0 - end_location: - row: 48 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 45 + column: 0 + end_location: + row: 48 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 54 column: 18 fix: - content: "print(\"py3\")" - location: - row: 53 - column: 0 - end_location: - row: 54 - column: 18 + edits: + - content: "print(\"py3\")" + location: + row: 53 + column: 0 + end_location: + row: 54 + column: 18 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 59 column: 16 fix: - content: "print(\"py3\")" - location: - row: 56 - column: 0 - end_location: - row: 59 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 56 + column: 0 + end_location: + row: 59 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 65 column: 20 fix: - content: " print(\"py3\")" - location: - row: 62 - column: 0 - end_location: - row: 65 - column: 20 + edits: + - content: " print(\"py3\")" + location: + row: 62 + column: 0 + end_location: + row: 65 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,13 +245,14 @@ expression: diagnostics row: 70 column: 16 fix: - content: "print(\"py3\")" - location: - row: 67 - column: 0 - end_location: - row: 70 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 67 + column: 0 + end_location: + row: 70 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -254,13 +266,14 @@ expression: diagnostics row: 79 column: 13 fix: - content: " yield" - location: - row: 73 - column: 0 - end_location: - row: 79 - column: 13 + edits: + - content: " yield" + location: + row: 73 + column: 0 + end_location: + row: 79 + column: 13 parent: ~ - kind: name: OutdatedVersionBlock @@ -274,13 +287,14 @@ expression: diagnostics row: 91 column: 16 fix: - content: " def f(py3):\n pass" - location: - row: 86 - column: 0 - end_location: - row: 91 - column: 16 + edits: + - content: " def f(py3):\n pass" + location: + row: 86 + column: 0 + end_location: + row: 91 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -294,13 +308,14 @@ expression: diagnostics row: 100 column: 9 fix: - content: " 3" - location: - row: 97 - column: 0 - end_location: - row: 100 - column: 9 + edits: + - content: " 3" + location: + row: 97 + column: 0 + end_location: + row: 100 + column: 9 parent: ~ - kind: name: OutdatedVersionBlock @@ -314,13 +329,14 @@ expression: diagnostics row: 113 column: 20 fix: - content: "def f():\n print(\"py3\")\ndef g():\n print(\"py3\")" - location: - row: 104 - column: 0 - end_location: - row: 113 - column: 20 + edits: + - content: "def f():\n print(\"py3\")\ndef g():\n print(\"py3\")" + location: + row: 104 + column: 0 + end_location: + row: 113 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -334,13 +350,14 @@ expression: diagnostics row: 117 column: 16 fix: - content: " print(3)" - location: - row: 116 - column: 0 - end_location: - row: 117 - column: 16 + edits: + - content: " print(3)" + location: + row: 116 + column: 0 + end_location: + row: 117 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -354,13 +371,14 @@ expression: diagnostics row: 122 column: 40 fix: - content: print(3) - location: - row: 122 - column: 4 - end_location: - row: 122 - column: 40 + edits: + - content: print(3) + location: + row: 122 + column: 4 + end_location: + row: 122 + column: 40 parent: ~ - kind: name: OutdatedVersionBlock @@ -374,13 +392,14 @@ expression: diagnostics row: 126 column: 16 fix: - content: " print(3)" - location: - row: 125 - column: 0 - end_location: - row: 126 - column: 16 + edits: + - content: " print(3)" + location: + row: 125 + column: 0 + end_location: + row: 126 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -394,13 +413,14 @@ expression: diagnostics row: 137 column: 9 fix: - content: " expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n ]" - location: - row: 130 - column: 0 - end_location: - row: 137 - column: 9 + edits: + - content: " expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n ]" + location: + row: 130 + column: 0 + end_location: + row: 137 + column: 9 parent: ~ - kind: name: OutdatedVersionBlock @@ -414,13 +434,14 @@ expression: diagnostics row: 147 column: 5 fix: - content: "expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n]" - location: - row: 140 - column: 0 - end_location: - row: 147 - column: 5 + edits: + - content: "expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n]" + location: + row: 140 + column: 0 + end_location: + row: 147 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -434,13 +455,14 @@ expression: diagnostics row: 161 column: 28 fix: - content: "\"\"\"this\nis valid\"\"\"\n\n\"\"\"the indentation on\n this line is significant\"\"\"\n\n\"this is\" \\\n \"allowed too\"\n\n(\"so is\"\n \"this for some reason\")" - location: - row: 150 - column: 0 - end_location: - row: 161 - column: 28 + edits: + - content: "\"\"\"this\nis valid\"\"\"\n\n\"\"\"the indentation on\n this line is significant\"\"\"\n\n\"this is\" \\\n \"allowed too\"\n\n(\"so is\"\n \"this for some reason\")" + location: + row: 150 + column: 0 + end_location: + row: 161 + column: 28 parent: ~ - kind: name: OutdatedVersionBlock @@ -454,13 +476,14 @@ expression: diagnostics row: 164 column: 6 fix: - content: "expected_error = \\\n []" - location: - row: 163 - column: 0 - end_location: - row: 164 - column: 6 + edits: + - content: "expected_error = \\\n []" + location: + row: 163 + column: 0 + end_location: + row: 164 + column: 6 parent: ~ - kind: name: OutdatedVersionBlock @@ -474,13 +497,14 @@ expression: diagnostics row: 166 column: 49 fix: - content: "expected_error = []" - location: - row: 166 - column: 0 - end_location: - row: 166 - column: 49 + edits: + - content: "expected_error = []" + location: + row: 166 + column: 0 + end_location: + row: 166 + column: 49 parent: ~ - kind: name: OutdatedVersionBlock @@ -494,13 +518,14 @@ expression: diagnostics row: 169 column: 23 fix: - content: "expected_error = []" - location: - row: 168 - column: 0 - end_location: - row: 169 - column: 23 + edits: + - content: "expected_error = []" + location: + row: 168 + column: 0 + end_location: + row: 169 + column: 23 parent: ~ - kind: name: OutdatedVersionBlock @@ -514,13 +539,14 @@ expression: diagnostics row: 173 column: 6 fix: - content: "expected_error = \\\n []" - location: - row: 172 - column: 4 - end_location: - row: 173 - column: 6 + edits: + - content: "expected_error = \\\n []" + location: + row: 172 + column: 4 + end_location: + row: 173 + column: 6 parent: ~ - kind: name: OutdatedVersionBlock @@ -534,13 +560,14 @@ expression: diagnostics row: 176 column: 53 fix: - content: "expected_error = []" - location: - row: 176 - column: 4 - end_location: - row: 176 - column: 53 + edits: + - content: "expected_error = []" + location: + row: 176 + column: 4 + end_location: + row: 176 + column: 53 parent: ~ - kind: name: OutdatedVersionBlock @@ -554,12 +581,13 @@ expression: diagnostics row: 180 column: 23 fix: - content: " expected_error = []" - location: - row: 179 - column: 0 - end_location: - row: 180 - column: 23 + edits: + - content: " expected_error = []" + location: + row: 179 + column: 0 + end_location: + row: 180 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap index 3c500d5627e41..2a120ca195a8f 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 5 fix: - content: "3" - location: - row: 3 - column: 0 - end_location: - row: 6 - column: 5 + edits: + - content: "3" + location: + row: 3 + column: 0 + end_location: + row: 6 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 5 fix: - content: "3" - location: - row: 8 - column: 0 - end_location: - row: 11 - column: 5 + edits: + - content: "3" + location: + row: 8 + column: 0 + end_location: + row: 11 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "3" - location: - row: 13 - column: 0 - end_location: - row: 16 - column: 5 + edits: + - content: "3" + location: + row: 13 + column: 0 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 5 fix: - content: "3" - location: - row: 18 - column: 0 - end_location: - row: 21 - column: 5 + edits: + - content: "3" + location: + row: 18 + column: 0 + end_location: + row: 21 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 5 fix: - content: "3" - location: - row: 23 - column: 0 - end_location: - row: 26 - column: 5 + edits: + - content: "3" + location: + row: 23 + column: 0 + end_location: + row: 26 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 31 column: 5 fix: - content: "3" - location: - row: 28 - column: 0 - end_location: - row: 31 - column: 5 + edits: + - content: "3" + location: + row: 28 + column: 0 + end_location: + row: 31 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 38 column: 5 fix: - content: "3" - location: - row: 35 - column: 0 - end_location: - row: 38 - column: 5 + edits: + - content: "3" + location: + row: 35 + column: 0 + end_location: + row: 38 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 45 column: 12 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 44 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 44 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 52 column: 12 fix: - content: "else:\n print(3)" - location: - row: 49 - column: 0 - end_location: - row: 52 - column: 12 + edits: + - content: "else:\n print(3)" + location: + row: 49 + column: 0 + end_location: + row: 52 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 12 fix: - content: "else:\n print(3)" - location: - row: 56 - column: 0 - end_location: - row: 57 - column: 12 + edits: + - content: "else:\n print(3)" + location: + row: 56 + column: 0 + end_location: + row: 57 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 63 column: 16 fix: - content: "else:\n print(3)" - location: - row: 62 - column: 4 - end_location: - row: 63 - column: 16 + edits: + - content: "else:\n print(3)" + location: + row: 62 + column: 4 + end_location: + row: 63 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,13 +245,14 @@ expression: diagnostics row: 70 column: 12 fix: - content: "" - location: - row: 67 - column: 0 - end_location: - row: 69 - column: 0 + edits: + - content: "" + location: + row: 67 + column: 0 + end_location: + row: 69 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -254,12 +266,13 @@ expression: diagnostics row: 76 column: 16 fix: - content: "else:\n print(3)" - location: - row: 75 - column: 4 - end_location: - row: 76 - column: 16 + edits: + - content: "else:\n print(3)" + location: + row: 75 + column: 4 + end_location: + row: 76 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap index 11b9ff3e56050..eca7cc8bdfade 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 7 fix: - content: 3+6 - location: - row: 4 - column: 0 - end_location: - row: 7 - column: 7 + edits: + - content: 3+6 + location: + row: 4 + column: 0 + end_location: + row: 7 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 7 fix: - content: 3+6 - location: - row: 9 - column: 0 - end_location: - row: 12 - column: 7 + edits: + - content: 3+6 + location: + row: 9 + column: 0 + end_location: + row: 12 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 7 fix: - content: 3+6 - location: - row: 14 - column: 0 - end_location: - row: 17 - column: 7 + edits: + - content: 3+6 + location: + row: 14 + column: 0 + end_location: + row: 17 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 7 fix: - content: 3+6 - location: - row: 19 - column: 0 - end_location: - row: 22 - column: 7 + edits: + - content: 3+6 + location: + row: 19 + column: 0 + end_location: + row: 22 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 7 fix: - content: 3+6 - location: - row: 24 - column: 0 - end_location: - row: 27 - column: 7 + edits: + - content: 3+6 + location: + row: 24 + column: 0 + end_location: + row: 27 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 32 column: 7 fix: - content: 3+6 - location: - row: 29 - column: 0 - end_location: - row: 32 - column: 7 + edits: + - content: 3+6 + location: + row: 29 + column: 0 + end_location: + row: 32 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 37 column: 7 fix: - content: 3+6 - location: - row: 34 - column: 0 - end_location: - row: 37 - column: 7 + edits: + - content: 3+6 + location: + row: 34 + column: 0 + end_location: + row: 37 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 40 column: 8 fix: - content: pass - location: - row: 39 - column: 0 - end_location: - row: 40 - column: 8 + edits: + - content: pass + location: + row: 39 + column: 0 + end_location: + row: 40 + column: 8 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 43 column: 8 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 44 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 44 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 47 column: 12 fix: - content: pass - location: - row: 46 - column: 4 - end_location: - row: 47 - column: 12 + edits: + - content: pass + location: + row: 46 + column: 4 + end_location: + row: 47 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 52 column: 8 fix: - content: "" - location: - row: 49 - column: 0 - end_location: - row: 51 - column: 2 + edits: + - content: "" + location: + row: 49 + column: 0 + end_location: + row: 51 + column: 2 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,12 +245,13 @@ expression: diagnostics row: 57 column: 8 fix: - content: pass - location: - row: 54 - column: 0 - end_location: - row: 57 - column: 8 + edits: + - content: pass + location: + row: 54 + column: 0 + end_location: + row: 57 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap index 1d85c25a40fa0..94dd3a2814905 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 28 fix: - content: "print(\"py3\")\nfor item in range(10):\n print(f\"PY3-{item}\")" - location: - row: 3 - column: 0 - end_location: - row: 10 - column: 28 + edits: + - content: "print(\"py3\")\nfor item in range(10):\n print(f\"PY3-{item}\")" + location: + row: 3 + column: 0 + end_location: + row: 10 + column: 28 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 32 fix: - content: " print(\"py3\")\n for item in range(10):\n print(f\"PY3-{item}\")" - location: - row: 13 - column: 0 - end_location: - row: 20 - column: 32 + edits: + - content: " print(\"py3\")\n for item in range(10):\n print(f\"PY3-{item}\")" + location: + row: 13 + column: 0 + end_location: + row: 20 + column: 32 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,12 +56,13 @@ expression: diagnostics row: 24 column: 50 fix: - content: "print(\"PY3!\")" - location: - row: 23 - column: 0 - end_location: - row: 24 - column: 50 + edits: + - content: "print(\"PY3!\")" + location: + row: 23 + column: 0 + end_location: + row: 24 + column: 50 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap index 0a3d0250356ee..1f83f78278231 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 53 fix: - content: pass - location: - row: 4 - column: 4 - end_location: - row: 5 - column: 53 + edits: + - content: pass + location: + row: 4 + column: 4 + end_location: + row: 5 + column: 53 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 53 fix: - content: "" - location: - row: 11 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 11 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 51 fix: - content: "" - location: - row: 17 - column: 4 - end_location: - row: 19 - column: 4 + edits: + - content: "" + location: + row: 17 + column: 4 + end_location: + row: 19 + column: 4 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 25 column: 53 fix: - content: "" - location: - row: 24 - column: 0 - end_location: - row: 26 - column: 0 + edits: + - content: "" + location: + row: 24 + column: 0 + end_location: + row: 26 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 28 column: 53 fix: - content: "" - location: - row: 27 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: "" + location: + row: 27 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 51 fix: - content: "" - location: - row: 32 - column: 4 - end_location: - row: 34 - column: 4 + edits: + - content: "" + location: + row: 32 + column: 4 + end_location: + row: 34 + column: 4 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 40 column: 51 fix: - content: " cmd = [sys.executable, \"-m\", \"test\", \"-j0\"]" - location: - row: 37 - column: 0 - end_location: - row: 40 - column: 51 + edits: + - content: " cmd = [sys.executable, \"-m\", \"test\", \"-j0\"]" + location: + row: 37 + column: 0 + end_location: + row: 40 + column: 51 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,12 +161,13 @@ expression: diagnostics row: 45 column: 51 fix: - content: "" - location: - row: 42 - column: 4 - end_location: - row: 44 - column: 6 + edits: + - content: "" + location: + row: 42 + column: 4 + end_location: + row: 44 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap index 3f2affaa3a6fe..acc52d768c741 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 18 column: 22 fix: - content: MyClass - location: - row: 18 - column: 13 - end_location: - row: 18 - column: 22 + edits: + - content: MyClass + location: + row: 18 + column: 13 + end_location: + row: 18 + column: 22 parent: ~ - kind: name: QuotedAnnotation @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 36 fix: - content: MyClass - location: - row: 18 - column: 27 - end_location: - row: 18 - column: 36 + edits: + - content: MyClass + location: + row: 18 + column: 27 + end_location: + row: 18 + column: 36 parent: ~ - kind: name: QuotedAnnotation @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 16 fix: - content: MyClass - location: - row: 19 - column: 7 - end_location: - row: 19 - column: 16 + edits: + - content: MyClass + location: + row: 19 + column: 7 + end_location: + row: 19 + column: 16 parent: ~ - kind: name: QuotedAnnotation @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 26 fix: - content: bool - location: - row: 22 - column: 20 - end_location: - row: 22 - column: 26 + edits: + - content: bool + location: + row: 22 + column: 20 + end_location: + row: 22 + column: 26 parent: ~ - kind: name: QuotedAnnotation @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 20 fix: - content: str - location: - row: 26 - column: 15 - end_location: - row: 26 - column: 20 + edits: + - content: str + location: + row: 26 + column: 15 + end_location: + row: 26 + column: 20 parent: ~ - kind: name: QuotedAnnotation @@ -114,13 +119,14 @@ expression: diagnostics row: 26 column: 37 fix: - content: int - location: - row: 26 - column: 32 - end_location: - row: 26 - column: 37 + edits: + - content: int + location: + row: 26 + column: 32 + end_location: + row: 26 + column: 37 parent: ~ - kind: name: QuotedAnnotation @@ -134,13 +140,14 @@ expression: diagnostics row: 30 column: 18 fix: - content: MyClass - location: - row: 30 - column: 9 - end_location: - row: 30 - column: 18 + edits: + - content: MyClass + location: + row: 30 + column: 9 + end_location: + row: 30 + column: 18 parent: ~ - kind: name: QuotedAnnotation @@ -154,13 +161,14 @@ expression: diagnostics row: 32 column: 22 fix: - content: MyClass - location: - row: 32 - column: 13 - end_location: - row: 32 - column: 22 + edits: + - content: MyClass + location: + row: 32 + column: 13 + end_location: + row: 32 + column: 22 parent: ~ - kind: name: QuotedAnnotation @@ -174,13 +182,14 @@ expression: diagnostics row: 36 column: 16 fix: - content: MyClass - location: - row: 36 - column: 7 - end_location: - row: 36 - column: 16 + edits: + - content: MyClass + location: + row: 36 + column: 7 + end_location: + row: 36 + column: 16 parent: ~ - kind: name: QuotedAnnotation @@ -194,13 +203,14 @@ expression: diagnostics row: 40 column: 31 fix: - content: int - location: - row: 40 - column: 26 - end_location: - row: 40 - column: 31 + edits: + - content: int + location: + row: 40 + column: 26 + end_location: + row: 40 + column: 31 parent: ~ - kind: name: QuotedAnnotation @@ -214,13 +224,14 @@ expression: diagnostics row: 44 column: 35 fix: - content: int - location: - row: 44 - column: 30 - end_location: - row: 44 - column: 35 + edits: + - content: int + location: + row: 44 + column: 30 + end_location: + row: 44 + column: 35 parent: ~ - kind: name: QuotedAnnotation @@ -234,13 +245,14 @@ expression: diagnostics row: 47 column: 18 fix: - content: str - location: - row: 47 - column: 13 - end_location: - row: 47 - column: 18 + edits: + - content: str + location: + row: 47 + column: 13 + end_location: + row: 47 + column: 18 parent: ~ - kind: name: QuotedAnnotation @@ -254,13 +266,14 @@ expression: diagnostics row: 49 column: 12 fix: - content: str - location: - row: 49 - column: 7 - end_location: - row: 49 - column: 12 + edits: + - content: str + location: + row: 49 + column: 7 + end_location: + row: 49 + column: 12 parent: ~ - kind: name: QuotedAnnotation @@ -274,13 +287,14 @@ expression: diagnostics row: 51 column: 19 fix: - content: str - location: - row: 51 - column: 14 - end_location: - row: 51 - column: 19 + edits: + - content: str + location: + row: 51 + column: 14 + end_location: + row: 51 + column: 19 parent: ~ - kind: name: QuotedAnnotation @@ -294,13 +308,14 @@ expression: diagnostics row: 53 column: 17 fix: - content: str - location: - row: 53 - column: 12 - end_location: - row: 53 - column: 17 + edits: + - content: str + location: + row: 53 + column: 12 + end_location: + row: 53 + column: 17 parent: ~ - kind: name: QuotedAnnotation @@ -314,13 +329,14 @@ expression: diagnostics row: 55 column: 24 fix: - content: str - location: - row: 55 - column: 19 - end_location: - row: 55 - column: 24 + edits: + - content: str + location: + row: 55 + column: 19 + end_location: + row: 55 + column: 24 parent: ~ - kind: name: QuotedAnnotation @@ -334,13 +350,14 @@ expression: diagnostics row: 57 column: 24 fix: - content: str - location: - row: 57 - column: 19 - end_location: - row: 57 - column: 24 + edits: + - content: str + location: + row: 57 + column: 19 + end_location: + row: 57 + column: 24 parent: ~ - kind: name: QuotedAnnotation @@ -354,13 +371,14 @@ expression: diagnostics row: 59 column: 15 fix: - content: str - location: - row: 59 - column: 10 - end_location: - row: 59 - column: 15 + edits: + - content: str + location: + row: 59 + column: 10 + end_location: + row: 59 + column: 15 parent: ~ - kind: name: QuotedAnnotation @@ -374,13 +392,14 @@ expression: diagnostics row: 61 column: 27 fix: - content: MyClass - location: - row: 61 - column: 18 - end_location: - row: 61 - column: 27 + edits: + - content: MyClass + location: + row: 61 + column: 18 + end_location: + row: 61 + column: 27 parent: ~ - kind: name: QuotedAnnotation @@ -394,13 +413,14 @@ expression: diagnostics row: 63 column: 33 fix: - content: int - location: - row: 63 - column: 28 - end_location: - row: 63 - column: 33 + edits: + - content: int + location: + row: 63 + column: 28 + end_location: + row: 63 + column: 33 parent: ~ - kind: name: QuotedAnnotation @@ -414,13 +434,14 @@ expression: diagnostics row: 63 column: 49 fix: - content: str - location: - row: 63 - column: 44 - end_location: - row: 63 - column: 49 + edits: + - content: str + location: + row: 63 + column: 44 + end_location: + row: 63 + column: 49 parent: ~ - kind: name: QuotedAnnotation @@ -434,13 +455,14 @@ expression: diagnostics row: 65 column: 33 fix: - content: foo - location: - row: 65 - column: 28 - end_location: - row: 65 - column: 33 + edits: + - content: foo + location: + row: 65 + column: 28 + end_location: + row: 65 + column: 33 parent: ~ - kind: name: QuotedAnnotation @@ -454,13 +476,14 @@ expression: diagnostics row: 65 column: 40 fix: - content: int - location: - row: 65 - column: 35 - end_location: - row: 65 - column: 40 + edits: + - content: int + location: + row: 65 + column: 35 + end_location: + row: 65 + column: 40 parent: ~ - kind: name: QuotedAnnotation @@ -474,13 +497,14 @@ expression: diagnostics row: 65 column: 49 fix: - content: bar - location: - row: 65 - column: 44 - end_location: - row: 65 - column: 49 + edits: + - content: bar + location: + row: 65 + column: 44 + end_location: + row: 65 + column: 49 parent: ~ - kind: name: QuotedAnnotation @@ -494,13 +518,14 @@ expression: diagnostics row: 65 column: 56 fix: - content: str - location: - row: 65 - column: 51 - end_location: - row: 65 - column: 56 + edits: + - content: str + location: + row: 65 + column: 51 + end_location: + row: 65 + column: 56 parent: ~ - kind: name: QuotedAnnotation @@ -514,13 +539,14 @@ expression: diagnostics row: 67 column: 26 fix: - content: X - location: - row: 67 - column: 23 - end_location: - row: 67 - column: 26 + edits: + - content: X + location: + row: 67 + column: 23 + end_location: + row: 67 + column: 26 parent: ~ - kind: name: QuotedAnnotation @@ -534,13 +560,14 @@ expression: diagnostics row: 67 column: 42 fix: - content: foo - location: - row: 67 - column: 37 - end_location: - row: 67 - column: 42 + edits: + - content: foo + location: + row: 67 + column: 37 + end_location: + row: 67 + column: 42 parent: ~ - kind: name: QuotedAnnotation @@ -554,12 +581,13 @@ expression: diagnostics row: 67 column: 49 fix: - content: int - location: - row: 67 - column: 44 - end_location: - row: 67 - column: 49 + edits: + - content: int + location: + row: 67 + column: 44 + end_location: + row: 67 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap index 01e40e2f6a57b..f4b2f1dc36d04 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 27 fix: - content: int | float - location: - row: 1 - column: 14 - end_location: - row: 1 - column: 26 + edits: + - content: int | float + location: + row: 1 + column: 14 + end_location: + row: 1 + column: 26 parent: ~ - kind: name: NonPEP604Isinstance @@ -34,12 +35,13 @@ expression: diagnostics row: 2 column: 36 fix: - content: int | float | str - location: - row: 2 - column: 18 - end_location: - row: 2 - column: 35 + edits: + - content: int | float | str + location: + row: 2 + column: 18 + end_location: + row: 2 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap index 823a873b0d886..bfcd3208eaacd 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DatetimeTimezoneUTC @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DatetimeTimezoneUTC @@ -40,13 +42,14 @@ expression: diagnostics row: 10 column: 27 fix: - content: datetime.UTC - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 27 + edits: + - content: datetime.UTC + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 27 parent: ~ - kind: name: DatetimeTimezoneUTC @@ -59,6 +62,7 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap index 20d592af03bce..08dc1b11f1935 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 21 fix: - content: list - location: - row: 34 - column: 17 - end_location: - row: 34 - column: 21 + edits: + - content: list + location: + row: 34 + column: 17 + end_location: + row: 34 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap index cdcf9e9121608..9de58b84f4926 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 34 column: 21 fix: - content: list - location: - row: 34 - column: 17 - end_location: - row: 34 - column: 21 + edits: + - content: list + location: + row: 34 + column: 17 + end_location: + row: 34 + column: 21 parent: ~ - kind: name: NonPEP585Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 35 column: 12 fix: - content: list - location: - row: 35 - column: 8 - end_location: - row: 35 - column: 12 + edits: + - content: list + location: + row: 35 + column: 8 + end_location: + row: 35 + column: 12 parent: ~ - kind: name: NonPEP585Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 30 fix: - content: list - location: - row: 42 - column: 26 - end_location: - row: 42 - column: 30 + edits: + - content: list + location: + row: 42 + column: 26 + end_location: + row: 42 + column: 30 parent: ~ - kind: name: NonPEP585Annotation @@ -74,12 +77,13 @@ expression: diagnostics row: 42 column: 41 fix: - content: list - location: - row: 42 - column: 37 - end_location: - row: 42 - column: 41 + edits: + - content: list + location: + row: 42 + column: 37 + end_location: + row: 42 + column: 41 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap index fe642359e71c8..815b5df80df21 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 40 column: 16 fix: - content: int | None - location: - row: 40 - column: 3 - end_location: - row: 40 - column: 16 + edits: + - content: int | None + location: + row: 40 + column: 3 + end_location: + row: 40 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap index a5b65af7683fe..f4f481f309dd4 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 16 fix: - content: int | None - location: - row: 40 - column: 3 - end_location: - row: 40 - column: 16 + edits: + - content: int | None + location: + row: 40 + column: 3 + end_location: + row: 40 + column: 16 parent: ~ - kind: name: NonPEP604Annotation @@ -34,12 +35,13 @@ expression: diagnostics row: 42 column: 47 fix: - content: "List[int] | List[str]" - location: - row: 42 - column: 20 - end_location: - row: 42 - column: 47 + edits: + - content: "List[int] | List[str]" + location: + row: 42 + column: 20 + end_location: + row: 42 + column: 47 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap index d8f5d9a72e15f..51bcb2c206755 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 21 fix: - content: "[1, 2, 3, *foo]" - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 21 + edits: + - content: "[1, 2, 3, *foo]" + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 21 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "(7, 8, 9, *zoob)" - location: - row: 12 - column: 7 - end_location: - row: 12 - column: 23 + edits: + - content: "(7, 8, 9, *zoob)" + location: + row: 12 + column: 7 + end_location: + row: 12 + column: 23 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 26 fix: - content: "(*quux, 10, 11, 12)" - location: - row: 13 - column: 7 - end_location: - row: 13 - column: 26 + edits: + - content: "(*quux, 10, 11, 12)" + location: + row: 13 + column: 7 + end_location: + row: 13 + column: 26 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -74,13 +77,14 @@ expression: diagnostics row: 15 column: 26 fix: - content: "[*spom, 13, 14, 15]" - location: - row: 15 - column: 7 - end_location: - row: 15 - column: 26 + edits: + - content: "[*spom, 13, 14, 15]" + location: + row: 15 + column: 7 + end_location: + row: 15 + column: 26 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -94,13 +98,14 @@ expression: diagnostics row: 16 column: 36 fix: - content: "(\"we all say\", *yay())" - location: - row: 16 - column: 12 - end_location: - row: 16 - column: 36 + edits: + - content: "(\"we all say\", *yay())" + location: + row: 16 + column: 12 + end_location: + row: 16 + column: 36 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 45 fix: - content: "(\"we all think\", *Fun().yay())" - location: - row: 17 - column: 13 - end_location: - row: 17 - column: 45 + edits: + - content: "(\"we all think\", *Fun().yay())" + location: + row: 17 + column: 13 + end_location: + row: 17 + column: 45 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 44 fix: - content: "(\"we all feel\", *Fun.words)" - location: - row: 18 - column: 15 - end_location: - row: 18 - column: 44 + edits: + - content: "(\"we all feel\", *Fun.words)" + location: + row: 18 + column: 15 + end_location: + row: 18 + column: 44 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 30 fix: - content: "[\"a\", \"b\", \"c\", *eggs]" - location: - row: 20 - column: 8 - end_location: - row: 20 - column: 30 + edits: + - content: "[\"a\", \"b\", \"c\", *eggs]" + location: + row: 20 + column: 8 + end_location: + row: 20 + column: 30 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -174,13 +182,14 @@ expression: diagnostics row: 20 column: 67 fix: - content: "(\"yes\", \"no\", \"pants\", *zoob)" - location: - row: 20 - column: 38 - end_location: - row: 20 - column: 67 + edits: + - content: "(\"yes\", \"no\", \"pants\", *zoob)" + location: + row: 20 + column: 38 + end_location: + row: 20 + column: 67 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -194,13 +203,14 @@ expression: diagnostics row: 22 column: 15 fix: - content: "(*zoob,)" - location: - row: 22 - column: 6 - end_location: - row: 22 - column: 15 + edits: + - content: "(*zoob,)" + location: + row: 22 + column: 6 + end_location: + row: 22 + column: 15 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -213,7 +223,8 @@ expression: diagnostics end_location: row: 39 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollectionLiteralConcatenation @@ -227,13 +238,14 @@ expression: diagnostics row: 41 column: 8 fix: - content: "[*foo]" - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 8 + edits: + - content: "[*foo]" + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 8 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -247,12 +259,13 @@ expression: diagnostics row: 44 column: 8 fix: - content: "[*foo]" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 8 + edits: + - content: "[*foo]" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap index c9fcfada6b7a1..68817bb91818c 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AsyncioDanglingTask @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 51 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap index afe5d78ee5217..b75e1d4462c2f 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 6 fix: - content: B - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 6 + edits: + - content: B + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 6 parent: ~ - kind: name: AmbiguousUnicodeCharacterDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 56 fix: - content: ) - location: - row: 6 - column: 55 - end_location: - row: 6 - column: 56 + edits: + - content: ) + location: + row: 6 + column: 55 + end_location: + row: 6 + column: 56 parent: ~ - kind: name: AmbiguousUnicodeCharacterComment @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 62 fix: - content: / - location: - row: 7 - column: 61 - end_location: - row: 7 - column: 62 + edits: + - content: / + location: + row: 7 + column: 61 + end_location: + row: 7 + column: 62 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap index cd7486d195d8b..b866b1f342b15 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 17 fix: - content: "" - location: - row: 9 - column: 9 - end_location: - row: 9 - column: 17 + edits: + - content: "" + location: + row: 9 + column: 9 + end_location: + row: 9 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 23 fix: - content: "" - location: - row: 13 - column: 9 - end_location: - row: 13 - column: 23 + edits: + - content: "" + location: + row: 13 + column: 9 + end_location: + row: 13 + column: 23 parent: ~ - kind: name: UnusedNOQA @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 29 fix: - content: "" - location: - row: 16 - column: 9 - end_location: - row: 16 - column: 29 + edits: + - content: "" + location: + row: 16 + column: 9 + end_location: + row: 16 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 35 fix: - content: "" - location: - row: 19 - column: 9 - end_location: - row: 19 - column: 35 + edits: + - content: "" + location: + row: 19 + column: 9 + end_location: + row: 19 + column: 35 parent: ~ - kind: name: UnusedNOQA @@ -94,13 +98,14 @@ expression: diagnostics row: 22 column: 29 fix: - content: "" - location: - row: 22 - column: 9 - end_location: - row: 22 - column: 29 + edits: + - content: "" + location: + row: 22 + column: 9 + end_location: + row: 22 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -114,13 +119,14 @@ expression: diagnostics row: 26 column: 21 fix: - content: "" - location: - row: 26 - column: 9 - end_location: - row: 26 - column: 21 + edits: + - content: "" + location: + row: 26 + column: 9 + end_location: + row: 26 + column: 21 parent: ~ - kind: name: UnusedVariable @@ -134,13 +140,14 @@ expression: diagnostics row: 29 column: 5 fix: - content: "" - location: - row: 29 - column: 0 - end_location: - row: 30 - column: 0 + edits: + - content: "" + location: + row: 29 + column: 0 + end_location: + row: 30 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -154,13 +161,14 @@ expression: diagnostics row: 29 column: 44 fix: - content: "" - location: - row: 29 - column: 9 - end_location: - row: 29 - column: 44 + edits: + - content: "" + location: + row: 29 + column: 9 + end_location: + row: 29 + column: 44 parent: ~ - kind: name: UnusedNOQA @@ -174,13 +182,14 @@ expression: diagnostics row: 55 column: 23 fix: - content: "# noqa: E501" - location: - row: 55 - column: 5 - end_location: - row: 55 - column: 23 + edits: + - content: "# noqa: E501" + location: + row: 55 + column: 5 + end_location: + row: 55 + column: 23 parent: ~ - kind: name: UnusedNOQA @@ -194,13 +203,14 @@ expression: diagnostics row: 63 column: 17 fix: - content: "" - location: - row: 63 - column: 3 - end_location: - row: 63 - column: 17 + edits: + - content: "" + location: + row: 63 + column: 3 + end_location: + row: 63 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -214,13 +224,14 @@ expression: diagnostics row: 71 column: 11 fix: - content: "" - location: - row: 71 - column: 3 - end_location: - row: 71 - column: 11 + edits: + - content: "" + location: + row: 71 + column: 3 + end_location: + row: 71 + column: 11 parent: ~ - kind: name: UnusedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 85 column: 13 fix: - content: "" - location: - row: 85 - column: 0 - end_location: - row: 86 - column: 0 + edits: + - content: "" + location: + row: 85 + column: 0 + end_location: + row: 86 + column: 0 parent: ~ - kind: name: LineTooLong @@ -253,7 +265,8 @@ expression: diagnostics end_location: row: 90 column: 103 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedNOQA @@ -267,12 +280,13 @@ expression: diagnostics row: 90 column: 103 fix: - content: "" - location: - row: 90 - column: 89 - end_location: - row: 90 - column: 103 + edits: + - content: "" + location: + row: 90 + column: 89 + end_location: + row: 90 + column: 103 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap index dbc4bc5de4a2f..03b44f1e2dc0d 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 37 column: 13 fix: - content: "from typing import (\n Mapping, # noqa: F401\n )" - location: - row: 35 - column: 4 - end_location: - row: 38 - column: 5 + edits: + - content: "from typing import (\n Mapping, # noqa: F401\n )" + location: + row: 35 + column: 4 + end_location: + row: 38 + column: 5 parent: row: 35 column: 4 @@ -36,13 +37,14 @@ expression: diagnostics row: 52 column: 31 fix: - content: "" - location: - row: 52 - column: 17 - end_location: - row: 52 - column: 31 + edits: + - content: "" + location: + row: 52 + column: 17 + end_location: + row: 52 + column: 31 parent: ~ - kind: name: UnusedNOQA @@ -56,13 +58,14 @@ expression: diagnostics row: 59 column: 31 fix: - content: "" - location: - row: 59 - column: 17 - end_location: - row: 59 - column: 31 + edits: + - content: "" + location: + row: 59 + column: 17 + end_location: + row: 59 + column: 31 parent: ~ - kind: name: UnusedNOQA @@ -76,13 +79,14 @@ expression: diagnostics row: 66 column: 27 fix: - content: "" - location: - row: 66 - column: 13 - end_location: - row: 66 - column: 27 + edits: + - content: "" + location: + row: 66 + column: 13 + end_location: + row: 66 + column: 27 parent: ~ - kind: name: UnusedNOQA @@ -96,13 +100,14 @@ expression: diagnostics row: 72 column: 38 fix: - content: "" - location: - row: 72 - column: 24 - end_location: - row: 72 - column: 38 + edits: + - content: "" + location: + row: 72 + column: 24 + end_location: + row: 72 + column: 38 parent: ~ - kind: name: UnusedImport @@ -116,13 +121,14 @@ expression: diagnostics row: 89 column: 32 fix: - content: pass - location: - row: 89 - column: 4 - end_location: - row: 89 - column: 52 + edits: + - content: pass + location: + row: 89 + column: 4 + end_location: + row: 89 + column: 52 parent: ~ - kind: name: UnusedImport @@ -136,13 +142,14 @@ expression: diagnostics row: 89 column: 52 fix: - content: pass - location: - row: 89 - column: 4 - end_location: - row: 89 - column: 52 + edits: + - content: pass + location: + row: 89 + column: 4 + end_location: + row: 89 + column: 52 parent: ~ - kind: name: UnusedNOQA @@ -156,12 +163,13 @@ expression: diagnostics row: 89 column: 66 fix: - content: "" - location: - row: 89 - column: 52 - end_location: - row: 89 - column: 66 + edits: + - content: "" + location: + row: 89 + column: 52 + end_location: + row: 89 + column: 66 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap index 04ceb69caafb9..48b87e73b9445 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 30 fix: - content: "" - location: - row: 1 - column: 16 - end_location: - row: 1 - column: 30 + edits: + - content: "" + location: + row: 1 + column: 16 + end_location: + row: 1 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap index 5b9cf64b25236..2867db9242cf7 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 6 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 6 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 7 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 7 parent: ~ - kind: name: UnusedNOQA @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: "" - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 15 + edits: + - content: "" + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: UnusedNOQA @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "" - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 16 + edits: + - content: "" + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 16 parent: ~ - kind: name: UnusedNOQA @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: "" - location: - row: 5 - column: 9 - end_location: - row: 5 - column: 17 + edits: + - content: "" + location: + row: 5 + column: 9 + end_location: + row: 5 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "" - location: - row: 6 - column: 11 - end_location: - row: 6 - column: 16 + edits: + - content: "" + location: + row: 6 + column: 11 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: UnusedNOQA @@ -134,13 +140,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "" - location: - row: 7 - column: 11 - end_location: - row: 7 - column: 17 + edits: + - content: "" + location: + row: 7 + column: 11 + end_location: + row: 7 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -154,13 +161,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -174,13 +182,14 @@ expression: diagnostics row: 15 column: 18 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 19 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 19 parent: ~ - kind: name: UnusedNOQA @@ -194,13 +203,14 @@ expression: diagnostics row: 16 column: 27 fix: - content: "" - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 27 + edits: + - content: "" + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 27 parent: ~ - kind: name: UnusedNOQA @@ -214,13 +224,14 @@ expression: diagnostics row: 17 column: 27 fix: - content: "" - location: - row: 17 - column: 9 - end_location: - row: 17 - column: 28 + edits: + - content: "" + location: + row: 17 + column: 9 + end_location: + row: 17 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -234,13 +245,14 @@ expression: diagnostics row: 18 column: 27 fix: - content: "" - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 29 + edits: + - content: "" + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -254,13 +266,14 @@ expression: diagnostics row: 19 column: 27 fix: - content: "" - location: - row: 19 - column: 11 - end_location: - row: 19 - column: 28 + edits: + - content: "" + location: + row: 19 + column: 11 + end_location: + row: 19 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -274,13 +287,14 @@ expression: diagnostics row: 20 column: 27 fix: - content: "" - location: - row: 20 - column: 11 - end_location: - row: 20 - column: 29 + edits: + - content: "" + location: + row: 20 + column: 11 + end_location: + row: 20 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -294,13 +308,14 @@ expression: diagnostics row: 21 column: 28 fix: - content: "# noqa: F821" - location: - row: 21 - column: 10 - end_location: - row: 21 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 21 + column: 10 + end_location: + row: 21 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -314,13 +329,14 @@ expression: diagnostics row: 22 column: 28 fix: - content: "# noqa: F821" - location: - row: 22 - column: 10 - end_location: - row: 22 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 22 + column: 10 + end_location: + row: 22 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -334,13 +350,14 @@ expression: diagnostics row: 23 column: 28 fix: - content: "# noqa: F821" - location: - row: 23 - column: 10 - end_location: - row: 23 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 23 + column: 10 + end_location: + row: 23 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -354,13 +371,14 @@ expression: diagnostics row: 24 column: 28 fix: - content: "# noqa: F821" - location: - row: 24 - column: 10 - end_location: - row: 24 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 24 + column: 10 + end_location: + row: 24 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -374,12 +392,13 @@ expression: diagnostics row: 25 column: 28 fix: - content: "# noqa: F821" - location: - row: 25 - column: 10 - end_location: - row: 25 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 25 + column: 10 + end_location: + row: 25 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap index bdbda3c21433b..34d0fa29a1e9e 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 16 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 18 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 21 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 25 column: 3 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap index 785e17d410cdd..7ab5096129804 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 5 fix: - content: pass - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 9 + edits: + - content: pass + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap index 0bba9d51340ee..b63b2c3353d6e 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 35 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 38 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 45 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 48 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap index 4a0e766112f7d..de22181102fc7 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 34 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 39 column: 70 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 44 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap index db68e5dc9247f..8c972f967d35b 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaClass @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap index 34790bde96a92..fb2f3b5fcc8c0 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 27 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 34 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap index 7c2e4a7b85d5e..2f14655a3a44a 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReraiseNoCause @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 23 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap index 5a9ace3f22476..4bc4629590ee8 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 20 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap index 6d0dea1ef078f..20fe7c2571971 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 19 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 37 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 44 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 51 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 58 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 65 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 72 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 79 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 86 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 97 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 104 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 111 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 118 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 125 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 132 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 139 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 146 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 153 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 160 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 167 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 174 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 181 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 188 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 195 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 202 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 209 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 216 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 223 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 230 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 267 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 277 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -442,6 +475,7 @@ expression: diagnostics end_location: row: 288 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap index 40d54e98b3d6c..2d73ad7129fed 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 19 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 23 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 24 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 27 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 39 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 46 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 53 column: 48 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap index 4bb80043d18f2..66e5c3b4074c1 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseRaise @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 63 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseRaise @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 74 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff_cli/tests/integration_test.rs b/crates/ruff_cli/tests/integration_test.rs index 132a6acb9c1dc..0b9c172a53965 100644 --- a/crates/ruff_cli/tests/integration_test.rs +++ b/crates/ruff_cli/tests/integration_test.rs @@ -93,16 +93,20 @@ fn test_stdin_json() -> Result<()> { "code": "F401", "message": "`os` imported but unused", "fix": {{ - "content": "", "message": "Remove unused import: `os`", - "location": {{ - "row": 1, - "column": 0 - }}, - "end_location": {{ - "row": 2, - "column": 0 - }} + "edits": [ + {{ + "content": "", + "location": {{ + "row": 1, + "column": 0 + }}, + "end_location": {{ + "row": 2, + "column": 0 + }} + }} + ] }}, "location": {{ "row": 1, diff --git a/crates/ruff_diagnostics/src/fix.rs b/crates/ruff_diagnostics/src/fix.rs index 3eaa8f02416f6..71e07c9c3a286 100644 --- a/crates/ruff_diagnostics/src/fix.rs +++ b/crates/ruff_diagnostics/src/fix.rs @@ -32,6 +32,11 @@ impl Fix { self.edits.iter().map(|edit| edit.location).min() } + /// Return the [`Location`] of the last [`Edit`] in the [`Fix`]. + pub fn end_location(&self) -> Option { + self.edits.iter().map(|edit| edit.end_location).max() + } + /// Return a slice of the [`Edit`] elements in the [`Fix`]. pub fn edits(&self) -> &[Edit] { &self.edits diff --git a/crates/ruff_wasm/tests/api.rs b/crates/ruff_wasm/tests/api.rs index b2bdf04dae825..432a86f3ea2e8 100644 --- a/crates/ruff_wasm/tests/api.rs +++ b/crates/ruff_wasm/tests/api.rs @@ -5,7 +5,6 @@ use rustpython_parser::ast::Location; use wasm_bindgen_test::*; use ruff::registry::Rule; -use ruff_diagnostics::Fix; use ruff_wasm::*; macro_rules! check { @@ -31,7 +30,7 @@ fn empty_config() { message: "If test is a tuple, which is always `True`".to_string(), location: Location::new(1, 0), end_location: Location::new(2, 8), - fix: Fix::empty(), + fix: None, }] ); }