diff --git a/Cargo.lock b/Cargo.lock index 36287f9507..31acae55cb 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 0a0f3c4467..308b819a9f 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 1b855384cb..25530eb40c 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 01c33efd0c..584e3d9b2a 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 50765218ec..f837311fb0 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/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 167d1197b8..018a521ceb 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 8e5fce3732..79eb8f43c7 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 e9f6140fb3..e5f9c4590e 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 7bf2c1aca3..67657f7fa3 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 35226f04de..bd5e53558c 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 0084bdb20b..3d12b2ab35 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 a4e1fc2d36..e6f1891e69 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 9ff038fb68..e1101f322b 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 4c82503d66..8df8272ffb 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 e313659104..0f59eba39c 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 2918739e12..d2c5f511f6 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 128ef39866..ad46e5b59a 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 f6a549b092..fd82edc297 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 d81296dc2d..9331ea1875 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 aa273cbd22..1569cd388c 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 88175c55a0..77b350637e 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 fbf79a1cb7..45409b0112 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 575a188f2a..2aff249b5a 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 186be68d96..1189632dcb 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 121192f1db..fbc00c1d34 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 2c33efc818..b094dd818b 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 16b2d9f117..c3a7355a3c 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 79e85ae123..0d6451fcb3 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 7d4ea849fe..091cae41da 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 06d9ccb699..37dca8f2db 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 8bda552a38..8542e42003 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 1774737ca2..3ce49bcde4 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 aa0ee08f3b..35382b3f97 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 09147b2a67..1cb1f7c8fe 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 afff3d8817..f5d3af0ba4 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 85cbf0de96..66af35115f 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 f475ec66c7..34803b6939 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 74817da0b9..f44f9d83e1 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 0c2b18b321..a4402cc486 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 8bd0d423f2..571bae8a77 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 487c7be4ed..0a9ee54ef1 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 b7ca595297..6277079c13 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 1bf0ffc498..7bc38d3448 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 b2d2ca8a7c..a2ff09fdc9 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 ac143ca11f..09e476d709 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 0e7fa8a033..0441380c65 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 cd9d595361..44ce723448 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 cb37ddd216..e2107799a6 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 44649eb1c5..8ae57d5b18 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 d2b89cf621..9187cafae8 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 dfaa9a7433..5b390942f5 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 2adce9ce78..8bcff2a70f 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 eed4c9dd27..3397ce6c49 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 b7718c3bf0..bbf00122b2 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 f7195ef02d..c01f622ff2 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 073bb80ebb..02b42a83f8 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 41c0a8993c..e9d193e677 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 7c5050b5b6..d3e7ab42b9 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 ed2f64cb1e..b226ab3517 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 348e8c87ce..4a36eb335c 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 aabded9d78..38e2172655 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 d95a9ced7c..cfa257c4a4 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 aac00b0bef..e715ab983a 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 391615c4de..89d7d5572b 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 9666b4dd3c..9cf059449c 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 617fdb9380..6e43abc811 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 540551f013..55362e6f91 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 26da311a77..1e1a51798d 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 52633aacad..244b132127 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 ca66eb17d0..cd1a1659a1 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 6674168f69..9bc67edcad 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 6650cec55f..c41801ac79 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 e8dcfa070c..56b33c8259 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 fe24098b53..18129b71b8 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 52155fbcd0..f2d16d8a1e 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 7c3bb97a55..4e08d2c860 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 e2c47aa6d1..795024af51 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 ba094d325c..ad4c881e39 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 2349199523..0d4e8746bb 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 7c5ff806a7..320d1c7f8a 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 e0a74a5b84..ccd553fd15 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 ebadbcb251..7eaa8787d1 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 46975425f2..56b5b3c5af 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 0470194350..647cd9fe7b 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 cb3108f14f..9d66a6b00f 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 a747afe215..048efcbd7b 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 4a89c5e360..1be32f790c 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 55015f60e2..538ab0b40f 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 c6a519258b..7f1a07d500 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 9e104005e9..902369c18d 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 cdc936e53e..7a1be463e8 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 cf32bd5e13..d849bb8d10 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 b7db1be95e..d515ed3e7f 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 84c336712b..930efa31b8 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 a39ed25045..91fb7bd211 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 536493cb5d..b8fd33ecbd 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 f4ce11b013..311b45fdbc 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 01d7fb2477..ddf665ffab 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 19e087d78b..80ccc84fe1 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 9970b164e3..031d4d0077 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 7b6219eac6..3df44dfe04 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 d880407494..27a7e5b741 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 699c9e5bdd..8daaa48bad 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 10654bda4e..5ed1afc07c 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 df977690d0..92368ca698 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 d919696982..0b5adff9a7 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 024e557a99..b63005d752 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 efa0e02d8e..26ec8bfbe4 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 5aa766e158..0f6a86011e 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 a6c95716ba..95000634c1 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 3876b15c6f..2e395fd66e 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 86d06b2492..62b7091512 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 e074b603f1..fac262f86f 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 a7ba9c66fb..2dbae5d21e 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 3325a865e2..8694ec19af 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 bb6ef5d79c..ae8fe64022 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 8de285a1be..6d0e2ff5a0 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 7b9b19bebf..38a1a09748 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 99ba364723..c041c953d5 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 5a86561a04..da9bcdbd53 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 1cdaff23ee..b224c415ab 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 c9113abcf0..5c878ad61b 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 e0b6192287..b62eec87d1 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 392f1d4bc7..503e18886c 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 ec9e715f78..74f238f5ca 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 11953d88fa..61cd7a9c3d 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 65c53e83ed..4f15af6467 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 b3f3f24af7..10ceb272f9 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 0385da5a1c..c8d820b70d 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 568ca113e0..e3d62484ef 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 fb781d1198..963c1418b7 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 0385da5a1c..c8d820b70d 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 292472d5c5..b4c94ecb90 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 f6258b4dfb..18f92b7231 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 46b0655e08..6887eb924c 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 45749af829..1ff6af28b3 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 39275dd7c0..3050cc0b0b 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 c456628a15..30c76f5cd8 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 45749af829..1ff6af28b3 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 1564ce7da4..18d7c3a92b 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 c456628a15..30c76f5cd8 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 dc82abb0e7..ef1513d700 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 4099963bfb..991df77a62 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 4ebb3c5e69..869ab96bdb 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 ee169a6bc9..c305440d12 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 3fa3cc89ec..6545f8eaee 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 39fe944104..338e11c635 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 ea4bc94384..9d80444bc7 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 4ce0e9cf6f..0cf36fb8ef 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 6d3a7ff1d6..cf08da91cf 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 8acad06bf0..d32b8cd648 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 772347a51f..e0604197d0 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 52f92e5f0e..da6a5b6b16 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 8a84f8095e..ed2474285b 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 6182502953..f861f21132 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 b38e65e42f..f835ead172 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 0adfeb0881..a4f90685e4 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 8a931e5242..c509ccf551 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 a82fccfa28..fb6a863790 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 f33101674f..4d6fac4819 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 0c1213690c..73657559d2 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 0340c05a86..97c2126662 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 a1d7658190..d23e0c30e2 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 eb74b1c063..39163f4b75 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 70d696c91b..697a7538e7 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 663b10d21f..02a01d4b48 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 17c1879ad2..ea0f7bd5fc 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 5458fbb96c..ed14e35b3d 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 cf8b4fcb0b..12af46a688 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 8c47091256..78d0b572ae 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 8090f8af5e..afbf661b8a 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 a9aa4f172d..8babcae52c 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 0444921146..9480fd3458 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 67cd575147..91225970d9 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 303e28060b..dd6e914a08 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 caea80f524..8121f1de46 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 8424002ee2..90222cb269 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 690e85b6b1..c4b65aad1b 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 c6efc83c9c..d42087af7d 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 cd4a9bb0e2..72a091d1c6 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 9fedc34125..d8a17a3683 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 2c8c743fff..44a99eba56 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 a2390e08df..fb633c8add 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 a067775cf4..e98c03865b 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 2e21e8b058..d73265fc0d 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 5f4ef2dd97..0aef088f25 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 6cb5e67345..fa85a5ddaa 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 a7c68156f2..4dc115f33a 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 99ea8cf29b..3ef473fe6d 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 9898f62a89..f34cea20b5 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 cca472b358..55329bc2b8 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 97bc32004d..c0dcbef2a7 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 c631f1167a..8222d2838e 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 17ba496c87..c6c37f37ff 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 6d29590254..91916c2abd 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 e9d8b5fc45..ff02aaf4c5 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 b0624bbf0b..1097766c0f 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 01714c386a..c6de8582a9 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 5b851a1c22..1abddeccb3 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 d7072c8d8b..4f25141539 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 d4e3fd3a77..5ac9a44ca6 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 9cd8bf8e5c..2c7aac72ba 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 e8eee3056d..07c569b7cb 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 6c43f75955..ea67e61f52 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 e558f647d9..d4ecc30b0c 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 6a11a6d3dc..eed92a1e71 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 5c5f123d52..9b50d8b831 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 d2341c9050..29282d16ad 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 619a4e58eb..6ee9044166 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 6749d8e444..9158e32c32 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 262422e91a..2a53e8aeef 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 d56466a469..3a9d7faf4f 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 a7f4c9c666..2b40d61ab0 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 93049719de..e411129416 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 1d30b97bac..dc5672cf26 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 b3794039a4..04c2156fe5 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 df6330a119..825b5fcc7f 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 fd5dcbb7f3..52f9064607 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 ff4d153566..d4cc9719d4 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 3b85426c84..0c607a6184 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 ad663e2cf0..6a115dddff 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 4344c740c3..0860f93ac0 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 d0f49b1f14..9dad49f9e8 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 9502deb17d..ff57203cfa 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 a67e8d7a3a..f99a0b955e 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 630ea19991..e8b475b2f4 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 04a5163722..ac80a14270 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 3d2746184b..fbe48eee7a 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 5de2f20f87..a18c8c3178 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 7498c57b13..cae9374dde 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 e545c2d4cf..a1049c7a5f 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 cf5f281c49..d65f4f9f52 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 5ca4d42fa7..d135668736 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 00ae770ba0..ff88556343 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 012d697ef2..0e970c50b1 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 f78b3dcb0e..23350b818b 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 d2396e06d7..3155333dfe 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 6319060367..0d77a1e610 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 ae806159e0..f44fa6b00d 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 5474a5733a..acfe0c0172 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 b0c1ffc4f5..9adb597757 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 64701a4b17..a6ff7c570c 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 08e0c586da..06f39cf580 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 1a92947f9f..eeab8c27ad 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 12f483d969..2766a6f465 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 dfd279940a..d3f0820653 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 bbec7b4db8..b78612a43a 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 17b6268fc2..d3e5741be9 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 f873fa9b62..7baf47364d 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 2922304d9c..870fcbcab1 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 8c4abb26ab..8ced194937 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 3f8f7e3c8d..1f51d4e3af 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 6ddf06a8ec..847d7bd177 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 a3b45f234c..9d5751d192 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 9d4cbdaea3..f5d9ac276b 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 e2b7b3beb9..69526ced27 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 382dad0840..79173f0dc0 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 aa33b925aa..676286a478 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 684aa45103..a40a0591fb 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 1123651c15..587ff091ac 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 7d9847a56e..107d61483c 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 3185d28892..024395540a 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 682bbc990e..b7122bccd0 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 59a6aa66ef..6a65452e20 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 fb6a3e4d08..336801bae8 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 c7029bcbc0..794eab0c49 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 13993db580..ffc40d3fa0 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 132abb3c5c..ca53b50a65 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 6c40fa40f8..d3dc8db768 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 1dbb45fa2e..2595c3d73e 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 19e0cb3bc3..076839027c 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 3401515663..a3ce0cff02 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 f239a4139a..2286c43d50 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 acf65022e6..52fe0d4a8c 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 1094984800..df4f601a9a 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 182d25f84a..987539f19d 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 81a8433038..27aa0dd4e5 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 a45d242625..55eba391ff 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 5880eccea6..8f8e1d7621 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 398d7fb0a0..74c13e6b1d 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 c817356314..1f1321e6f9 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 868124bf76..0b208b812e 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 878759b61d..4c6f506803 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 aba8f65b1b..0b3fc16c27 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 307476d0d9..4d91db02fb 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 0dfb363fd0..a71a830108 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 d009a67ad7..547d59cb90 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 34456223b4..e844ea1d66 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 17075ce3eb..e5ea5576aa 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 86762da70f..2acf36e035 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 b7ab69ac22..94f69a4cd0 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 a559c4d5fa..cbc65d31d5 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 ffff6d8db9..70a0c332e0 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 0851e7d6b5..4242e565ac 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 741a9def50..95be55c3ff 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 ac3db1ea80..4537344137 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 cd98cae8e1..ab8e72c1c4 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 ef65e746bd..7d2956dc20 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 0384b0d2d7..08e60a7663 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 4ce589f1e6..6985e90078 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 10d5bf0a8b..5551bb35bf 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 c2e9668c68..8bcb99af8e 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 218dbd1b3b..4433fb9233 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 1ea9777e08..05816d60fb 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 eadbaeaad7..96075842ad 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 1eea3ea6e4..78eadc12b0 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 afd9bf3617..d795017088 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 703553a4ac..045f6d00c0 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 3f6885aad0..1abfd373c9 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 539bfe4284..2d0f3cde74 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 9f887cff40..cce144ebaa 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 0f472abf8f..93ffcd688e 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 53ffbb4d75..6313259df8 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 51d1698e32..c1111f5cfc 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 27a7f29dc4..dce97d04b1 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 a1b39e4471..f590626255 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 f4353cf772..a770a696c3 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 98464f291b..0a99a98a6e 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 f1caf4b983..bedce6687a 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 4dc45aee49..4f49b14874 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 e13ed1c74b..8c725f3216 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 6a5287e986..3939bf2380 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 39308e9806..9063cb2c88 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 852b7f6a85..d877604ca5 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 a541b88fd5..979154e2c5 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 1bc356bea0..5f913aba25 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 d846e63bba..18cdca23d3 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 b0242e3d44..a82eab4d96 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 057676a951..99ad16981e 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 b2b2f90eef..691cfa0aa9 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 4d72a109e9..c466034f59 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 4f03dec774..0172758603 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 dd5abaf5b3..1b30971c06 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 38b34ae886..17806e4c97 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 98bc170235..4d12f1bdc6 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 154c67dc3b..8054eb66a8 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 a1a964fc7d..c95dd9bef0 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 a327a66c49..0210699f53 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 7a9ac9f801..c8584b0f7c 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 27d02ea78c..4d10794228 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 6e6ef0d25a..f4aa76e0e3 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 1498413113..6882f9ff02 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 0404d02bce..ec3bdc6cce 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 fea0aaedc4..7995e464e0 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 aca8152f77..1b9bc4b8cb 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 d33c2710f6..72861a0739 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 0404d02bce..ec3bdc6cce 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 77417890bd..ce920262bc 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 30a9069890..f781a91284 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 a7b4c8bb22..12caf31e52 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 1cf89cf570..8ddda904c1 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 abd8a9e191..6718bb7915 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 0cd678ee64..cebc0e3c13 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 b3d0b144d5..a3908a0432 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 6175ce3332..39d26e58a4 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 40c754134e..994a1a8781 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 c10a770941..e21447e032 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 d2648d75c7..1554fde3e8 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 aab70a9a82..788096196c 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 e0f1dc9635..ba190c656e 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 6b5939cb1e..5d40280359 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 029088a601..3f3012dc9d 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 b74879c500..25fb1c529e 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 fe04b11b2d..ec50107c10 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 96d0fd49d8..70ff9a5c99 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 6a5287e986..3939bf2380 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 f1ba2170ce..7c541f58ae 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 3a80b84e27..d35ddfbd04 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 fcaae10538..5d139e0ad5 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 46f078ffe1..352b464e3a 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 98ba47763b..db8160e002 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 b41a82c041..9c830de83f 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 c5ea1a0b6f..c0856c709d 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 b431fa88aa..86392c6985 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 b6da84cc16..2dd5327452 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 23615f0bf6..eb4bd65a8c 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 9a1351878d..27876b80e3 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 5bcea57845..a59e600c5e 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 4252601d2f..4cde67e627 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 02dce193cf..3ca6852f08 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 1ba2ac2ce8..6d1127a1b6 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 b81323f63f..8498a48843 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 0cb9d70798..edc21dcfa2 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 dca9c0dba2..763f418e2f 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 cfc39d50be..1c0981c064 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 5c569e6bb1..d5f89b70d1 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 844bb5cc0f..5eb6425be2 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 d2b2e970f0..60ad5bab26 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 598c691a65..c202808275 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 7296925d90..eed257a4af 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 e23b791b05..8c19c8b4c6 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 1ac4bea0c9..ac2413f5c3 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 d0b4bf1771..558a27fd1c 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 150e631192..ac02f3ebb5 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 4827db12bb..29baed9731 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 73180ac593..0dbb678432 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 b01f97f813..12fe045062 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 95ca079215..04c786f808 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 d495bdd3bd..81846ae5fd 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 7fa347eafe..0338a2a1e4 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 eab4d72472..52d12ecda8 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 1ca3577880..0a696d94c7 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 16bb87d985..f7b54ab067 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 6e7677a4f6..14c56199de 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 c76e04f728..dfbe0e11db 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 bc5b0df9f6..370c7dd307 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 020828cf77..0ccd82c049 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 1b0d75a196..b0dc5cd4fb 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 7fcbb0959b..00b6d725dd 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 1a62ef4e7c..1e1a6597af 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 42d6bd63ae..b36b4b10e5 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 ae6b9190df..5294726d50 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 3d91c14d84..842ea52fad 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 63a5095072..2de4d82bc6 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 1c2446595d..a980f13477 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 27129520fa..d6b774dcc5 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 4283693941..ef61ae6ee6 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 e26bf5b1e3..bd5529213a 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 bb16972b48..b7a3d490a3 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 06c726fd81..0c18b5e6c1 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 5306f2ff2d..ac283540de 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 0505516015..c7f9fe6163 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 06714dcb4c..951eddcf0d 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 00634be8fb..3bba7fb126 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 cb6ffdb2e4..f7404e3b60 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 e283278236..2e2a3cd960 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 087782a7a3..1d53b21789 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 a4d5b5439e..d58543c479 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 1732ae58e8..e700b83c97 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 6401c0cfec..bcf1baf3b8 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 6c5592bd48..7b082431d1 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 50aa176a52..9f4bf6c3ce 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 b080c2919b..5110637250 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 3044ebf452..2770ca95ad 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 79062d249e..9a5bdabc68 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 68a1495577..d1af30ac08 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 f1b375520c..f9eec77190 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 16aa92307d..865efb2e05 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 92078afc95..b4f71d7610 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 90c9d6187c..8eb4f5d20f 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 0875111d2f..d78b3a3911 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 669846981b..c65df8a244 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 c7315385fc..458086ca58 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 bb8b35b7bd..ba6da40d57 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 e9243cd78d..14601a65d4 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 76acba3c0a..af8b6d1835 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 8fcc439ef7..a1ababf167 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 a19ce0c7ab..221244cb18 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 0dd1d1ba29..d1f0b99579 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 e73bcfe6c8..56fff72f59 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 39eb0714de..bf643a8700 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 ba2b5f9fd3..1da67f29a6 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 524dbc0fb5..d999c03c35 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 613528f793..a4c665169a 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 5ac46f4516..d79b420fc0 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 d24458869a..a723fbc1fb 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 4fff97739d..145b44be43 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 4fff97739d..145b44be43 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 10aa6714e3..de0207b8ec 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 872113aac2..9e23d50b47 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 49025e4cd6..c29b37c5b8 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 88cb696639..8e19664f21 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 b9d4dd79b0..e506aa4ef8 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 b4a19961a2..b97e075a07 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 f466079ec0..23962f01d0 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 1c71738400..76a66f9f8a 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 3a1c0fea2f..b5b360d9e5 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 5b959b2fbb..33231a97c2 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 e134d4f8f2..8b4c8016b9 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 59cc37f39c..3e85fce662 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 3e4d58a386..6f942d153a 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 bc09e4cc2f..8ce6a8ea92 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 ca7fae4133..879e859bdb 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 645410db17..c36b03f8de 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 0de8a25b74..3dd4a8a8e1 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 2723279843..b63bfd83e1 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 c643c7bff9..0aa25e96dc 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 dbcb6f849a..263860e0ab 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 847741752f..083f64bd58 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 e33af346c3..d38f971bad 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 e198b3ca53..eab9721852 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 5808fb0885..31d5d4137d 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 9c70c0e88f..789cdd2309 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 f2db70d365..d4d482a633 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 3012cf86b2..66130faaba 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 3a6759ec23..20497f6f98 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 4dc287cba5..3407809594 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 e6f3d1a621..7d6c5515eb 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 bd473c0ef6..63a893f6c4 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 008ea1efa6..fc14502408 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 909f9a8459..47e4da6b7a 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 05afd64c73..bc87d94f94 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 10775349f4..eebb18a5fb 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 c59cd817b7..c4904667b7 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 253d2154bb..e029b60b67 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 7eabee0ae8..7540367892 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 3068e5c743..079d39677e 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 9cfc490436..b6bca24b8b 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 5e5cb0560c..3fffe00c0c 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 e43d165ab6..40663326f6 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 b9f8cf5a87..5b7d266655 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 1d9436d0e1..f51bbd7356 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 58a097f3a9..48a72b711f 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 069412293a..cd9ee5e575 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 ae9b6e1330..6ae1d9d5b7 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 73c343dbf0..227c6bde89 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 574d074691..1f36cc53d4 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 3904d446a9..f677c308cd 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 87dedbc2c4..ee557fe928 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 01db548f2a..11a73d0c9f 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 092c96dde8..40ea741fcf 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 092c96dde8..40ea741fcf 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 bf44e0e586..c22ff2be05 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 4cbd0ed012..fe57883496 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 a5c6b1c42e..c751046a6f 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 996cba05d7..fdc93c86fa 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 05cc93ce00..4cdc05670d 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 d37c97c8d6..26c761165f 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 67906f90ea..d982dcdd7b 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 46f5f7e9d0..3bbd7f3419 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 9c0e4b4714..4c1b2e55f4 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 00540ae80b..7d99889c0e 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 8198af8529..fbd5576126 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 c101ddb004..602346a919 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 b09a80f9cc..c63e5b852a 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 db23c4bbbf..be184831cb 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 6a234ce4d6..77d85cc0f6 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 5fbe4c9b6f..43137e94f1 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 8d90f66e44..0c9ea1242d 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 eb9482cd86..7ed8501d3f 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 4ce003bf45..ca3c771a41 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 478a4b2758..47b9def7ab 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 c17bd63ad3..1920eefef1 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 c0b03a36b9..c65ec7342b 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 850e30d434..c92b4f2762 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 7ec0566b8c..f99993fae8 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 119a6f2763..7d4cb81e07 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 9cc9845644..c08df9397b 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 3a5f720fce..9d67298fc9 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 1d691a0df0..b2d110a1a6 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 223e944fa4..daa2284d21 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 174646994a..9a33fce1a7 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 2b6686884f..eb367fd3a3 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 f47ed6f68a..9a946aed81 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 305cdf4132..208fecf663 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 60d21ceeb5..82fcc60c9e 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 658a30b929..0888401cd7 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 ca090efb58..978f797d1d 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 143a1ece57..699f6670fe 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 d8b5f883fc..c793365600 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 b34152f090..63778de5a0 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 a99dcce3ea..4af49916b2 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 19c160ef6c..3fed848e21 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 1623807514..380245e2ed 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 839fe65c1b..815fb029a9 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 57bed07018..f24632e9a6 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 dcbae234d0..691386a334 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 a25bc30b53..c8b9cb596f 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 1e4ef1d35f..348cf335aa 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 bc9a8d5255..1f649021dd 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 fd70244356..f6e51ff0fd 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 5ae127d83d..bd17c803fd 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 b521c2d22b..8523de0f76 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 7f0942c349..f378435df7 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 d10e460688..81a8a45833 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 d10e460688..81a8a45833 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 f215f9172a..8f882bdbee 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 f9ca75790e..f35c794fee 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 ec4d243b9f..125bb01955 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 8150eed905..0e181509d7 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 3169f16509..ba54d1f3a9 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 6d7f4ef38f..184f2d8ccc 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 70434005f7..6ab5739fb1 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 e00249d624..044856c824 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 95a0495a9a..eb0342e45f 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 e7e78cce89..ad54e16231 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 b67025ac82..9f35ed9aca 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 1c6d725376..6bafbd2fa0 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 d6b13983e1..4b97359b43 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 6becc38817..43b8563d18 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 c1de83dff0..cd0f3e6eb4 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 c1de83dff0..cd0f3e6eb4 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 d03ab14a18..26fc5cd7d0 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 8d4deac77e..b21516447a 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 b5a9eb03e0..70d3dac7a0 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 ef855b950c..45a5cd9bb0 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 1c19b4677d..c91b70138a 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 5946d80c9d..f8f8af0732 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 0892fb0e1b..14a66e16b1 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 5cbd5b323f..97f8d198f7 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 0ed26ac274..c4f66b7487 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 51757829ed..794babbdc2 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 2702ad2710..ad4f448133 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 bf90f48fa7..f86b19ea65 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 8a4902f8b8..d2a19041ef 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 70838b4e4b..257d6a3522 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 2261bf5cef..2a7669ea95 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 d9bbc05eb8..df44521c29 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 7fac68acca..6d70be4101 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 f0580d9171..355070d646 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 8f1b751fd6..d59d525183 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 22a19ceab5..2c80effe31 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 2ab715103f..757b0cfc7c 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 b8d866d607..c0e73b2288 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 286a00647f..6695ca7774 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 4105992e10..851f00db37 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 068b1e22a8..b7354a3ef0 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 c0f2133f35..3937220421 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 c680941527..ce7ad4de9b 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 54a6caa18b..9f10034490 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 3dfe66d106..4f2f58a8a5 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 ef42fd6718..ceb943c049 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 84aeb65de1..2e86704030 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 a9045f4a83..e859c7f071 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 632fa34506..fbb3b59dfc 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 dd70149cc7..45de6616d4 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 af015497f0..f32d9c253d 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 e561dfd916..35ef7abf4c 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 e4d3f36871..b59d93903e 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 ee1ad0847a..6f4ea050a4 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 b084eedd58..4bc2993940 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 ddef7164e9..07a710eabb 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 f181a1f07b..54ccfacf8b 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 913c22ba60..517e4fa494 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 b5380f2bc8..e3beb188df 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 d5f086b68f..07345560b7 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 322ae7535f..43394e2d32 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 b2400d3d11..a7aedded42 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 23b0e7f2a1..286b680ee7 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 4ef84cbe8f..372b6e9a40 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 22d0407e3c..1ac50fdd49 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 6a63792286..9194663f6c 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 70d0d1bfb7..aaae64b983 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 ce71f751f2..7f8d276fc9 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 8d0d1c486b..73ad483c42 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 ce71f751f2..7f8d276fc9 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 01c3275d9b..1f55fd9ccf 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 2fc6598d5a..640f559124 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 cd5b71bb71..f898548cf7 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 47d9afeaba..a47a699ea6 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 581a8edff6..c54a5c2948 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 7b67d36f4e..0f5623398a 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 40bcbf8e99..9c1349aba2 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 21e7211e11..8b8ae4cf14 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 2561e3db08..11c3f79d77 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 e95084fe18..036ca9e2f3 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 5c3725765a..c1bdd8baa1 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 37b29557b8..014a694572 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 403cd755a1..52e6f0a22a 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 aabf525484..1f61aac388 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 5861ab0c68..103c902836 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 a670693bf4..7ff3ae6334 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 67f07d5303..990ddd90ff 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/rules/replace_stdout_stderr.rs b/crates/ruff/src/rules/pyupgrade/rules/replace_stdout_stderr.rs index 6cb31281ee..cc7dbec4a3 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 +) -> Result { + let (first, second) = if stdout.location < stderr.location { + (stdout, stderr) } else { - stderr + (stderr, stdout) }; - let last = if stdout.location > stderr.location { - stdout - } else { - stderr - }; - 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/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 0916a7073a..9fd965be8b 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 1957ca50ad..3d1df34baa 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 451a6e89fc..432c089001 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 5e84443a94..025aa8b5a8 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 9c24e1b513..76939d840f 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 bfb0d275b5..4686e4a01f 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 064e73350d..47599556aa 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 c3a460d22b..a5c0f4a26e 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 42f86ee89c..2c8d4acdd6 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 6bdcd5bbf1..55bad0f037 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 922e3e4f4e..98469008a2 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 751fb400c8..442fe28d0a 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 c667eb40b7..bac5ea28c4 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 10161c5a5d..bec9c53494 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 c10dfd9933..5522b543ed 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 d86ed2e71f..9ced091674 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 8277f1f3fd..05b74633fc 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 18f24d85df..e0069c5ef5 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 ebfcaecd3f..c4dcd7d94b 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 2d82b2b78f..0aecf7a808 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 d757231a5a..e074ba9711 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 96484c4ea2..d21f2bb10f 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 4175489659..cd874d758a 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 a2b5213990..b023303be8 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 8783b93e1e..328a0103cb 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 6cdba34315..24d3109660 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 35b374b6ae..de25f71ef3 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 416c921040..50656935c7 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 4799cb213a..d86be22bfc 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 3f58b4df1d..4ceb60d546 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 62691d7759..8e152b5c72 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 e44af6bb77..e6014f5d43 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 acb8c53121..c5a2acee6d 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 9be0af3e0c..4aba54b1ae 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 28a1e8a243..d587e228b2 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 11131316f6..5043eb538a 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 441079428f..5b72677418 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 b26912ed3d..bc76cc8371 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 3c500d5627..2a120ca195 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 11b9ff3e56..eca7cc8bdf 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 1d85c25a40..94dd3a2814 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 0a3d025035..1f83f78278 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 3f2affaa3a..acc52d768c 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 01e40e2f6a..f4b2f1dc36 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 823a873b0d..bfcd3208ea 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 20d592af03..08dc1b11f1 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 cdcf9e9121..9de58b84f4 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 fe642359e7..815b5df80d 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 a5b65af768..f4f481f309 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 d8f5d9a72e..51bcb2c206 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 c9fcfada6b..68817bb918 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 afe5d78ee5..b75e1d4462 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 cd7486d195..b866b1f342 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 dbc4bc5de4..03b44f1e2d 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 04ceb69caa..48b87e73b9 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 5b9cf64b25..2867db9242 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 bdbda3c214..34d0fa29a1 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 785e17d410..7ab5096129 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 0bba9d5134..b63b2c3353 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 4a0e766112..de22181102 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 db68e5dc92..8c972f967d 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 34790bde96..fb2f3b5fcc 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 7c2e4a7b85..2f14655a3a 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 5a9ace3f22..4bc4629590 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 6d0dea1ef0..20fe7c2571 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 40d54e98b3..2d73ad7129 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 4bb80043d1..66e5c3b407 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/src/test.rs b/crates/ruff/src/test.rs index b6758e9d5c..43d7519df9 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_cli/tests/integration_test.rs b/crates/ruff_cli/tests/integration_test.rs index 132a6acb9c..0b9c172a53 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/diagnostic.rs b/crates/ruff_diagnostics/src/diagnostic.rs index 3344b24662..61856cdb8e 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 e2f4d30b8f..8c0ae0e0bb 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 0000000000..71e07c9c3a --- /dev/null +++ b/crates/ruff_diagnostics/src/fix.rs @@ -0,0 +1,58 @@ +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 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 + } +} + +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_diagnostics/src/lib.rs b/crates/ruff_diagnostics/src/lib.rs index 4c5f32bd14..b3b1ee2567 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 a6fcd0b916..dcb3b7bc6e 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 77eaec6e41..57b3fd96d4 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"); @@ -35,20 +36,28 @@ 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; }; "#; +#[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 +67,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 +205,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/playground/src/Editor/SourceEditor.tsx b/playground/src/Editor/SourceEditor.tsx index f33533d77f..da7677d1ad 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, }));