diff --git a/crates/ruff/src/lib_wasm.rs b/crates/ruff/src/lib_wasm.rs index c9f9473847..ae37654563 100644 --- a/crates/ruff/src/lib_wasm.rs +++ b/crates/ruff/src/lib_wasm.rs @@ -214,7 +214,7 @@ pub fn check(contents: &str, options: JsValue) -> Result { end_location: message.end_location, fix: message.fix.map(|fix| ExpandedFix { content: fix.content, - message: message.kind.commit, + message: message.kind.suggestion, location: fix.location, end_location: fix.end_location, }), diff --git a/crates/ruff/src/registry.rs b/crates/ruff/src/registry.rs index 174b532225..7a327eba35 100644 --- a/crates/ruff/src/registry.rs +++ b/crates/ruff/src/registry.rs @@ -891,7 +891,7 @@ pub struct DiagnosticKind { /// The message body to display to the user, to explain the diagnostic. pub body: String, /// The message to display to the user, to explain the suggested fix. - pub commit: Option, + pub suggestion: Option, /// Whether the diagnostic is automatically fixable. pub fixable: bool, } 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 70bc98effa..167d1197b8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CommentedOutCode body: Found commented-out code - commit: Remove commented-out code + suggestion: Remove commented-out code fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: CommentedOutCode body: Found commented-out code - commit: Remove commented-out code + suggestion: Remove commented-out code fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: CommentedOutCode body: Found commented-out code - commit: Remove commented-out code + suggestion: Remove commented-out code fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: CommentedOutCode body: Found commented-out code - commit: Remove commented-out code + suggestion: Remove commented-out code fixable: true location: row: 5 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: CommentedOutCode body: Found commented-out code - commit: Remove commented-out code + suggestion: Remove commented-out code fixable: true location: row: 12 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 8fcf8ab040..a36bfc1243 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionSlice3Referenced body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionSlice3Referenced body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SysVersionSlice3Referenced body: "`sys.version[:3]` referenced (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 e17cfc3d3d..11c4039b42 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersion2Referenced body: "`sys.version[2]` referenced (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersion2Referenced body: "`sys.version[2]` referenced (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 fdee5225eb..7bf2c1aca3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr3 body: "`sys.version` compared to string (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr3 body: "`sys.version` compared to string (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr3 body: "`sys.version` compared to string (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr3 body: "`sys.version` compared to string (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr3 body: "`sys.version` compared to string (python3.10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 692a432d29..ee9961efc1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionInfo0Eq3Referenced body: "`sys.version_info[0] == 3` referenced (python4), use `>=`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionInfo0Eq3Referenced body: "`sys.version_info[0] == 3` referenced (python4), use `>=`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SysVersionInfo0Eq3Referenced body: "`sys.version_info[0] == 3` referenced (python4), use `>=`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SysVersionInfo0Eq3Referenced body: "`sys.version_info[0] == 3` referenced (python4), use `>=`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 54fec5bace..e86c12a99c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SixPY3Referenced body: "`six.PY3` referenced (python4), use `not six.PY2`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SixPY3Referenced body: "`six.PY3` referenced (python4), use `not six.PY2`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 ef65a122e1..a4e1fc2d36 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionInfo1CmpInt body: "`sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionInfo1CmpInt body: "`sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 e695bfd9f2..9ff038fb68 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionInfoMinorCmpInt body: "`sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionInfoMinorCmpInt body: "`sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 b9352f3537..2e154875fa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersion0Referenced body: "`sys.version[0]` referenced (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersion0Referenced body: "`sys.version[0]` referenced (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 5344b14f41..e313659104 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr10 body: "`sys.version` compared to string (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr10 body: "`sys.version` compared to string (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr10 body: "`sys.version` compared to string (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr10 body: "`sys.version` compared to string (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SysVersionCmpStr10 body: "`sys.version` compared to string (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 06c49a08c2..7ea49bfead 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SysVersionSlice1Referenced body: "`sys.version[:1]` referenced (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SysVersionSlice1Referenced body: "`sys.version[:1]` referenced (python10), use `sys.version_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 9a4ccfdcf8..f353af891e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `bar`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 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 1fb8f963fb..f6a549b092 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `foo_method`" - commit: ~ + suggestion: ~ fixable: false location: row: 44 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 25f5e20e1f..fdfde38878 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `*args`" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `*args`" - commit: ~ + suggestion: ~ fixable: false location: row: 59 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: MissingTypeSelf body: "Missing type annotation for `self` in method" - commit: ~ + suggestion: ~ fixable: false location: row: 74 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 82 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `*params`" - commit: ~ + suggestion: ~ fixable: false location: row: 86 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `**options`" - commit: ~ + suggestion: ~ fixable: false location: row: 86 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `*params`" - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: AnyType body: "Dynamically typed expressions (typing.Any) are disallowed in `**options`" - commit: ~ + suggestion: ~ fixable: false location: row: 94 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: MissingTypeCls body: "Missing type annotation for `cls` in classmethod" - commit: ~ + suggestion: ~ fixable: false location: row: 104 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: MissingTypeSelf body: "Missing type annotation for `self` in method" - commit: ~ + suggestion: ~ fixable: false location: row: 108 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 89a39cc890..e6d963bfb1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `error_partially_typed_1`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `error_partially_typed_3`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `error_typed_self`" - commit: ~ + suggestion: ~ fixable: false location: row: 43 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 de6652fc6e..88175c55a0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingReturnTypeSpecialMethod body: "Missing return type annotation for special method `__init__`" - commit: "Add `None` return type" + suggestion: "Add `None` return type" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MissingReturnTypeSpecialMethod body: "Missing return type annotation for special method `__init__`" - commit: "Add `None` return type" + suggestion: "Add `None` return type" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: MissingReturnTypePrivateFunction body: "Missing return type annotation for private function `__init__`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: MissingReturnTypeSpecialMethod body: "Missing return type annotation for special method `__init__`" - commit: "Add `None` return type" + suggestion: "Add `None` return type" fixable: true location: row: 47 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 053b107ea5..1298897256 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingReturnTypePublicFunction body: "Missing return type annotation for public function `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingTypeFunctionArgument body: "Missing type annotation for function argument `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 59 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 6eb98a4961..186be68d96 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: Assert body: "Use of `assert` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: Assert body: "Use of `assert` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: Assert body: "Use of `assert` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 db890e15e5..121192f1db 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExecBuiltin body: "Use of `exec` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ExecBuiltin body: "Use of `exec` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 2140d41bd4..2c33efc818 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o227` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o7` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o770` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o776` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o777` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o10` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: BadFilePermissions body: "`os.chmod` setting a permissive mask `0o2` on file or directory" - commit: ~ + suggestion: ~ fixable: false location: row: 22 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 a0752c60e5..16b2d9f117 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedBindAllInterfaces body: Possible binding to all interfaces - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedBindAllInterfaces body: Possible binding to all interfaces - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedBindAllInterfaces body: Possible binding to all interfaces - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HardcodedBindAllInterfaces body: Possible binding to all interfaces - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 5b9483a3b9..79e85ae123 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 47 @@ -369,7 +369,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -382,7 +382,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -395,7 +395,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -408,7 +408,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -421,7 +421,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 53 @@ -434,7 +434,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -447,7 +447,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 55 @@ -460,7 +460,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 56 @@ -473,7 +473,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"1\\n2\"" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -486,7 +486,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"3\\t4\"" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -499,7 +499,7 @@ expression: diagnostics - kind: name: HardcodedPasswordString body: "Possible hardcoded password: \"5\\r6\"" - commit: ~ + suggestion: ~ fixable: false location: row: 64 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 0109515f8c..7d4ea849fe 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedPasswordFuncArg body: "Possible hardcoded password: \"s3cr3t\"" - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 4f4dcca2d2..06d9ccb699 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedPasswordDefault body: "Possible hardcoded password: \"default\"" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedPasswordDefault body: "Possible hardcoded password: \"posonly\"" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedPasswordDefault body: "Possible hardcoded password: \"kwonly\"" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HardcodedPasswordDefault body: "Possible hardcoded password: \"posonly\"" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: HardcodedPasswordDefault body: "Possible hardcoded password: \"kwonly\"" - commit: ~ + suggestion: ~ fixable: false location: row: 29 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 5062bd5b3b..8bda552a38 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/tmp/abc\"" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/var/tmp/123\"" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/dev/shm/unit/test\"" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 c138b2e66e..1774737ca2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/tmp/abc\"" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/var/tmp/123\"" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/dev/shm/unit/test\"" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HardcodedTempFile body: "Probable insecure usage of temporary file or directory: \"/foo/bar\"" - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 a911507a3d..aa0ee08f3b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TryExceptPass body: "`try`-`except`-`pass` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TryExceptPass body: "`try`-`except`-`pass` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 56821e7459..09147b2a67 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TryExceptPass body: "`try`-`except`-`pass` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TryExceptPass body: "`try`-`except`-`pass` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TryExceptPass body: "`try`-`except`-`pass` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 6f326be3a4..afff3d8817 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TryExceptContinue body: "`try`-`except`-`continue` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TryExceptContinue body: "`try`-`except`-`continue` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TryExceptContinue body: "`try`-`except`-`continue` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TryExceptContinue body: "`try`-`except`-`continue` detected, consider logging the exception" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 040c00e48b..85cbf0de96 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: Probable use of requests call without timeout - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: RequestWithoutTimeout body: "Probable use of requests call with timeout set to `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 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 4cff81e670..0c2b18b321 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `md5`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `md4`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `md5`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `MD4`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha1`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha1`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `SHA`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `md5`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha1`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha1`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: HashlibInsecureHashFunction body: "Probable use of insecure hash functions in `hashlib`: `sha1`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 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 d8d3871916..8bd0d423f2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `requests` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: RequestWithNoCertValidation body: "Probable use of `httpx` call with `verify=False` disabling SSL certificate checks" - commit: ~ + suggestion: ~ fixable: false location: row: 40 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 d2e8f564df..487c7be4ed 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsafeYAMLLoad body: "Probable use of unsafe `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`." - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnsafeYAMLLoad body: "Probable use of unsafe loader `Loader` with `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`." - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 1070f4fcb0..b7ca595297 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SnmpInsecureVersion body: The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able. - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SnmpInsecureVersion body: The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able. - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 1e51f63e9c..1bf0ffc498 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SnmpWeakCryptography body: "You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure." - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SnmpWeakCryptography body: "You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure." - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 afa720f2d0..b2d2ca8a7c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -369,7 +369,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -382,7 +382,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -395,7 +395,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -408,7 +408,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -421,7 +421,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -434,7 +434,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -447,7 +447,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -460,7 +460,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -473,7 +473,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 48 @@ -486,7 +486,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 55 @@ -499,7 +499,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -512,7 +512,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 69 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 77 @@ -538,7 +538,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 83 @@ -551,7 +551,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 84 @@ -564,7 +564,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 85 @@ -577,7 +577,7 @@ expression: diagnostics - kind: name: HardcodedSQLExpression body: Possible SQL injection vector through string-based query construction - commit: ~ + suggestion: ~ fixable: false location: row: 86 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 3232c33e95..ac143ca11f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingConfigInsecureListen body: "Use of insecure `logging.config.listen` detected" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 dbeb509003..0e7fa8a033 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: Jinja2AutoescapeFalse body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function." - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: Jinja2AutoescapeFalse body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function." - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: Jinja2AutoescapeFalse body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function." - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: Jinja2AutoescapeFalse body: "By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True` or the `select_autoescape` function to mitigate XSS vulnerabilities." - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: Jinja2AutoescapeFalse body: "Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function." - commit: ~ + suggestion: ~ fixable: false location: row: 29 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 1860f2c1c2..cd9d595361 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `BaseException`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `BaseException`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `BaseException`" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 69 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 75 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BlindExcept body: "Do not catch blind exception: `Exception`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 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 ebde6c6290..cb37ddd216 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BooleanPositionalArgInFunctionDefinition body: Boolean positional arg in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 81 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 f0d59cf6ac..44649eb1c5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BooleanDefaultValueInFunctionDefinition body: Boolean default value in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BooleanDefaultValueInFunctionDefinition body: Boolean default value in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BooleanDefaultValueInFunctionDefinition body: Boolean default value in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BooleanDefaultValueInFunctionDefinition body: Boolean default value in function definition - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 610fc2e330..d2b89cf621 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BooleanPositionalValueInFunctionCall body: Boolean positional value in function call - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BooleanPositionalValueInFunctionCall body: Boolean positional value in function call - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BooleanPositionalValueInFunctionCall body: Boolean positional value in function call - commit: ~ + suggestion: ~ fixable: false location: row: 57 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 a03cf22e74..dfaa9a7433 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnaryPrefixIncrement body: Python does not support the unary prefix increment - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnaryPrefixIncrement body: Python does not support the unary prefix increment - commit: ~ + suggestion: ~ fixable: false location: row: 20 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 968f9dbaa8..2adce9ce78 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssignmentToOsEnviron body: "Assigning to `os.environ` doesn't clear the environment" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 f6d787ba1f..eed4c9dd27 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnreliableCallableCheck body: "Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use `callable(x)` for consistent results." - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnreliableCallableCheck body: "Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use `callable(x)` for consistent results." - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 d9006bb45e..b7718c3bf0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: StripWithMultiCharacters body: "Using `.strip()` with multi-character strings is misleading the reader" - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 f6273ada8d..f7195ef02d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 68 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 72 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 76 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 80 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 85 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 89 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 93 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 97 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 170 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 203 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 204 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: MutableArgumentDefault body: Do not use mutable data structures for argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 205 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 e732b941ea..073bb80ebb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `i` not used within loop body" - commit: "Rename unused `i` to `_i`" + suggestion: "Rename unused `i` to `_i`" fixable: true location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `k` not used within loop body" - commit: "Rename unused `k` to `_k`" + suggestion: "Rename unused `k` to `_k`" fixable: true location: row: 18 @@ -38,7 +38,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `i` not used within loop body" - commit: "Rename unused `i` to `_i`" + suggestion: "Rename unused `i` to `_i`" fixable: true location: row: 30 @@ -51,7 +51,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `k` not used within loop body" - commit: "Rename unused `k` to `_k`" + suggestion: "Rename unused `k` to `_k`" fixable: true location: row: 30 @@ -71,7 +71,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` may not be used within loop body" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -84,7 +84,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` may not be used within loop body" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -97,7 +97,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` may not be used within loop body" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -110,7 +110,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` may not be used within loop body" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -123,7 +123,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` not used within loop body" - commit: "Rename unused `bar` to `_bar`" + suggestion: "Rename unused `bar` to `_bar`" fixable: true location: row: 52 @@ -143,7 +143,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` not used within loop body" - commit: "Rename unused `bar` to `_bar`" + suggestion: "Rename unused `bar` to `_bar`" fixable: true location: row: 59 @@ -156,7 +156,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` not used within loop body" - commit: "Rename unused `bar` to `_bar`" + suggestion: "Rename unused `bar` to `_bar`" fixable: true location: row: 68 @@ -176,7 +176,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `bar` not used within loop body" - commit: "Rename unused `bar` to `_bar`" + suggestion: "Rename unused `bar` to `_bar`" fixable: true location: row: 77 @@ -196,7 +196,7 @@ expression: diagnostics - kind: name: UnusedLoopControlVariable body: "Loop control variable `line_` not used within loop body" - commit: ~ + suggestion: ~ fixable: false location: row: 87 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 01e362d40a..386b09cf51 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `range` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 85 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `range` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 89 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `range` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 93 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `time.time` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 109 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `dt.datetime.now` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 113 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `dt.timedelta` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 113 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: Do not perform function call in argument defaults - commit: ~ + suggestion: ~ fixable: false location: row: 117 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `float` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 155 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `float` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 160 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `float` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 164 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `float` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 170 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `dt.datetime.now` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 170 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `map` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 176 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `random.randint` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 181 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `dt.datetime.now` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 181 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 347881cb27..7c5050b5b6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 19 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 20 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 21 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 22 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 23 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 24 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: GetAttrWithConstant body: "Do not call `getattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `getattr` with attribute access" + suggestion: "Replace `getattr` with attribute access" fixable: true location: row: 25 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 2286381fb8..ed2f64cb1e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 40 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 41 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 42 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 43 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 44 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: SetAttrWithConstant body: "Do not call `setattr` with a constant attribute value. It is not any safer than normal property access." - commit: "Replace `setattr` with assignment" + suggestion: "Replace `setattr` with assignment" fixable: true location: row: 45 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 102f29f921..348e8c87ce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssertFalse body: "Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`" - commit: "Replace `assert False`" + suggestion: "Replace `assert False`" fixable: true location: row: 8 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: AssertFalse body: "Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`" - commit: "Replace `assert False`" + suggestion: "Replace `assert False`" fixable: true location: row: 10 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 11b1fc7dad..aabded9d78 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`break` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 66 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`continue` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`return` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 94 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`continue` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 101 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`break` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 107 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: JumpStatementInFinally body: "`break` inside `finally` blocks cause exceptions to be silenced" - commit: ~ + suggestion: ~ fixable: false location: row: 118 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 363633ad18..d95a9ced7c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedundantTupleInExceptionHandler body: "A length-one tuple literal is redundant. Write `except ValueError` instead of `except (ValueError,)`." - commit: "Replace with `except ValueError`" + suggestion: "Replace with `except ValueError`" fixable: true location: row: 3 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 dd10329965..aac00b0bef 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DuplicateHandlerException body: "Exception handler with duplicate exception: `OSError`" - commit: De-duplicate exceptions + suggestion: De-duplicate exceptions fixable: true location: row: 17 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DuplicateHandlerException body: "Exception handler with duplicate exception: `MyError`" - commit: De-duplicate exceptions + suggestion: De-duplicate exceptions fixable: true location: row: 28 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DuplicateHandlerException body: "Exception handler with duplicate exception: `re.error`" - commit: De-duplicate exceptions + suggestion: De-duplicate exceptions fixable: true location: row: 49 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 728eb5f660..391615c4de 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessComparison body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it." - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UselessComparison body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it." - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UselessComparison body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it." - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UselessComparison body: "Pointless comparison. This comparison does nothing but waste CPU instructions. Either prepend `assert` or remove it." - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 c863c69dce..9666b4dd3c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CannotRaiseLiteral body: Cannot raise a literal. Did you intend to return it or raise an Exception? - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CannotRaiseLiteral body: Cannot raise a literal. Did you intend to return it or raise an Exception? - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CannotRaiseLiteral body: Cannot raise a literal. Did you intend to return it or raise an Exception? - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 133f610db2..617fdb9380 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssertRaisesException body: "`assertRaises(Exception)` should be considered evil" - commit: ~ + suggestion: ~ fixable: false location: row: 22 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 aad477fe14..76681653cc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 47 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 48 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: UselessExpression body: Found useless expression. Either assign it to a variable or remove it. - commit: ~ + suggestion: ~ fixable: false location: row: 55 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 75d63e9bf2..26da311a77 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 82 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 86 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 94 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 102 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: CachedInstanceMethod body: "Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks" - commit: ~ + suggestion: ~ fixable: false location: row: 106 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 acbe3283ea..52633aacad 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoopVariableOverridesIterator body: "Loop control variable `items` overrides iterable it iterates" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LoopVariableOverridesIterator body: "Loop control variable `values` overrides iterable it iterates" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: LoopVariableOverridesIterator body: "Loop control variable `vars` overrides iterable it iterates" - commit: ~ + suggestion: ~ fixable: false location: row: 36 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 e15b86e0e5..ca66eb17d0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 70 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: FStringDocstring body: f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring. - commit: ~ + suggestion: ~ fixable: false location: row: 74 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 21e9d02695..6674168f69 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessContextlibSuppress body: "No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UselessContextlibSuppress body: "No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 ff6190e22c..6650cec55f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `a_`" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `c`" - commit: ~ + suggestion: ~ fixable: false location: row: 53 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `j`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `k`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 68 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `i`" - commit: ~ + suggestion: ~ fixable: false location: row: 82 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 117 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 118 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 119 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 120 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 121 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `name`" - commit: ~ + suggestion: ~ fixable: false location: row: 171 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: FunctionUsesLoopVariable body: "Function definition does not bind loop variable `i`" - commit: ~ + suggestion: ~ fixable: false location: row: 174 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 73bbc378e8..e8dcfa070c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`Base_1` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`MetaBase_1` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 71 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`abc_Base_1` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 82 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`abc_Base_2` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 87 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`notabc_Base_1` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 92 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: AbstractBaseClassWithoutAbstractMethod body: "`abc_set_class_variable_4` is an abstract base class, but it has no abstract methods" - commit: ~ + suggestion: ~ fixable: false location: row: 141 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 4bf9bf0a5b..fe24098b53 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DuplicateTryBlockException body: "try-except block with duplicate exception `ValueError`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DuplicateTryBlockException body: "try-except block with duplicate exception `pickle.PickleError`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DuplicateTryBlockException body: "try-except block with duplicate exception `ValueError`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: DuplicateTryBlockException body: "try-except block with duplicate exception `TypeError`" - commit: ~ + suggestion: ~ fixable: false location: row: 37 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 e82967f7bc..52155fbcd0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: StarArgUnpackingAfterKeywordArg body: Star-arg unpacking after a keyword argument is strongly discouraged - commit: ~ + suggestion: ~ fixable: false location: row: 21 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 335bc4d994..7c3bb97a55 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EmptyMethodWithoutAbstractDecorator body: "`AbstractClass.empty_1` is an empty method in an abstract base class, but has no abstract decorator" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: EmptyMethodWithoutAbstractDecorator body: "`AbstractClass.empty_2` is an empty method in an abstract base class, but has no abstract decorator" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: EmptyMethodWithoutAbstractDecorator body: "`AbstractClass.empty_3` is an empty method in an abstract base class, but has no abstract decorator" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: EmptyMethodWithoutAbstractDecorator body: "`AbstractClass.empty_4` is an empty method in an abstract base class, but has no abstract decorator" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 ed909cfdc2..ba094d325c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExceptWithEmptyTuple body: "Using except (): with an empty tuple does not handle/catch anything. Add exceptions to handle." - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ExceptWithEmptyTuple body: "Using except (): with an empty tuple does not handle/catch anything. Add exceptions to handle." - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 ce983b42da..e0a74a5b84 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnintentionalTypeAnnotation body: "Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 5cf2e4b1db..ebadbcb251 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RaiseWithoutFromInsideExcept body: "Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling" - commit: ~ + suggestion: ~ fixable: false location: row: 72 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 625c44c8d5..46975425f2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ZipWithoutExplicitStrict body: "`zip()` without an explicit `strict=` parameter" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 2aa219bd28..0812483b42 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FunctionCallArgumentDefault body: "Do not perform function call `Depends` in argument defaults" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 05719a0516..cb3108f14f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `sum` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `int` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `dir` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `print` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `copyright` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `complex` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `float` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `object` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `min` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `max` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `id` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `bytes` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `slice` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `ValueError` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `memoryview` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `bytearray` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `all` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `any` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `sum` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 6646eb8992..a747afe215 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `sum` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `int` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `print` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `copyright` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `complex` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `float` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `object` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `min` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `max` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `bytes` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `slice` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `ValueError` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `memoryview` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `bytearray` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `all` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `any` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: BuiltinVariableShadowing body: "Variable `sum` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 3294f2b15f..4a89c5e360 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `type` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `complex` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `Exception` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `getattr` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `bytes` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `id` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `dir` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `float` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 13de6c3596..55015f60e2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `type` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `complex` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `Exception` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `getattr` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `bytes` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BuiltinArgumentShadowing body: "Argument `float` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 8d0e18dc67..c6a519258b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `ImportError` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `id` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `dir` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 ed2dfea3e8..9e104005e9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `ImportError` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BuiltinAttributeShadowing body: "Class attribute `str` is shadowing a python builtin" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 47bb0efc26..13fac3667e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 10 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 23 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -111,7 +111,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -124,7 +124,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -137,7 +137,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 56 @@ -150,7 +150,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -163,7 +163,7 @@ expression: diagnostics - kind: name: TrailingCommaOnBareTupleProhibited body: Trailing comma on bare tuple prohibited - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -176,7 +176,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 70 @@ -196,7 +196,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 78 @@ -216,7 +216,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 86 @@ -236,7 +236,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 152 @@ -256,7 +256,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 158 @@ -276,7 +276,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 293 @@ -296,7 +296,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 304 @@ -316,7 +316,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 310 @@ -336,7 +336,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 316 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 322 @@ -376,7 +376,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 368 @@ -396,7 +396,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 375 @@ -416,7 +416,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 404 @@ -436,7 +436,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 432 @@ -456,7 +456,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 485 @@ -476,7 +476,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 487 @@ -496,7 +496,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 489 @@ -516,7 +516,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 494 @@ -536,7 +536,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 496 @@ -556,7 +556,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 498 @@ -576,7 +576,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 500 @@ -596,7 +596,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 505 @@ -616,7 +616,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 511 @@ -636,7 +636,7 @@ expression: diagnostics - kind: name: TrailingCommaProhibited body: Trailing comma prohibited - commit: Remove trailing comma + suggestion: Remove trailing comma fixable: true location: row: 513 @@ -656,7 +656,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 519 @@ -676,7 +676,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 526 @@ -696,7 +696,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 534 @@ -716,7 +716,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 541 @@ -736,7 +736,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 547 @@ -756,7 +756,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 554 @@ -776,7 +776,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 561 @@ -796,7 +796,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 565 @@ -816,7 +816,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 573 @@ -836,7 +836,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 577 @@ -856,7 +856,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 583 @@ -876,7 +876,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 590 @@ -896,7 +896,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 598 @@ -916,7 +916,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 627 @@ -936,7 +936,7 @@ expression: diagnostics - kind: name: TrailingCommaMissing body: Trailing comma missing - commit: Add trailing comma + suggestion: Add trailing comma fixable: true location: row: 632 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 93be4f7137..cf32bd5e13 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorList body: "Unnecessary generator (rewrite as a `list` comprehension)" - commit: "Rewrite as a `list` comprehension" + suggestion: "Rewrite as a `list` comprehension" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorList body: "Unnecessary generator (rewrite as a `list` comprehension)" - commit: "Rewrite as a `list` comprehension" + suggestion: "Rewrite as a `list` comprehension" fixable: true location: row: 2 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 1a88401d72..b7db1be95e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorSet body: "Unnecessary generator (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorSet body: "Unnecessary generator (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorSet body: "Unnecessary generator (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 5 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorSet body: "Unnecessary generator (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 6 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorSet body: "Unnecessary generator (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 7 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 1823443e41..84c336712b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorDict body: "Unnecessary generator (rewrite as a `dict` comprehension)" - commit: "Rewrite as a `dict` comprehension" + suggestion: "Rewrite as a `dict` comprehension" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorDict body: "Unnecessary generator (rewrite as a `dict` comprehension)" - commit: "Rewrite as a `dict` comprehension" + suggestion: "Rewrite as a `dict` comprehension" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorDict body: "Unnecessary generator (rewrite as a `dict` comprehension)" - commit: "Rewrite as a `dict` comprehension" + suggestion: "Rewrite as a `dict` comprehension" fixable: true location: row: 6 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryGeneratorDict body: "Unnecessary generator (rewrite as a `dict` comprehension)" - commit: "Rewrite as a `dict` comprehension" + suggestion: "Rewrite as a `dict` comprehension" fixable: true location: row: 7 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 b8b1033d92..a39ed25045 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryListComprehensionSet body: "Unnecessary `list` comprehension (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryListComprehensionSet body: "Unnecessary `list` comprehension (rewrite as a `set` comprehension)" - commit: "Rewrite as a `set` comprehension" + suggestion: "Rewrite as a `set` comprehension" fixable: true location: row: 2 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 7ae315382b..536493cb5d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryListComprehensionDict body: "Unnecessary `list` comprehension (rewrite as a `dict` comprehension)" - commit: "Rewrite as a `dict` comprehension" + suggestion: "Rewrite as a `dict` comprehension" fixable: true location: row: 1 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 53489e6192..f4ce11b013 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `list` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `tuple` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `list` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `tuple` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 4 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `tuple` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 6 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `tuple` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 7 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `list` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 10 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `tuple` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 13 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralSet body: "Unnecessary `list` literal (rewrite as a `set` literal)" - commit: "Rewrite as a `set` literal" + suggestion: "Rewrite as a `set` literal" fixable: true location: row: 16 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 ecb624fb52..01d7fb2477 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralDict body: "Unnecessary `list` literal (rewrite as a `dict` literal)" - commit: "Rewrite as a `dict` literal" + suggestion: "Rewrite as a `dict` literal" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralDict body: "Unnecessary `tuple` literal (rewrite as a `dict` literal)" - commit: "Rewrite as a `dict` literal" + suggestion: "Rewrite as a `dict` literal" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralDict body: "Unnecessary `list` literal (rewrite as a `dict` literal)" - commit: "Rewrite as a `dict` literal" + suggestion: "Rewrite as a `dict` literal" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralDict body: "Unnecessary `tuple` literal (rewrite as a `dict` literal)" - commit: "Rewrite as a `dict` literal" + suggestion: "Rewrite as a `dict` literal" fixable: true location: row: 4 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 7f35bd0e3f..19e087d78b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `tuple` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `list` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `dict` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `dict` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 4 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 8794284575..9970b164e3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `tuple` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `list` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryCollectionCall body: "Unnecessary `dict` call (rewrite as a literal)" - commit: Rewrite as a literal + suggestion: Rewrite as a literal fixable: true location: row: 3 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 807f0c2641..7b6219eac6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinTupleCall body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)" - commit: "Rewrite as a `tuple` literal" + suggestion: "Rewrite as a `tuple` literal" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinTupleCall body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)" - commit: "Rewrite as a `tuple` literal" + suggestion: "Rewrite as a `tuple` literal" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinTupleCall body: "Unnecessary `tuple` literal passed to `tuple()` (remove the outer call to `tuple()`)" - commit: "Remove outer `tuple` call" + suggestion: "Remove outer `tuple` call" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinTupleCall body: "Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)" - commit: "Rewrite as a `tuple` literal" + suggestion: "Rewrite as a `tuple` literal" fixable: true location: row: 4 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinTupleCall body: "Unnecessary `tuple` literal passed to `tuple()` (remove the outer call to `tuple()`)" - commit: "Remove outer `tuple` call" + suggestion: "Remove outer `tuple` call" fixable: true location: row: 8 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 6f0efaef72..d880407494 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinListCall body: "Unnecessary `list` literal passed to `list()` (remove the outer call to `list()`)" - commit: "Remove outer `list` call" + suggestion: "Remove outer `list` call" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinListCall body: "Unnecessary `tuple` literal passed to `list()` (rewrite as a `list` literal)" - commit: "Rewrite as a `list` literal" + suggestion: "Rewrite as a `list` literal" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinListCall body: "Unnecessary `list` literal passed to `list()` (remove the outer call to `list()`)" - commit: "Remove outer `list` call" + suggestion: "Remove outer `list` call" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryLiteralWithinListCall body: "Unnecessary `tuple` literal passed to `list()` (rewrite as a `list` literal)" - commit: "Rewrite as a `list` literal" + suggestion: "Rewrite as a `list` literal" fixable: true location: row: 4 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 7ebbc3ced1..699c9e5bdd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryListCall body: "Unnecessary `list` call (remove the outer call to `list()`)" - commit: "Remove outer `list` call" + suggestion: "Remove outer `list` call" fixable: true location: row: 2 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 cddb924cd0..10654bda4e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `list` call around `sorted()`" - commit: "Remove unnecessary `list` call" + suggestion: "Remove unnecessary `list` call" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 5 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 6 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 7 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 8 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryCallAroundSorted body: "Unnecessary `reversed` call around `sorted()`" - commit: "Remove unnecessary `reversed` call" + suggestion: "Remove unnecessary `reversed` call" fixable: true location: row: 9 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 be53f69801..df977690d0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `list` call within `list()`" - commit: "Remove the inner `list` call" + suggestion: "Remove the inner `list` call" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `tuple` call within `list()`" - commit: "Remove the inner `tuple` call" + suggestion: "Remove the inner `tuple` call" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `list` call within `tuple()`" - commit: "Remove the inner `list` call" + suggestion: "Remove the inner `list` call" fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `tuple` call within `tuple()`" - commit: "Remove the inner `tuple` call" + suggestion: "Remove the inner `tuple` call" fixable: true location: row: 5 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `set` call within `set()`" - commit: "Remove the inner `set` call" + suggestion: "Remove the inner `set` call" fixable: true location: row: 6 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `list` call within `set()`" - commit: "Remove the inner `list` call" + suggestion: "Remove the inner `list` call" fixable: true location: row: 7 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `tuple` call within `set()`" - commit: "Remove the inner `tuple` call" + suggestion: "Remove the inner `tuple` call" fixable: true location: row: 8 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `sorted` call within `set()`" - commit: "Remove the inner `sorted` call" + suggestion: "Remove the inner `sorted` call" fixable: true location: row: 9 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `reversed` call within `set()`" - commit: "Remove the inner `reversed` call" + suggestion: "Remove the inner `reversed` call" fixable: true location: row: 10 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `list` call within `sorted()`" - commit: "Remove the inner `list` call" + suggestion: "Remove the inner `list` call" fixable: true location: row: 11 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `tuple` call within `sorted()`" - commit: "Remove the inner `tuple` call" + suggestion: "Remove the inner `tuple` call" fixable: true location: row: 12 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `sorted` call within `sorted()`" - commit: "Remove the inner `sorted` call" + suggestion: "Remove the inner `sorted` call" fixable: true location: row: 13 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `reversed` call within `sorted()`" - commit: "Remove the inner `reversed` call" + suggestion: "Remove the inner `reversed` call" fixable: true location: row: 14 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UnnecessaryDoubleCastOrProcess body: "Unnecessary `list` call within `tuple()`" - commit: "Remove the inner `list` call" + suggestion: "Remove the inner `list` call" fixable: true location: row: 15 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 4abd12d44c..d919696982 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessarySubscriptReversal body: "Unnecessary subscript reversal of iterable within `set()`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnnecessarySubscriptReversal body: "Unnecessary subscript reversal of iterable within `reversed()`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnnecessarySubscriptReversal body: "Unnecessary subscript reversal of iterable within `sorted()`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnnecessarySubscriptReversal body: "Unnecessary subscript reversal of iterable within `sorted()`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 b22a05f388..5daa988b85 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryComprehension body: "Unnecessary `list` comprehension (rewrite using `list()`)" - commit: "Rewrite using `list()`" + suggestion: "Rewrite using `list()`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryComprehension body: "Unnecessary `set` comprehension (rewrite using `set()`)" - commit: "Rewrite using `set()`" + suggestion: "Rewrite using `set()`" fixable: true location: row: 3 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 85f6fd2879..efa0e02d8e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a `list` comprehension)" - commit: "Replace `map` using a `list` comprehension" + suggestion: "Replace `map` using a `list` comprehension" fixable: true location: row: 5 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a `set` comprehension)" - commit: "Replace `map` using a `set` comprehension" + suggestion: "Replace `map` using a `set` comprehension" fixable: true location: row: 6 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a `dict` comprehension)" - commit: "Replace `map` using a `dict` comprehension" + suggestion: "Replace `map` using a `dict` comprehension" fixable: true location: row: 7 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 8 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 9 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 10 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 11 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 12 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a `set` comprehension)" - commit: "Replace `map` using a `set` comprehension" + suggestion: "Replace `map` using a `set` comprehension" fixable: true location: row: 15 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a `dict` comprehension)" - commit: "Replace `map` using a `dict` comprehension" + suggestion: "Replace `map` using a `dict` comprehension" fixable: true location: row: 16 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UnnecessaryMap body: "Unnecessary `map` usage (rewrite using a generator expression)" - commit: "Replace `map` using a generator expression" + suggestion: "Replace `map` using a generator expression" fixable: true location: row: 21 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 dd8e52af48..5aa766e158 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeWithoutTzinfo body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeWithoutTzinfo body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CallDatetimeWithoutTzinfo body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: CallDatetimeWithoutTzinfo body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: CallDatetimeWithoutTzinfo body: "The use of `datetime.datetime()` without `tzinfo` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 21 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 5f27f6498b..a6c95716ba 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeToday body: "The use of `datetime.datetime.today()` is not allowed, use `datetime.datetime.now(tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeToday body: "The use of `datetime.datetime.today()` is not allowed, use `datetime.datetime.now(tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 136f14ae67..3876b15c6f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeUtcnow body: "The use of `datetime.datetime.utcnow()` is not allowed, use `datetime.datetime.now(tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeUtcnow body: "The use of `datetime.datetime.utcnow()` is not allowed, use `datetime.datetime.now(tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 c139f5aebe..86d06b2492 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeUtcfromtimestamp body: "The use of `datetime.datetime.utcfromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeUtcfromtimestamp body: "The use of `datetime.datetime.utcfromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=)` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 d4207ab3ca..e074b603f1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeNowWithoutTzinfo body: "The use of `datetime.datetime.now()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeNowWithoutTzinfo body: "The use of `datetime.datetime.now()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CallDatetimeNowWithoutTzinfo body: "The use of `datetime.datetime.now()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: CallDatetimeNowWithoutTzinfo body: "The use of `datetime.datetime.now()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: CallDatetimeNowWithoutTzinfo body: "The use of `datetime.datetime.now()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 845bfc6de9..a7ba9c66fb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeFromtimestamp body: "The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeFromtimestamp body: "The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CallDatetimeFromtimestamp body: "The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: CallDatetimeFromtimestamp body: "The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: CallDatetimeFromtimestamp body: "The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 b29c5de0fd..3325a865e2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDatetimeStrptimeWithoutZone body: "The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDatetimeStrptimeWithoutZone body: "The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CallDatetimeStrptimeWithoutZone body: "The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: CallDatetimeStrptimeWithoutZone body: "The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: CallDatetimeStrptimeWithoutZone body: "The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 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 c07646e56c..bb6ef5d79c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDateToday body: "The use of `datetime.date.today()` is not allowed, use `datetime.datetime.now(tz=).date()` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDateToday body: "The use of `datetime.date.today()` is not allowed, use `datetime.datetime.now(tz=).date()` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 847a8ca950..8de285a1be 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CallDateFromtimestamp body: "The use of `datetime.date.fromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=).date()` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CallDateFromtimestamp body: "The use of `datetime.date.fromtimestamp()` is not allowed, use `datetime.datetime.fromtimestamp(ts, tz=).date()` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 973315dac3..7b9b19bebf 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: Debugger body: "Trace found: `breakpoint` used" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: Debugger body: "Import for `pdb` found" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: Debugger body: "Import for `builtins.breakpoint` found" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: Debugger body: "Import for `pdb.set_trace` found" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: Debugger body: "Import for `celery.contrib.rdb.set_trace` found" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: Debugger body: "Import for `celery.contrib.rdb` found" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: Debugger body: "Trace found: `builtins.breakpoint` used" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: Debugger body: "Trace found: `pdb.set_trace` used" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: Debugger body: "Trace found: `celery.contrib.rdb.set_trace` used" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 d0611e26e9..ec413391de 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as CharField" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as TextField" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as SlugField" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as EmailField" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as FilePathField" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as URLField" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as CharField" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as CharField" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as SlugField" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as EmailField" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as FilePathField" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as URLField" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as CharField" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as CharField" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as SlugField" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as EmailField" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as FilePathField" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: NullableModelStringField body: "Avoid using `null=True` on string-based fields such as URLField" - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 d0cf9453b0..790a1d5ae3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LocalsInRenderFunction body: "Avoid passing `locals()` as context to a `render` function" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LocalsInRenderFunction body: "Avoid passing `locals()` as context to a `render` function" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 3b20e7f755..f49e9b0353 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExcludeWithModelForm body: "Do not use `exclude` with `ModelForm`, use `fields` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 2e4eb99e4b..026d0ae882 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AllWithModelForm body: "Do not use `__all__` with `ModelForm`, use `fields` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AllWithModelForm body: "Do not use `__all__` with `ModelForm`, use `fields` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 4e99614a92..c8cb34f4a1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ModelWithoutDunderStr body: "Model does not define `__str__` method" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ModelWithoutDunderStr body: "Model does not define `__str__` method" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ModelWithoutDunderStr body: "Model does not define `__str__` method" - commit: ~ + suggestion: ~ fixable: false location: row: 36 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 14fee8d4ec..60a35293fc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NonLeadingReceiverDecorator body: "`@receiver` decorator must be on top of all the other decorators" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NonLeadingReceiverDecorator body: "`@receiver` decorator must be on top of all the other decorators" - commit: ~ + suggestion: ~ fixable: false location: row: 35 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 9e05e1cfc4..11953d88fa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RawStringInException body: "Exception must not use a string literal, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FStringInException body: "Exception must not use an f-string literal, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DotFormatInException body: "Exception must not use a `.format()` string directly, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 82f93804c5..65c53e83ed 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RawStringInException body: "Exception must not use a string literal, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RawStringInException body: "Exception must not use a string literal, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: FStringInException body: "Exception must not use an f-string literal, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: DotFormatInException body: "Exception must not use a `.format()` string directly, assign to variable first" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 5fd1c729fd..b3f3f24af7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangNotExecutable body: Shebang is present but file is not executable - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 8cf89f5385..0385da5a1c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangMissingExecutableFile body: The file is executable but no shebang is present - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 31e0032d67..8d9a6c2dc8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangPython body: "Shebang should contain `python`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 cdf8ab50ac..2b620ef8f2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangWhitespace body: Avoid whitespace before shebang - commit: Remove whitespace before shebang + suggestion: Remove whitespace before shebang fixable: true location: row: 1 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 8cf89f5385..0385da5a1c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangMissingExecutableFile body: The file is executable but no shebang is present - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 a284beb33d..8fbfcb1d55 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangNewline body: Shebang should be at the beginning of the file - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 82949a6986..d061b2485e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangNewline body: Shebang should be at the beginning of the file - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 213db029c3..cfe1e98189 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ShebangNewline body: Shebang should be at the beginning of the file - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 cc7641131b..45749af829 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SingleLineImplicitStringConcatenation body: Implicitly concatenated string literals on one line - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SingleLineImplicitStringConcatenation body: Implicitly concatenated string literals on one line - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 36598d5959..39275dd7c0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiLineImplicitStringConcatenation body: Implicitly concatenated string literals over multiple lines - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 25e1e06a77..c456628a15 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 cc7641131b..45749af829 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SingleLineImplicitStringConcatenation body: Implicitly concatenated string literals on one line - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SingleLineImplicitStringConcatenation body: Implicitly concatenated string literals on one line - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 56c81f00c0..1564ce7da4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiLineImplicitStringConcatenation body: Implicitly concatenated string literals over multiple lines - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultiLineImplicitStringConcatenation body: Implicitly concatenated string literals over multiple lines - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultiLineImplicitStringConcatenation body: Implicitly concatenated string literals over multiple lines - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultiLineImplicitStringConcatenation body: Implicitly concatenated string literals over multiple lines - commit: ~ + suggestion: ~ fixable: false location: row: 34 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 25e1e06a77..c456628a15 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ExplicitStringConcatenation body: Explicitly concatenated string should be implicitly concatenated - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 3496f8cda4..dc82abb0e7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`dask.array` should be imported as `da`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`dask.dataframe` should be imported as `dd`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `np`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`tensorflow` should be imported as `tf`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`holoviews` should be imported as `hv`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`panel` should be imported as `pn`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`plotly.express` should be imported as `px`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib` should be imported as `mpl`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`polars` should be imported as `pl`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pyarrow` should be imported as `pa`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`dask.array` should be imported as `da`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`dask.dataframe` should be imported as `dd`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `np`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`tensorflow` should be imported as `tf`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`holoviews` should be imported as `hv`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`panel` should be imported as `pn`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`plotly.express` should be imported as `px`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib` should be imported as `mpl`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`polars` should be imported as `pl`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pyarrow` should be imported as `pa`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 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 6c7a109e71..4099963bfb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `np`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `np`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 f9f3fb8641..4ebb3c5e69 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom` should be imported as `md`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom` should be imported as `md`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom` should be imported as `md`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom` should be imported as `md`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom.parseString` should be imported as `pstr`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom.parseString` should be imported as `pstr`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom.parseString` should be imported as `pstr`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`xml.dom.minidom.parseString` should be imported as `pstr`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 9546a11a69..ee169a6bc9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `nmp`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`numpy` should be imported as `nmp`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 4495ec2547..3fa3cc89ec 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`altair` should be imported as `alt`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`matplotlib.pyplot` should be imported as `plt`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`pandas` should be imported as `pd`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnconventionalImportAlias body: "`seaborn` should be imported as `sns`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 1d8c3c6297..cb945fa72f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingStringFormat body: "Logging statement uses `string.format()`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 5a24d6ac68..6f0fea8958 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingPercentFormat body: "Logging statement uses `%`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 cc9773aa40..6f54ca0d5a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingStringConcat body: "Logging statement uses `+`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 f1e7f48a6a..3ee12ae84e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingFString body: Logging statement uses f-string - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 2da9e3bb4e..8acad06bf0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingWarn body: "Logging statement uses `warn` instead of `warning`" - commit: "Convert to `warn`" + suggestion: "Convert to `warn`" fixable: true location: row: 3 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 2fa6ab2be1..772347a51f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingExtraAttrClash body: "Logging statement uses an extra field that clashes with a LogRecord field: `name`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 5db7dd35b8..52f92e5f0e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingExtraAttrClash body: "Logging statement uses an extra field that clashes with a LogRecord field: `name`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 6a4274b22d..8a84f8095e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingExcInfo body: "Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LoggingExcInfo body: "Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 02efaebd48..6182502953 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingRedundantExcInfo body: "Logging statement has redundant `exc_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LoggingRedundantExcInfo body: "Logging statement has redundant `exc_info`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 52ea67ed46..b38e65e42f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImplicitNamespacePackage body: "File `./resources/test/fixtures/flake8_no_pep420/test_fail_empty/example.py` is part of an implicit namespace package. Add an `__init__.py`." - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 bb7d69b8eb..0adfeb0881 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImplicitNamespacePackage body: "File `./resources/test/fixtures/flake8_no_pep420/test_fail_nonempty/example.py` is part of an implicit namespace package. Add an `__init__.py`." - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 4f08354eb6..8a931e5242 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImplicitNamespacePackage body: "File `./resources/test/fixtures/flake8_no_pep420/test_fail_shebang/example.py` is part of an implicit namespace package. Add an `__init__.py`." - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 54f58cd4d4..a82fccfa28 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 9 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 14 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 21 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 28 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 35 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 42 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 50 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 58 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 65 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 74 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 79 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 83 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 87 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 92 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 96 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: UnnecessaryPass body: "Unnecessary `pass` statement" - commit: "Remove unnecessary `pass`" + suggestion: "Remove unnecessary `pass`" fixable: true location: row: 101 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 6704f52f05..85cb34cdda 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DupeClassFieldDefinitions body: "Class field `name` is defined multiple times" - commit: "Remove duplicate field definition for `name`" + suggestion: "Remove duplicate field definition for `name`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DupeClassFieldDefinitions body: "Class field `name` is defined multiple times" - commit: "Remove duplicate field definition for `name`" + suggestion: "Remove duplicate field definition for `name`" fixable: true location: row: 13 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DupeClassFieldDefinitions body: "Class field `bar` is defined multiple times" - commit: "Remove duplicate field definition for `bar`" + suggestion: "Remove duplicate field definition for `bar`" fixable: true location: row: 23 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DupeClassFieldDefinitions body: "Class field `bar` is defined multiple times" - commit: "Remove duplicate field definition for `bar`" + suggestion: "Remove duplicate field definition for `bar`" fixable: true location: row: 40 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 ebbf217710..142e65f08c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `\"B\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `2`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `\"2\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `2.5`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `False`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `None`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PreferUniqueEnums body: "Enum contains duplicate value: `2`" - commit: ~ + suggestion: ~ fixable: false location: row: 54 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 65c24ecd77..0340c05a86 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessarySpread body: "Unnecessary spread `**`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnnecessarySpread body: "Unnecessary spread `**`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnnecessarySpread body: "Unnecessary spread `**`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnnecessarySpread body: "Unnecessary spread `**`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 dcbc3b7990..a1d7658190 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryComprehensionAnyAll body: Unnecessary list comprehension. - commit: Remove unnecessary list comprehension + suggestion: Remove unnecessary list comprehension fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryComprehensionAnyAll body: Unnecessary list comprehension. - commit: Remove unnecessary list comprehension + suggestion: Remove unnecessary list comprehension fixable: true location: row: 10 @@ -43,7 +43,10 @@ expression: diagnostics column: 24 parent: ~ - kind: - UnnecessaryComprehensionAnyAll: ~ + name: UnnecessaryComprehensionAnyAll + body: Unnecessary list comprehension. + suggestion: Remove unnecessary list comprehension + fixable: true location: row: 12 column: 4 @@ -60,7 +63,10 @@ expression: diagnostics column: 1 parent: ~ - kind: - UnnecessaryComprehensionAnyAll: ~ + name: UnnecessaryComprehensionAnyAll + body: Unnecessary list comprehension. + suggestion: Remove unnecessary list comprehension + fixable: true location: row: 15 column: 4 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 db406d90b8..eb74b1c063 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryDictKwargs body: "Unnecessary `dict` kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnnecessaryDictKwargs body: "Unnecessary `dict` kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnnecessaryDictKwargs body: "Unnecessary `dict` kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnnecessaryDictKwargs body: "Unnecessary `dict` kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnnecessaryDictKwargs body: "Unnecessary `dict` kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 ffb7d4e680..f8da70a11e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PreferListBuiltin body: "Prefer `list` over useless lambda" - commit: "Replace with `list`" + suggestion: "Replace with `list`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: PreferListBuiltin body: "Prefer `list` over useless lambda" - commit: "Replace with `list`" + suggestion: "Replace with `list`" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: PreferListBuiltin body: "Prefer `list` over useless lambda" - commit: "Replace with `list`" + suggestion: "Replace with `list`" fixable: true location: row: 11 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 3c8192e5e4..15335fa804 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SingleStartsEndsWith body: "Call `startswith` once with a `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SingleStartsEndsWith body: "Call `endswith` once with a `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SingleStartsEndsWith body: "Call `startswith` once with a `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SingleStartsEndsWith body: "Call `startswith` once with a `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 d6e33a9517..17d9c26d91 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PrintFound body: "`print` found" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PrintFound body: "`print` found" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PrintFound body: "`print` found" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PrintFound body: "`print` found" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 7e2bbf03d8..29f805376f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PPrintFound body: "`pprint` found" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PPrintFound body: "`pprint` found" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 e72402dda0..979da78c65 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PrefixTypeParams body: "Name of private `TypeVar` must start with `_`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PrefixTypeParams body: "Name of private `TypeVarTuple` must start with `_`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PrefixTypeParams body: "Name of private `ParamSpec` must start with `_`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 47ebfb4151..8c47091256 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BadVersionInfoComparison body: "Use `<` or `>=` for version info comparisons" - commit: ~ + suggestion: ~ fixable: false location: row: 18 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 7f2805d328..8090f8af5e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnrecognizedPlatformCheck body: "Unrecognized `sys.platform` check" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnrecognizedPlatformCheck body: "Unrecognized `sys.platform` check" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnrecognizedPlatformCheck body: "Unrecognized `sys.platform` check" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 d7c25fb078..a9aa4f172d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnrecognizedPlatformName body: "Unrecognized platform `linus`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 3e96bab00b..0444921146 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PassStatementStubBody body: "Empty body should contain `...`, not `pass`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PassStatementStubBody body: "Empty body should contain `...`, not `pass`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 bfe9e0b2a1..67cd575147 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NonEmptyStubBody body: "Function body must contain only `...`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NonEmptyStubBody body: "Function body must contain only `...`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NonEmptyStubBody body: "Function body must contain only `...`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 91e86b7214..d85bee3514 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 53 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: TypedArgumentSimpleDefaults body: Only simple default values allowed for typed arguments - commit: ~ + suggestion: ~ fixable: false location: row: 61 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 15f2eb9ac2..62d69d0474 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: ArgumentSimpleDefaults body: Only simple default values allowed for arguments - commit: ~ + suggestion: ~ fixable: false location: row: 44 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 bd4472d802..690e85b6b1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DocstringInStub body: Docstrings should not be included in stubs - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DocstringInStub body: Docstrings should not be included in stubs - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DocstringInStub body: Docstrings should not be included in stubs - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 8c60008f30..c6efc83c9c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: TypeCommentInStub body: "Don't use type comments in stub file" - commit: ~ + suggestion: ~ fixable: false location: row: 32 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 034e736351..f8482ae96c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture()` over `@pytest.fixture`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture()` over `@pytest.fixture`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 34 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture()` over `@pytest.fixture`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 59 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 f76e56c48d..f9f756695c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 14 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 24 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 39 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 49 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 64 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: IncorrectFixtureParenthesesStyle body: "Use `@pytest.fixture` over `@pytest.fixture()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 74 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 454f6f3de3..3c9f6c1e99 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FixturePositionalArgs body: "Configuration for fixture `my_fixture` specified via positional args, use kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FixturePositionalArgs body: "Configuration for fixture `my_fixture` specified via positional args, use kwargs" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 c0ed02eb7b..dc5917f276 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 14 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 19 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 24 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 29 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 37 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 43 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 52 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ExtraneousScopeFunction body: "`scope='function'` is implied in `@pytest.fixture()`" - commit: "Remove implied `scope` argument" + suggestion: "Remove implied `scope` argument" fixable: true location: row: 66 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 71a72717bc..9ef62ad148 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingFixtureNameUnderscore body: "Fixture `patch_something` does not return anything, add leading underscore" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingFixtureNameUnderscore body: "Fixture `activate_context` does not return anything, add leading underscore" - commit: ~ + suggestion: ~ fixable: false location: row: 56 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 58963be5d2..a21b02b109 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectFixtureNameUnderscore body: "Fixture `_my_fixture` returns a value, remove leading underscore" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IncorrectFixtureNameUnderscore body: "Fixture `_activate_context` returns a value, remove leading underscore" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: IncorrectFixtureNameUnderscore body: "Fixture `_activate_context` returns a value, remove leading underscore" - commit: ~ + suggestion: ~ fixable: false location: row: 52 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 64d0021de8..3c04de3109 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 24 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 29 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 34 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 39 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 44 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 49 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 cdef98d134..63488d0c25 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 14 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 19 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 29 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 34 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 39 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 44 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `tuple`" - commit: "Use a `tuple` for parameter names" + suggestion: "Use a `tuple` for parameter names" fixable: true location: row: 49 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 ec3513ac97..1374f3f1d7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `list`" - commit: "Use a `list` for parameter names" + suggestion: "Use a `list` for parameter names" fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `list`" - commit: "Use a `list` for parameter names" + suggestion: "Use a `list` for parameter names" fixable: true location: row: 14 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `list`" - commit: "Use a `list` for parameter names" + suggestion: "Use a `list` for parameter names" fixable: true location: row: 19 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `list`" - commit: "Use a `list` for parameter names" + suggestion: "Use a `list` for parameter names" fixable: true location: row: 24 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 29 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ParametrizeNamesWrongType body: "Wrong name(s) type in `@pytest.mark.parametrize`, expected `csv`" - commit: "Use a `csv` for parameter names" + suggestion: "Use a `csv` for parameter names" fixable: true location: row: 39 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 29ac21229d..a5316790e9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 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 5710ccd7ec..dcefb617e6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 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 6b43a2fcd8..4d2b8d8164 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 71 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 80 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 81 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 fd2df75716..f3f714136e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 71 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: ParametrizeValuesWrongType body: "Wrong values type in `@pytest.mark.parametrize` expected `tuple` of `tuple`" - commit: ~ + suggestion: ~ fixable: false location: row: 80 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 2a2b4c83d5..b2e97bf716 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 47 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PatchWithLambda body: "Use `return_value=` instead of patching with `lambda`" - commit: ~ + suggestion: ~ fixable: false location: row: 48 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 d61790f5eb..a3cac9936d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 11 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 12 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 13 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 14 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 15 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 16 @@ -118,7 +118,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 17 @@ -131,7 +131,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 18 @@ -144,7 +144,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertTrue`" - commit: "Replace `assertTrue(...)` with `assert ...`" + suggestion: "Replace `assertTrue(...)` with `assert ...`" fixable: true location: row: 19 @@ -157,7 +157,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsNotNone`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -170,7 +170,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsNone`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -183,7 +183,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertEqual`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -196,7 +196,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertFalse`" - commit: "Replace `assertFalse(...)` with `assert ...`" + suggestion: "Replace `assertFalse(...)` with `assert ...`" fixable: true location: row: 28 @@ -216,7 +216,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertEqual`" - commit: "Replace `assertEqual(...)` with `assert ...`" + suggestion: "Replace `assertEqual(...)` with `assert ...`" fixable: true location: row: 31 @@ -236,7 +236,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertNotEqual`" - commit: "Replace `assertNotEqual(...)` with `assert ...`" + suggestion: "Replace `assertNotEqual(...)` with `assert ...`" fixable: true location: row: 34 @@ -256,7 +256,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertGreater`" - commit: "Replace `assertGreater(...)` with `assert ...`" + suggestion: "Replace `assertGreater(...)` with `assert ...`" fixable: true location: row: 37 @@ -276,7 +276,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertGreaterEqual`" - commit: "Replace `assertGreaterEqual(...)` with `assert ...`" + suggestion: "Replace `assertGreaterEqual(...)` with `assert ...`" fixable: true location: row: 40 @@ -296,7 +296,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertLess`" - commit: "Replace `assertLess(...)` with `assert ...`" + suggestion: "Replace `assertLess(...)` with `assert ...`" fixable: true location: row: 43 @@ -316,7 +316,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertLessEqual`" - commit: "Replace `assertLessEqual(...)` with `assert ...`" + suggestion: "Replace `assertLessEqual(...)` with `assert ...`" fixable: true location: row: 46 @@ -336,7 +336,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIn`" - commit: "Replace `assertIn(...)` with `assert ...`" + suggestion: "Replace `assertIn(...)` with `assert ...`" fixable: true location: row: 49 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertNotIn`" - commit: "Replace `assertNotIn(...)` with `assert ...`" + suggestion: "Replace `assertNotIn(...)` with `assert ...`" fixable: true location: row: 52 @@ -376,7 +376,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsNone`" - commit: "Replace `assertIsNone(...)` with `assert ...`" + suggestion: "Replace `assertIsNone(...)` with `assert ...`" fixable: true location: row: 55 @@ -396,7 +396,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsNotNone`" - commit: "Replace `assertIsNotNone(...)` with `assert ...`" + suggestion: "Replace `assertIsNotNone(...)` with `assert ...`" fixable: true location: row: 58 @@ -416,7 +416,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIs`" - commit: "Replace `assertIs(...)` with `assert ...`" + suggestion: "Replace `assertIs(...)` with `assert ...`" fixable: true location: row: 61 @@ -436,7 +436,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsNot`" - commit: "Replace `assertIsNot(...)` with `assert ...`" + suggestion: "Replace `assertIsNot(...)` with `assert ...`" fixable: true location: row: 64 @@ -456,7 +456,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertIsInstance`" - commit: "Replace `assertIsInstance(...)` with `assert ...`" + suggestion: "Replace `assertIsInstance(...)` with `assert ...`" fixable: true location: row: 67 @@ -476,7 +476,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertNotIsInstance`" - commit: "Replace `assertNotIsInstance(...)` with `assert ...`" + suggestion: "Replace `assertNotIsInstance(...)` with `assert ...`" fixable: true location: row: 70 @@ -496,7 +496,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertRegex`" - commit: "Replace `assertRegex(...)` with `assert ...`" + suggestion: "Replace `assertRegex(...)` with `assert ...`" fixable: true location: row: 73 @@ -516,7 +516,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertNotRegex`" - commit: "Replace `assertNotRegex(...)` with `assert ...`" + suggestion: "Replace `assertNotRegex(...)` with `assert ...`" fixable: true location: row: 76 @@ -536,7 +536,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertRegexpMatches`" - commit: "Replace `assertRegexpMatches(...)` with `assert ...`" + suggestion: "Replace `assertRegexpMatches(...)` with `assert ...`" fixable: true location: row: 79 @@ -556,7 +556,7 @@ expression: diagnostics - kind: name: UnittestAssertion body: "Use a regular `assert` instead of unittest-style `assertNotRegex`" - commit: "Replace `assertNotRegex(...)` with `assert ...`" + suggestion: "Replace `assertNotRegex(...)` with `assert ...`" fixable: true location: row: 82 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 2128254b4e..d979b4eff7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaisesWithoutException body: "set the expected exception in `pytest.raises()`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 b3bd880242..8fe071f8bc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(socket.error)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 31 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 9a9a6e462e..190513ed8d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ZeroDivisionError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(socket.error)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ValueError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 31 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 2fb04340c6..62b1e83dda 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaisesTooBroad body: "`pytest.raises(ZeroDivisionError)` is too broad, set the `match` parameter or use a more specific exception" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 0a6f90be53..80a80cf43a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RaisesWithMultipleStatements body: "`pytest.raises()` block should contain a single simple statement" - commit: ~ + suggestion: ~ fixable: false location: row: 60 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 471bcaa7ca..f8dd8f908b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectPytestImport body: "Found incorrect import of pytest, use simple `import pytest` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IncorrectPytestImport body: "Found incorrect import of pytest, use simple `import pytest` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: IncorrectPytestImport body: "Found incorrect import of pytest, use simple `import pytest` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 813f324d03..48f05f2601 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: AssertAlwaysFalse body: "Assertion always fails, replace with `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 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 fbad15aa49..b1a68e3513 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FailWithoutMessage body: "No message passed to `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FailWithoutMessage body: "No message passed to `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: FailWithoutMessage body: "No message passed to `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: FailWithoutMessage body: "No message passed to `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: FailWithoutMessage body: "No message passed to `pytest.fail()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 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 c28d042fb1..f4ebfafed5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssertInExcept body: "Found assertion on exception `e` in `except` block, use `pytest.raises()` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 3c0406174a..72d3975712 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 14 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 15 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 17 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 18 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 19 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 20 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 21 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 26 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 27 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -218,7 +218,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -231,7 +231,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -244,7 +244,7 @@ expression: diagnostics - kind: name: CompositeAssertion body: Assertion should be broken down into multiple parts - commit: Break down assertion into multiple parts + suggestion: Break down assertion into multiple parts fixable: true location: row: 35 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 32e7cbf289..2645392ce6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FixtureParamWithoutValue body: "Fixture `_fixture` without value is injected as parameter, use `@pytest.mark.usefixtures` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FixtureParamWithoutValue body: "Fixture `_fixture` without value is injected as parameter, use `@pytest.mark.usefixtures` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 ddba532e16..3cffad8624 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedYieldFixture body: "`@pytest.yield_fixture` is deprecated, use `@pytest.fixture`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DeprecatedYieldFixture body: "`@pytest.yield_fixture` is deprecated, use `@pytest.fixture`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 2bb45e84cd..58361edc62 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FixtureFinalizerCallback body: "Use `yield` instead of `request.addfinalizer`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: FixtureFinalizerCallback body: "Use `yield` instead of `request.addfinalizer`" - commit: ~ + suggestion: ~ fixable: false location: row: 56 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 eabf27305e..8e990231bc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessYieldFixture body: "No teardown in fixture `error`, use `return` instead of `yield`" - commit: "Replace `yield` with `return`" + suggestion: "Replace `yield` with `return`" fixable: true location: row: 17 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 bc1206c032..b5323a1f62 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo()` over `@pytest.mark.foo`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 12 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo()` over `@pytest.mark.foo`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 17 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo()` over `@pytest.mark.foo`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 24 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo()` over `@pytest.mark.foo`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 30 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo()` over `@pytest.mark.foo`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 38 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 ef33273d09..331723fdae 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo` over `@pytest.mark.foo()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 46 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo` over `@pytest.mark.foo()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 51 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo` over `@pytest.mark.foo()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 58 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo` over `@pytest.mark.foo()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 64 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: IncorrectMarkParenthesesStyle body: "Use `@pytest.mark.foo` over `@pytest.mark.foo()`" - commit: Add/remove parentheses + suggestion: Add/remove parentheses fixable: true location: row: 72 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 98bcc420e4..96de80ef64 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryAsyncioMarkOnFixture body: "`pytest.mark.asyncio` is unnecessary for fixtures" - commit: "Remove `pytest.mark.asyncio`" + suggestion: "Remove `pytest.mark.asyncio`" fixable: true location: row: 14 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryAsyncioMarkOnFixture body: "`pytest.mark.asyncio` is unnecessary for fixtures" - commit: "Remove `pytest.mark.asyncio`" + suggestion: "Remove `pytest.mark.asyncio`" fixable: true location: row: 20 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryAsyncioMarkOnFixture body: "`pytest.mark.asyncio` is unnecessary for fixtures" - commit: "Remove `pytest.mark.asyncio`" + suggestion: "Remove `pytest.mark.asyncio`" fixable: true location: row: 27 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryAsyncioMarkOnFixture body: "`pytest.mark.asyncio` is unnecessary for fixtures" - commit: "Remove `pytest.mark.asyncio`" + suggestion: "Remove `pytest.mark.asyncio`" fixable: true location: row: 33 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 e0fbe46ed3..5705b206d8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ErroneousUseFixturesOnFixture body: "`pytest.mark.usefixtures` has no effect on fixtures" - commit: "Remove `pytest.mark.usefixtures`" + suggestion: "Remove `pytest.mark.usefixtures`" fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ErroneousUseFixturesOnFixture body: "`pytest.mark.usefixtures` has no effect on fixtures" - commit: "Remove `pytest.mark.usefixtures`" + suggestion: "Remove `pytest.mark.usefixtures`" fixable: true location: row: 16 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 fa6737f111..41246b6e60 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UseFixturesWithoutParameters body: "Useless `pytest.mark.usefixtures` without parameters" - commit: "Remove `usefixtures` decorator or pass parameters" + suggestion: "Remove `usefixtures` decorator or pass parameters" fixable: true location: row: 19 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UseFixturesWithoutParameters body: "Useless `pytest.mark.usefixtures` without parameters" - commit: "Remove `usefixtures` decorator or pass parameters" + suggestion: "Remove `usefixtures` decorator or pass parameters" fixable: true location: row: 24 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 ec9273cc88..93049719de 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 16 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 21 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 30 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 35 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 f0b336ddda..1d30b97bac 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 5 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 92e48ffa23..b3794039a4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 15 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 17 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 22 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 c60805a4f3..df6330a119 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 9 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 bd7c353f11..fd5dcbb7f3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 6 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 66f586e986..ff4d153566 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 14 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 26 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 894ab4fad1..3b85426c84 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 9 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 5f80eedd78..ad663e2cf0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 27 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 43e5d0daf7..4344c740c3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 1 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 2b5ac33c07..d0f49b1f14 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Single quote docstring found but double quotes preferred - commit: Replace single quotes docstring with double quotes + suggestion: Replace single quotes docstring with double quotes fixable: true location: row: 1 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 78876fad33..9502deb17d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 12 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 24 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 338c8b395e..a67e8d7a3a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 9 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 74bf4e2ab6..630ea19991 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 27 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 0e212accda..04a5163722 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 1 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 88871fac54..3d2746184b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesDocstring body: Double quote docstring found but single quotes preferred - commit: Replace double quotes docstring with single quotes + suggestion: Replace double quotes docstring with single quotes fixable: true location: row: 1 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 c393566075..5de2f20f87 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 18 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 23 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 32 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 37 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 28643ac922..7498c57b13 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 5 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 b94ddf8268..e545c2d4cf 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 15 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 17 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 22 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 f7f25947be..cf5f281c49 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 9 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 42ac02b404..5ca4d42fa7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 6 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 31cc5a45a2..00ae770ba0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 3 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 cb8e953179..012d697ef2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AvoidableEscapedQuote body: Change outer quotes to avoid escaping inner quotes - commit: Change outer quotes to avoid escaping inner quotes + suggestion: Change outer quotes to avoid escaping inner quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: AvoidableEscapedQuote body: Change outer quotes to avoid escaping inner quotes - commit: Change outer quotes to avoid escaping inner quotes + suggestion: Change outer quotes to avoid escaping inner quotes fixable: true location: row: 9 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 da89379548..f78b3dcb0e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 8 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 9 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 10 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Single quotes found but double quotes preferred - commit: Replace single quotes with double quotes + suggestion: Replace single quotes with double quotes fixable: true location: row: 27 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 774dd3f1dd..d2396e06d7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Single quote multiline found but double quotes preferred - commit: Replace single multiline quotes with double quotes + suggestion: Replace single multiline quotes with double quotes fixable: true location: row: 1 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 aa5cf99d3f..6319060367 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 3 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 fc2a8e3088..ae806159e0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AvoidableEscapedQuote body: Change outer quotes to avoid escaping inner quotes - commit: Change outer quotes to avoid escaping inner quotes + suggestion: Change outer quotes to avoid escaping inner quotes fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: AvoidableEscapedQuote body: Change outer quotes to avoid escaping inner quotes - commit: Change outer quotes to avoid escaping inner quotes + suggestion: Change outer quotes to avoid escaping inner quotes fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: AvoidableEscapedQuote body: Change outer quotes to avoid escaping inner quotes - commit: Change outer quotes to avoid escaping inner quotes + suggestion: Change outer quotes to avoid escaping inner quotes fixable: true location: row: 10 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 9da48b8d39..5474a5733a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 8 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 9 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 10 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: BadQuotesInlineString body: Double quotes found but single quotes preferred - commit: Replace double quotes with single quotes + suggestion: Replace double quotes with single quotes fixable: true location: row: 27 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 b120e8f768..b0c1ffc4f5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadQuotesMultilineString body: Double quote multiline found but single quotes preferred - commit: Replace double multiline quotes with single quotes + suggestion: Replace double multiline quotes with single quotes fixable: true location: row: 1 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 2e563f2616..64701a4b17 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 13 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 20 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 23 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryParenOnRaiseException body: Unnecessary parentheses on raised exception - commit: Remove unnecessary parentheses + suggestion: Remove unnecessary parentheses fixable: true location: row: 28 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 1e4920aff4..650524d1a1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryReturnNone body: "Do not explicitly `return None` in function if it is the only possible return value" - commit: "Remove explicit `return None`" + suggestion: "Remove explicit `return None`" fixable: true location: row: 4 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 0a94683c2a..1a92947f9f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImplicitReturnValue body: "Do not implicitly `return None` in function able to return non-`None` value" - commit: "Add explicit `None` return value" + suggestion: "Add explicit `None` return value" fixable: true location: row: 3 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 4c182800a4..12f483d969 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 20 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 27 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 36 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 41 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 52 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 59 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 66 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 82 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 113 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 120 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 130 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 137 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 274 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 291 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 300 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 305 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 310 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 315 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: ImplicitReturn body: "Missing explicit `return` at the end of function able to return non-`None` value" - commit: "Add explicit `return` statement" + suggestion: "Add explicit `return` statement" fixable: true location: row: 320 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 1b001d852a..df6902c1a2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryAssign body: "Unnecessary variable assignment before `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnnecessaryAssign body: "Unnecessary variable assignment before `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnnecessaryAssign body: "Unnecessary variable assignment before `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnnecessaryAssign body: "Unnecessary variable assignment before `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnnecessaryAssign body: "Unnecessary variable assignment before `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 39 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 03a03f826d..bbec7b4db8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `elif` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `elif` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `elif` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `else` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 53 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `else` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `else` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 79 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `else` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 89 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: SuperfluousElseReturn body: "Unnecessary `else` after `return` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 99 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 7719e07936..17b6268fc2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `elif` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `elif` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `else` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `else` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `else` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `else` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 70 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: SuperfluousElseRaise body: "Unnecessary `else` after `raise` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 80 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 d5596e8ad5..f873fa9b62 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `elif` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `elif` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `else` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `else` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 47 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `else` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `else` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 74 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: SuperfluousElseContinue body: "Unnecessary `else` after `continue` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 85 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 98728677d4..2922304d9c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `elif` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `elif` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `else` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `else` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `else` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `else` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 71 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: SuperfluousElseBreak body: "Unnecessary `else` after `break` statement" - commit: ~ + suggestion: ~ fixable: false location: row: 82 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 3a01c16d64..8c4abb26ab 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private`" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private`" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_thing`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_thing`" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_thing`" - commit: ~ + suggestion: ~ fixable: false location: row: 59 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `__really_private_thing`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_func`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `__really_private_func`" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private`" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_thing`" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PrivateMemberAccess body: "Private member accessed: `_private_thing__`" - commit: ~ + suggestion: ~ fixable: false location: row: 65 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 1765f0fe57..3f8f7e3c8d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 7 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 10 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 13 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: DuplicateIsinstanceCall body: "Multiple `isinstance` calls for `a`, merge into a single call" - commit: "Merge `isinstance` calls for `a`" + suggestion: "Merge `isinstance` calls for `a`" fixable: true location: row: 16 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 0b72b79424..6ddf06a8ec 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 15 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -78,7 +78,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 26 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 51 @@ -118,7 +118,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 67 @@ -138,7 +138,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 83 @@ -158,7 +158,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 90 @@ -178,7 +178,7 @@ expression: diagnostics - kind: name: CollapsibleIf body: "Use a single `if` statement instead of nested `if` statements" - commit: "Combine `if` statements using `and`" + suggestion: "Combine `if` statements using `and`" fixable: true location: row: 117 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 e15232fa85..a3b45f234c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `a` directly" - commit: "Replace with `return a`" + suggestion: "Replace with `return a`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `a == b` directly" - commit: "Replace with `return a == b`" + suggestion: "Replace with `return a == b`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `b` directly" - commit: "Replace with `return b`" + suggestion: "Replace with `return b`" fixable: true location: row: 21 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `b` directly" - commit: "Replace with `return b`" + suggestion: "Replace with `return b`" fixable: true location: row: 32 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `a` directly" - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: NeedlessBool body: "Return the condition `a` directly" - commit: ~ + suggestion: ~ fixable: false location: row: 83 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 a132e40ae1..36448613b2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UseContextlibSuppress body: "Use `contextlib.suppress(ValueError)` instead of try-except-pass" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UseContextlibSuppress body: "Use `contextlib.suppress(ValueError, OSError)` instead of try-except-pass" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UseContextlibSuppress body: "Use `contextlib.suppress(Exception)` instead of try-except-pass" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UseContextlibSuppress body: "Use `contextlib.suppress(a.Error, b.Error)` instead of try-except-pass" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 b0bc31e283..e2b7b3beb9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReturnInTryExceptFinally body: "Don't use `return` in `try`/`except` and `finally`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 6cfdd14a3c..04215fea38 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `b = c if a else d` instead of `if`-`else`-block" - commit: "Replace `if`-`else`-block with `b = c if a else d`" + suggestion: "Replace `if`-`else`-block with `b = c if a else d`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `abc = x if x > 0 else -x` instead of `if`-`else`-block" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -38,7 +38,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd` instead of `if`-`else`-block" - commit: "Replace `if`-`else`-block with `b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd`" + suggestion: "Replace `if`-`else`-block with `b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd`" fixable: true location: row: 82 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `exitcode = 0 if True else 1` instead of `if`-`else`-block" - commit: ~ + suggestion: ~ fixable: false location: row: 97 @@ -71,7 +71,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `x = 3 if True else 5` instead of `if`-`else`-block" - commit: ~ + suggestion: ~ fixable: false location: row: 104 @@ -84,7 +84,7 @@ expression: diagnostics - kind: name: UseTernaryOperator body: "Use ternary operator `x = 3 if True else 5` instead of `if`-`else`-block" - commit: ~ + suggestion: ~ fixable: false location: row: 109 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 7a9947f71c..aa33b925aa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CompareWithTuple body: "Use `a in (b, c)` instead of multiple equality comparisons" - commit: "Replace with `a in (b, c)`" + suggestion: "Replace with `a in (b, c)`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: CompareWithTuple body: "Use `a in (b, c)` instead of multiple equality comparisons" - commit: "Replace with `a in (b, c)`" + suggestion: "Replace with `a in (b, c)`" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: CompareWithTuple body: "Use `a in (b, c)` instead of multiple equality comparisons" - commit: "Replace with `a in (b, c)`" + suggestion: "Replace with `a in (b, c)`" fixable: true location: row: 10 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: CompareWithTuple body: "Use `a in (b, c)` instead of multiple equality comparisons" - commit: "Replace with `a in (b, c)`" + suggestion: "Replace with `a in (b, c)`" fixable: true location: row: 14 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 311c361bc2..684aa45103 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 25 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(x.is_empty() for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(x.is_empty() for x in iterable)`" + suggestion: "Replace with `return all(x.is_empty() for x in iterable)`" fixable: true location: row: 33 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 55 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 64 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 73 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 83 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 124 @@ -158,7 +158,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 134 @@ -171,7 +171,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 144 @@ -191,7 +191,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 154 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 210486f3ba..1123651c15 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 25 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(x.is_empty() for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(x.is_empty() for x in iterable)`" + suggestion: "Replace with `return all(x.is_empty() for x in iterable)`" fixable: true location: row: 33 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 55 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 64 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 73 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 83 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 124 @@ -158,7 +158,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 134 @@ -171,7 +171,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return any(check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return any(check(x) for x in iterable)`" + suggestion: "Replace with `return any(check(x) for x in iterable)`" fixable: true location: row: 144 @@ -191,7 +191,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(not check(x) for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(not check(x) for x in iterable)`" + suggestion: "Replace with `return all(not check(x) for x in iterable)`" fixable: true location: row: 154 @@ -211,7 +211,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(x in y for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(x in y for x in iterable)`" + suggestion: "Replace with `return all(x in y for x in iterable)`" fixable: true location: row: 162 @@ -231,7 +231,7 @@ expression: diagnostics - kind: name: ReimplementedBuiltin body: "Use `return all(x <= y for x in iterable)` instead of `for` loop" - commit: "Replace with `return all(x <= y for x in iterable)`" + suggestion: "Replace with `return all(x <= y for x in iterable)`" fixable: true location: row: 170 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 12e29eb8fa..0a1ee784c2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UseCapitalEnvironmentVariables body: "Use capitalized environment variable `FOO` instead of `foo`" - commit: "Replace `foo` with `FOO`" + suggestion: "Replace `foo` with `FOO`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UseCapitalEnvironmentVariables body: "Use capitalized environment variable `FOO` instead of `foo`" - commit: "Replace `foo` with `FOO`" + suggestion: "Replace `foo` with `FOO`" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UseCapitalEnvironmentVariables body: "Use capitalized environment variable `FOO` instead of `foo`" - commit: "Replace `foo` with `FOO`" + suggestion: "Replace `foo` with `FOO`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UseCapitalEnvironmentVariables body: "Use capitalized environment variable `FOO` instead of `foo`" - commit: "Replace `foo` with `FOO`" + suggestion: "Replace `foo` with `FOO`" fixable: true location: row: 10 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 33a07ccd4f..3185d28892 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: IfWithSameArms body: "Combine `if` branches using logical `or` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 62 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 7e5624c4d4..682bbc990e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OpenFileWithContextHandler body: Use context handler for opening files - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: OpenFileWithContextHandler body: Use context handler for opening files - commit: ~ + suggestion: ~ fixable: false location: row: 31 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 46a9d914bf..142757ded4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ManualDictLookup body: "Use a dictionary instead of consecutive `if` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 79 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 88a7749538..fb6a3e4d08 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 19 @@ -78,7 +78,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 53 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 68 @@ -118,7 +118,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 76 @@ -138,7 +138,7 @@ expression: diagnostics - kind: name: MultipleWithStatements body: "Use a single `with` statement with multiple contexts instead of nested `with` statements" - commit: "Combine `with` statements" + suggestion: "Combine `with` statements" fixable: true location: row: 84 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 ab5077e29c..7154643626 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `key in obj` instead of `key in obj.keys()`" - commit: "Convert to `key in obj`" + suggestion: "Convert to `key in obj`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `foo[\"bar\"] in obj` instead of `foo[\"bar\"] in obj.keys()`" - commit: "Convert to `foo[\"bar\"] in obj`" + suggestion: "Convert to `foo[\"bar\"] in obj`" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `foo['bar'] in obj` instead of `foo['bar'] in obj.keys()`" - commit: "Convert to `foo['bar'] in obj`" + suggestion: "Convert to `foo['bar'] in obj`" fixable: true location: row: 5 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `foo() in obj` instead of `foo() in obj.keys()`" - commit: "Convert to `foo() in obj`" + suggestion: "Convert to `foo() in obj`" fixable: true location: row: 7 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `key in obj` instead of `key in obj.keys()`" - commit: "Convert to `key in obj`" + suggestion: "Convert to `key in obj`" fixable: true location: row: 9 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `k in obj` instead of `k in obj.keys()`" - commit: "Convert to `k in obj`" + suggestion: "Convert to `k in obj`" fixable: true location: row: 16 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `k in obj` instead of `k in obj.keys()`" - commit: "Convert to `k in obj`" + suggestion: "Convert to `k in obj`" fixable: true location: row: 18 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `k in obj` instead of `k in obj.keys()`" - commit: "Convert to `k in obj`" + suggestion: "Convert to `k in obj`" fixable: true location: row: 20 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: KeyInDict body: "Use `k in obj` instead of `k in obj.keys()`" - commit: "Convert to `k in obj`" + suggestion: "Convert to `k in obj`" fixable: true location: row: 22 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 ef60659f28..13993db580 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NegateEqualOp body: "Use `a != b` instead of `not a == b`" - commit: "Replace with `!=` operator" + suggestion: "Replace with `!=` operator" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NegateEqualOp body: "Use `a != b + c` instead of `not a == b + c`" - commit: "Replace with `!=` operator" + suggestion: "Replace with `!=` operator" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NegateEqualOp body: "Use `a + b != c` instead of `not a + b == c`" - commit: "Replace with `!=` operator" + suggestion: "Replace with `!=` operator" fixable: true location: row: 10 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 1ba8616338..132abb3c5c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NegateNotEqualOp body: "Use `a == b` instead of `not a != b`" - commit: "Replace with `==` operator" + suggestion: "Replace with `==` operator" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NegateNotEqualOp body: "Use `a == b + c` instead of `not a != b + c`" - commit: "Replace with `==` operator" + suggestion: "Replace with `==` operator" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NegateNotEqualOp body: "Use `a + b == c` instead of `not a + b != c`" - commit: "Replace with `==` operator" + suggestion: "Replace with `==` operator" fixable: true location: row: 10 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 8d7f56d90e..6c40fa40f8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DoubleNegation body: "Use `a` instead of `not (not a)`" - commit: "Replace with `a`" + suggestion: "Replace with `a`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DoubleNegation body: "Use `a == b` instead of `not (not a == b)`" - commit: "Replace with `a == b`" + suggestion: "Replace with `a == b`" fixable: true location: row: 4 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 a77abbd297..1dbb45fa2e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IfExprWithTrueFalse body: "Use `bool(b)` instead of `True if b else False`" - commit: "Replace with `not b" + suggestion: "Replace with `not b" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IfExprWithTrueFalse body: "Use `bool(b != c)` instead of `True if b != c else False`" - commit: "Replace with `not b != c" + suggestion: "Replace with `not b != c" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IfExprWithTrueFalse body: "Use `bool(b + c)` instead of `True if b + c else False`" - commit: "Replace with `not b + c" + suggestion: "Replace with `not b + c" fixable: true location: row: 5 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IfExprWithTrueFalse body: "Use `bool(b)` instead of `True if b else False`" - commit: "Replace with `not b" + suggestion: "Replace with `not b" fixable: true location: row: 14 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 8bb1e4ebed..19e0cb3bc3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IfExprWithFalseTrue body: "Use `not b` instead of `False if b else True`" - commit: "Replace with `bool(b)" + suggestion: "Replace with `bool(b)" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IfExprWithFalseTrue body: "Use `not b != c` instead of `False if b != c else True`" - commit: "Replace with `bool(b != c)" + suggestion: "Replace with `bool(b != c)" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IfExprWithFalseTrue body: "Use `not b + c` instead of `False if b + c else True`" - commit: "Replace with `bool(b + c)" + suggestion: "Replace with `bool(b + c)" fixable: true location: row: 5 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 1036f4b0cc..3401515663 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IfExprWithTwistedArms body: "Use `a if a else b` instead of `b if not a else a`" - commit: "Replace with `a if a else b`" + suggestion: "Replace with `a if a else b`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IfExprWithTwistedArms body: "Use `a if a else b + c` instead of `b + c if not a else a`" - commit: "Replace with `a if a else b + c`" + suggestion: "Replace with `a if a else b + c`" fixable: true location: row: 3 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 65767a4d16..f239a4139a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExprAndNotExpr body: "Use `False` instead of `a and not a`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExprAndNotExpr body: "Use `False` instead of `a and not a`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExprAndNotExpr body: "Use `False` instead of `a and not a`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 7 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 29d215a6f0..acf65022e6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExprOrNotExpr body: "Use `True` instead of `a or not a`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExprOrNotExpr body: "Use `True` instead of `a or not a`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExprOrNotExpr body: "Use `True` instead of `a or not a`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 7 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 c3decba502..07487fd799 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExprOrTrue body: "Use `True` instead of `... or True`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExprOrTrue body: "Use `True` instead of `... or True`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExprOrTrue body: "Use `True` instead of `... or True`" - commit: "Replace with `True`" + suggestion: "Replace with `True`" fixable: true location: row: 7 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 2c6880ed9e..c8382d830b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExprAndFalse body: "Use `False` instead of `... and False`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExprAndFalse body: "Use `False` instead of `... and False`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExprAndFalse body: "Use `False` instead of `... and False`" - commit: "Replace with `False`" + suggestion: "Replace with `False`" fixable: true location: row: 7 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 951d220a66..81a8433038 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `compare == \"yoda\"` instead" - commit: "Replace Yoda condition with `compare == \"yoda\"`" + suggestion: "Replace Yoda condition with `compare == \"yoda\"`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `compare == \"yoda\"` instead" - commit: "Replace Yoda condition with `compare == \"yoda\"`" + suggestion: "Replace Yoda condition with `compare == \"yoda\"`" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age == 42` instead" - commit: "Replace Yoda condition with `age == 42`" + suggestion: "Replace Yoda condition with `age == 42`" fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `compare == (\"a\", \"b\")` instead" - commit: "Replace Yoda condition with `compare == (\"a\", \"b\")`" + suggestion: "Replace Yoda condition with `compare == (\"a\", \"b\")`" fixable: true location: row: 5 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `compare >= \"yoda\"` instead" - commit: "Replace Yoda condition with `compare >= \"yoda\"`" + suggestion: "Replace Yoda condition with `compare >= \"yoda\"`" fixable: true location: row: 6 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `compare > \"yoda\"` instead" - commit: "Replace Yoda condition with `compare > \"yoda\"`" + suggestion: "Replace Yoda condition with `compare > \"yoda\"`" fixable: true location: row: 7 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age < 42` instead" - commit: "Replace Yoda condition with `age < 42`" + suggestion: "Replace Yoda condition with `age < 42`" fixable: true location: row: 8 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age < -42` instead" - commit: "Replace Yoda condition with `age < -42`" + suggestion: "Replace Yoda condition with `age < -42`" fixable: true location: row: 9 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age < +42` instead" - commit: "Replace Yoda condition with `age < +42`" + suggestion: "Replace Yoda condition with `age < +42`" fixable: true location: row: 10 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age == YODA` instead" - commit: "Replace Yoda condition with `age == YODA`" + suggestion: "Replace Yoda condition with `age == YODA`" fixable: true location: row: 11 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age < YODA` instead" - commit: "Replace Yoda condition with `age < YODA`" + suggestion: "Replace Yoda condition with `age < YODA`" fixable: true location: row: 12 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age <= YODA` instead" - commit: "Replace Yoda condition with `age <= YODA`" + suggestion: "Replace Yoda condition with `age <= YODA`" fixable: true location: row: 13 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `age == JediOrder.YODA` instead" - commit: "Replace Yoda condition with `age == JediOrder.YODA`" + suggestion: "Replace Yoda condition with `age == JediOrder.YODA`" fixable: true location: row: 14 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `(number - 100) > 0` instead" - commit: "Replace Yoda condition with `(number - 100) > 0`" + suggestion: "Replace Yoda condition with `(number - 100) > 0`" fixable: true location: row: 15 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: YodaConditions body: "Yoda conditions are discouraged, use `(60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE` instead" - commit: "Replace Yoda condition with `(60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE`" + suggestion: "Replace Yoda condition with `(60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE`" fixable: true location: row: 16 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 de07845c59..7f34a32bab 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `var = a_dict.get(key, \"default1\")` instead of an `if` block" - commit: "Replace with `var = a_dict.get(key, \"default1\")`" + suggestion: "Replace with `var = a_dict.get(key, \"default1\")`" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `var = a_dict.get(key, \"default2\")` instead of an `if` block" - commit: "Replace with `var = a_dict.get(key, \"default2\")`" + suggestion: "Replace with `var = a_dict.get(key, \"default2\")`" fixable: true location: row: 12 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `var = a_dict.get(key, val1 + val2)` instead of an `if` block" - commit: "Replace with `var = a_dict.get(key, val1 + val2)`" + suggestion: "Replace with `var = a_dict.get(key, val1 + val2)`" fixable: true location: row: 18 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `var = a_dict.get(keys[idx], \"default\")` instead of an `if` block" - commit: "Replace with `var = a_dict.get(keys[idx], \"default\")`" + suggestion: "Replace with `var = a_dict.get(keys[idx], \"default\")`" fixable: true location: row: 24 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `var = dicts[idx].get(key, \"default\")` instead of an `if` block" - commit: "Replace with `var = dicts[idx].get(key, \"default\")`" + suggestion: "Replace with `var = dicts[idx].get(key, \"default\")`" fixable: true location: row: 30 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: DictGetWithDefault body: "Use `vars[idx] = a_dict.get(key, \"default\")` instead of an `if` block" - commit: "Replace with `vars[idx] = a_dict.get(key, \"default\")`" + suggestion: "Replace with `vars[idx] = a_dict.get(key, \"default\")`" fixable: true location: row: 36 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 5721c9a701..5880eccea6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BannedApi body: "`cgi` is banned: The cgi module is deprecated." - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: BannedApi body: "`typing.TypedDict` is banned: Use typing_extensions.TypedDict instead." - commit: ~ + suggestion: ~ fixable: false location: row: 33 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 e0ffda00ab..398d7fb0a0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 10 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 11 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 12 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 13 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 14 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 17 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 21 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 22 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 23 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 24 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 25 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 26 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 27 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports are banned - commit: Replace relative imports with absolute imports + suggestion: Replace relative imports with absolute imports fixable: true location: row: 28 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 5d90727f84..c817356314 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 11 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 12 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 21 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 22 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 23 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 24 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 25 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 26 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 27 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 28 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 915d6232a1..868124bf76 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 6 @@ -38,7 +38,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 6 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 6 @@ -78,7 +78,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 7 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: RelativeImports body: Relative imports from parent modules are banned - commit: Replace relative imports from parent modules with absolute imports + suggestion: Replace relative imports from parent modules with absolute imports fixable: true location: row: 8 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 9718f21dec..878759b61d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EmptyTypeCheckingBlock body: Found empty type-checking block - commit: Delete empty type-checking block + suggestion: Delete empty type-checking block fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: EmptyTypeCheckingBlock body: Found empty type-checking block - commit: Delete empty type-checking block + suggestion: Delete empty type-checking block fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: EmptyTypeCheckingBlock body: Found empty type-checking block - commit: Delete empty type-checking block + suggestion: Delete empty type-checking block fixable: true location: row: 11 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: EmptyTypeCheckingBlock body: Found empty type-checking block - commit: Delete empty type-checking block + suggestion: Delete empty type-checking block fixable: true location: row: 16 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: EmptyTypeCheckingBlock body: Found empty type-checking block - commit: Delete empty type-checking block + suggestion: Delete empty type-checking block fixable: true location: row: 22 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 9a2c3ad9b7..aba8f65b1b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `flask` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 06b8a333b2..307476d0d9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `datetime.datetime` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 d3db1e8f9c..0dfb363fd0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.List` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 6a5eb608bd..d009a67ad7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `collections.abc.Callable` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 212d256cd6..34456223b4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `datetime.date` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 ef069b492e..17075ce3eb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.Any` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 0e5f0f5e5e..86762da70f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.List` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.Sequence` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.Set` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 6121b36627..b7ab69ac22 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.Tuple` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `typing.List` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 323b8aa7d1..a559c4d5fa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `datetime` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `array.array` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `pandas` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 6d21c94d6b..ffff6d8db9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `datetime` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `array.array` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RuntimeImportInTypeCheckingBlock body: "Move import `pandas` out of type-checking block. Import is used for more than type hinting." - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 2a871b060d..0851e7d6b5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pkg.A` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pkg.A` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pkg.bar.A` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 51 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 b9bfd0c86e..741a9def50 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyFirstPartyImport body: "Move application import `.TYP001` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 20 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 9e6ed96ae3..ac3db1ea80 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyStandardLibraryImport body: "Move standard library import `os` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 1f83a21167..cd98cae8e1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyStandardLibraryImport body: "Move standard library import `uuid.UUID` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 50cdfe32ac..ef65e746bd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyStandardLibraryImport body: "Move standard library import `uuid.UUID` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 97fe2e11ca..0384b0d2d7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas.DataFrame` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas.DataFrame` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas.DataFrame` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas.DataFrame` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pandas` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 47 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 9561c74186..4ce589f1e6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `geopandas` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pyproj` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 1e4b23f1b7..10d5bf0a8b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `numpy` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 05f90b3210..c2e9668c68 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingOnlyThirdPartyImport body: "Move third-party import `pkg.bar.A` into a type-checking block" - commit: ~ + suggestion: ~ fixable: false location: row: 51 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 36a9869810..218dbd1b3b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 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 c44cbe862a..1ea9777e08 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 190 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 094cb3c703..eadbaeaad7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedClassMethodArgument body: "Unused class method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 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 c6ab12c733..1eea3ea6e4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedStaticMethodArgument body: "Unused static method argument: `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedStaticMethodArgument body: "Unused static method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedStaticMethodArgument body: "Unused static method argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 53 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 c02a1c1764..afd9bf3617 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedLambdaArgument body: "Unused lambda argument: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 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 cace17089b..703553a4ac 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `args`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `kwargs`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `args`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `kwargs`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 36c04e7145..3f6885aad0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnusedFunctionArgument body: "Unused function argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `a`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnusedMethodArgument body: "Unused method argument: `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 461a3f9ef1..e883d38ff7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibPyPath body: "`py.path` is in maintenance mode, use `pathlib` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 33a83eb7da..7a0304d1c0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibPyPath body: "`py.path` is in maintenance mode, use `pathlib` instead" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 de019571c4..5d32cde4c1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibAbspath body: "`os.path.abspath()` should be replaced by `Path.resolve()`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PathlibChmod body: "`os.chmod()` should be replaced by `Path.chmod()`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PathlibMkdir body: "`os.mkdir()` should be replaced by `Path.mkdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PathlibMakedirs body: "`os.makedirs()` should be replaced by `Path.mkdir(parents=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PathlibRename body: "`os.rename()` should be replaced by `Path.rename()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PathlibReplace body: "`os.replace()` should be replaced by `Path.replace()`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PathlibRmdir body: "`os.rmdir()` should be replaced by `Path.rmdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PathlibRemove body: "`os.remove()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PathlibUnlink body: "`os.unlink()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PathlibGetcwd body: "`os.getcwd()` should be replaced by `Path.cwd()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PathlibExists body: "`os.path.exists()` should be replaced by `Path.exists()`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PathlibExpanduser body: "`os.path.expanduser()` should be replaced by `Path.expanduser()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: PathlibIsDir body: "`os.path.isdir()` should be replaced by `Path.is_dir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: PathlibIsFile body: "`os.path.isfile()` should be replaced by `Path.is_file()`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: PathlibIsLink body: "`os.path.islink()` should be replaced by `Path.is_symlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: PathlibReadlink body: "`os.readlink()` should be replaced by `Path.readlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: PathlibStat body: "`os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: PathlibIsAbs body: "`os.path.isabs()` should be replaced by `Path.is_absolute()`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: PathlibJoin body: "`os.path.join()` should be replaced by `Path` with `/` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: PathlibBasename body: "`os.path.basename()` should be replaced by `Path.name`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PathlibDirname body: "`os.path.dirname()` should be replaced by `Path.parent`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: PathlibSamefile body: "`os.path.samefile()` should be replaced by `Path.samefile()`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: PathlibSplitext body: "`os.path.splitext()` should be replaced by `Path.suffix`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: PathlibOpen body: "`open()` should be replaced by `Path.open()`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: PathlibOpen body: "`open()` should be replaced by `Path.open()`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: PathlibGetcwd body: "`os.getcwd()` should be replaced by `Path.cwd()`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 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 70f98723e4..64057ab7ea 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibAbspath body: "`os.path.abspath()` should be replaced by `Path.resolve()`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PathlibChmod body: "`os.chmod()` should be replaced by `Path.chmod()`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PathlibMkdir body: "`os.mkdir()` should be replaced by `Path.mkdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PathlibMakedirs body: "`os.makedirs()` should be replaced by `Path.mkdir(parents=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PathlibRename body: "`os.rename()` should be replaced by `Path.rename()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PathlibReplace body: "`os.replace()` should be replaced by `Path.replace()`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PathlibRmdir body: "`os.rmdir()` should be replaced by `Path.rmdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PathlibRemove body: "`os.remove()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PathlibUnlink body: "`os.unlink()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PathlibGetcwd body: "`os.getcwd()` should be replaced by `Path.cwd()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PathlibExists body: "`os.path.exists()` should be replaced by `Path.exists()`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PathlibExpanduser body: "`os.path.expanduser()` should be replaced by `Path.expanduser()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: PathlibIsDir body: "`os.path.isdir()` should be replaced by `Path.is_dir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: PathlibIsFile body: "`os.path.isfile()` should be replaced by `Path.is_file()`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: PathlibIsLink body: "`os.path.islink()` should be replaced by `Path.is_symlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: PathlibReadlink body: "`os.readlink()` should be replaced by `Path.readlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: PathlibStat body: "`os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: PathlibIsAbs body: "`os.path.isabs()` should be replaced by `Path.is_absolute()`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: PathlibJoin body: "`os.path.join()` should be replaced by `Path` with `/` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: PathlibBasename body: "`os.path.basename()` should be replaced by `Path.name`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PathlibDirname body: "`os.path.dirname()` should be replaced by `Path.parent`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: PathlibSamefile body: "`os.path.samefile()` should be replaced by `Path.samefile()`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: PathlibSplitext body: "`os.path.splitext()` should be replaced by `Path.suffix`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 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 5d1b36499a..541fd2c703 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibAbspath body: "`os.path.abspath()` should be replaced by `Path.resolve()`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PathlibChmod body: "`os.chmod()` should be replaced by `Path.chmod()`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PathlibMkdir body: "`os.mkdir()` should be replaced by `Path.mkdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PathlibMakedirs body: "`os.makedirs()` should be replaced by `Path.mkdir(parents=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PathlibRename body: "`os.rename()` should be replaced by `Path.rename()`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PathlibReplace body: "`os.replace()` should be replaced by `Path.replace()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PathlibRmdir body: "`os.rmdir()` should be replaced by `Path.rmdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PathlibRemove body: "`os.remove()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PathlibUnlink body: "`os.unlink()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PathlibGetcwd body: "`os.getcwd()` should be replaced by `Path.cwd()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PathlibExists body: "`os.path.exists()` should be replaced by `Path.exists()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PathlibExpanduser body: "`os.path.expanduser()` should be replaced by `Path.expanduser()`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: PathlibIsDir body: "`os.path.isdir()` should be replaced by `Path.is_dir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: PathlibIsFile body: "`os.path.isfile()` should be replaced by `Path.is_file()`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: PathlibIsLink body: "`os.path.islink()` should be replaced by `Path.is_symlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: PathlibReadlink body: "`os.readlink()` should be replaced by `Path.readlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: PathlibStat body: "`os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: PathlibIsAbs body: "`os.path.isabs()` should be replaced by `Path.is_absolute()`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: PathlibJoin body: "`os.path.join()` should be replaced by `Path` with `/` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: PathlibBasename body: "`os.path.basename()` should be replaced by `Path.name`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PathlibDirname body: "`os.path.dirname()` should be replaced by `Path.parent`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: PathlibSamefile body: "`os.path.samefile()` should be replaced by `Path.samefile()`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: PathlibSplitext body: "`os.path.splitext()` should be replaced by `Path.suffix`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: PathlibOpen body: "`open()` should be replaced by `Path.open()`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: PathlibOpen body: "`open()` should be replaced by `Path.open()`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 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 ff444058fc..ea0848b8b3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PathlibAbspath body: "`os.path.abspath()` should be replaced by `Path.resolve()`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PathlibChmod body: "`os.chmod()` should be replaced by `Path.chmod()`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PathlibMkdir body: "`os.mkdir()` should be replaced by `Path.mkdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PathlibMakedirs body: "`os.makedirs()` should be replaced by `Path.mkdir(parents=True)`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PathlibRename body: "`os.rename()` should be replaced by `Path.rename()`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PathlibReplace body: "`os.replace()` should be replaced by `Path.replace()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PathlibRmdir body: "`os.rmdir()` should be replaced by `Path.rmdir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PathlibRemove body: "`os.remove()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PathlibUnlink body: "`os.unlink()` should be replaced by `Path.unlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PathlibGetcwd body: "`os.getcwd()` should be replaced by `Path.cwd()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PathlibExists body: "`os.path.exists()` should be replaced by `Path.exists()`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PathlibExpanduser body: "`os.path.expanduser()` should be replaced by `Path.expanduser()`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: PathlibIsDir body: "`os.path.isdir()` should be replaced by `Path.is_dir()`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: PathlibIsFile body: "`os.path.isfile()` should be replaced by `Path.is_file()`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: PathlibIsLink body: "`os.path.islink()` should be replaced by `Path.is_symlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: PathlibReadlink body: "`os.readlink()` should be replaced by `Path.readlink()`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: PathlibStat body: "`os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: PathlibIsAbs body: "`os.path.isabs()` should be replaced by `Path.is_absolute()`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: PathlibJoin body: "`os.path.join()` should be replaced by `Path` with `/` operator" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: PathlibBasename body: "`os.path.basename()` should be replaced by `Path.name`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PathlibDirname body: "`os.path.dirname()` should be replaced by `Path.parent`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: PathlibSamefile body: "`os.path.samefile()` should be replaced by `Path.samefile()`" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: PathlibSplitext body: "`os.path.splitext()` should be replaced by `Path.suffix`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 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 2ae1a6eb3a..a1b39e4471 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 dc88c9352f..f4353cf772 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 439506037c..98464f291b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 7aad86f7ed..f1caf4b983 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 cd9b7fd626..4dc45aee49 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b6aee4b0c3..e13ed1c74b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 55ab4530f6..6a5287e986 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import annotations`" - commit: "Insert required import: `from __future__ import annotations`" + suggestion: "Insert required import: `from __future__ import annotations`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import generator_stop`" - commit: "Insert required import: `from __future__ import generator_stop`" + suggestion: "Insert required import: `from __future__ import generator_stop`" fixable: true location: row: 1 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 30785c5101..39308e9806 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 3 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 da7bf82218..852b7f6a85 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 8ecbecb357..a541b88fd5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 7 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 1d269b6e7c..1bc356bea0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 319ed09a74..c2b87e78af 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 f3df96035d..51d77ed4c1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 5191fb35d7..e73e9874cb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b34ca2fc9b..b2b2f90eef 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 e0fea0b8aa..4d72a109e9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 909d1f4417..4f03dec774 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 35b332dda2..dd5abaf5b3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 6cdf4ba1e2..38b34ae886 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 3 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 bff24d4de3..98bc170235 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 79c12bdb2a..154c67dc3b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 70151a8eb7..a1a964fc7d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 14 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 52 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 96c1f9fd8f..a327a66c49 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 14 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 4ddd703e55..7a9ac9f801 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 2e51da91bf..27d02ea78c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 13 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 168b5a5daa..6e6ef0d25a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 69f89b6be2..1498413113 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 a54253b8f1..0404d02bce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 e5648de827..fea0aaedc4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 d6c859580d..aca8152f77 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 2 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 551bfa1fa5..d33c2710f6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 a54253b8f1..0404d02bce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 e7cc92dd67..77417890bd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 79f48d626e..30a9069890 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b333d4dbfc..a7b4c8bb22 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 0b77edbbb9..1cf89cf570 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b12d99a77a..abd8a9e191 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b7d07c5373..0cd678ee64 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 10de3d3d22..b3d0b144d5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 7cdb76ec83..6175ce3332 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 15252e4b31..40c754134e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 8f56057a40..c10a770941 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 d6c1f23523..d2648d75c7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 81c5edb7ab..aab70a9a82 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 2b8e90c630..e0f1dc9635 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 9bb276684b..6b5939cb1e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 a3402d80ab..029088a601 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 5 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 34089f4e0a..b74879c500 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 485d122954..fe04b11b2d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import annotations`" - commit: "Insert required import: `from __future__ import annotations`" + suggestion: "Insert required import: `from __future__ import annotations`" fixable: true location: row: 1 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 a2a9e3f035..96d0fd49d8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import annotations`" - commit: "Insert required import: `from __future__ import annotations`" + suggestion: "Insert required import: `from __future__ import annotations`" fixable: true location: row: 1 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 55ab4530f6..6a5287e986 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import annotations`" - commit: "Insert required import: `from __future__ import annotations`" + suggestion: "Insert required import: `from __future__ import annotations`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `from __future__ import generator_stop`" - commit: "Insert required import: `from __future__ import generator_stop`" + suggestion: "Insert required import: `from __future__ import generator_stop`" fixable: true location: row: 1 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 771782f8f9..f1ba2170ce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 4dd3badfcb..3a80b84e27 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 81fe0e1d5e..fcaae10538 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 8a628762d5..46f078ffe1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 b45c7c97f7..6660926e53 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 12 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 19 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 52ce194852..b41a82c041 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 3c683fc1dd..c5ea1a0b6f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 2 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 9f877097d3..b431fa88aa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 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 570f24d749..b6da84cc16 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingRequiredImport body: "Missing required import: `import os`" - commit: "Insert required import: `import os`" + suggestion: "Insert required import: `import os`" fixable: true location: row: 1 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 ccd27804c5..23615f0bf6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnsortedImports body: Import block is un-sorted or un-formatted - commit: Organize imports + suggestion: Organize imports fixable: true location: row: 5 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 48f32b98f2..1a7c576b71 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`trivial` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`expr_as_statement` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`sequential` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`if_elif_else_dead_path` is too complex (3)" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`nested_ifs` is too complex (3)" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`for_loop` is too complex (2)" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`for_else` is too complex (2)" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`recursive` is too complex (2)" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`nested_functions` is too complex (3)" - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`a` is too complex (2)" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`b` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`try_else` is too complex (4)" - commit: ~ + suggestion: ~ fixable: false location: row: 73 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`nested_try_finally` is too complex (3)" - commit: ~ + suggestion: ~ fixable: false location: row: 85 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`foobar` is too complex (3)" - commit: ~ + suggestion: ~ fixable: false location: row: 96 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`annotated_assign` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 107 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`handle` is too complex (9)" - commit: ~ + suggestion: ~ fixable: false location: row: 113 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`a` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 118 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`b` is too complex (2)" - commit: ~ + suggestion: ~ fixable: false location: row: 121 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`c` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 126 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`error` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 129 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`info` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 132 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`exception` is too complex (1)" - commit: ~ + suggestion: ~ fixable: false location: row: 135 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 0b648112cc..b00affeb57 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`try_else` is too complex (4)" - commit: ~ + suggestion: ~ fixable: false location: row: 73 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ComplexStructure body: "`handle` is too complex (9)" - commit: ~ + suggestion: ~ fixable: false location: row: 113 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 fcab6eaabf..4252601d2f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.bool` is deprecated, replace with builtin type" - commit: "Replace `np.bool` with builtin type" + suggestion: "Replace `np.bool` with builtin type" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.int` is deprecated, replace with builtin type" - commit: "Replace `np.int` with builtin type" + suggestion: "Replace `np.int` with builtin type" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.object` is deprecated, replace with builtin type" - commit: "Replace `np.object` with builtin type" + suggestion: "Replace `np.object` with builtin type" fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.int` is deprecated, replace with builtin type" - commit: "Replace `np.int` with builtin type" + suggestion: "Replace `np.int` with builtin type" fixable: true location: row: 12 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.long` is deprecated, replace with builtin type" - commit: "Replace `np.long` with builtin type" + suggestion: "Replace `np.long` with builtin type" fixable: true location: row: 12 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.object` is deprecated, replace with builtin type" - commit: "Replace `np.object` with builtin type" + suggestion: "Replace `np.object` with builtin type" fixable: true location: row: 17 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: NumpyDeprecatedTypeAlias body: "Type alias `np.int` is deprecated, replace with builtin type" - commit: "Replace `np.int` with builtin type" + suggestion: "Replace `np.int` with builtin type" fixable: true location: row: 20 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 16f4a52ab3..02dce193cf 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_normal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_normal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.seed` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.get_state` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.set_state` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.rand` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.randn` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.randint` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.random_integers` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.random_sample` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.choice` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.bytes` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.shuffle` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.permutation` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.beta` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.binomial` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.chisquare` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.dirichlet` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.exponential` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.f` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.gamma` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.geometric` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.get_state` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.gumbel` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.hypergeometric` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.laplace` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.logistic` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.lognormal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -369,7 +369,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.logseries` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -382,7 +382,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.multinomial` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -395,7 +395,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.multivariate_normal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -408,7 +408,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.negative_binomial` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -421,7 +421,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.noncentral_chisquare` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -434,7 +434,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.noncentral_f` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -447,7 +447,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.normal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 47 @@ -460,7 +460,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.pareto` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 48 @@ -473,7 +473,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.poisson` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -486,7 +486,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.power` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -499,7 +499,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.rayleigh` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -512,7 +512,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_cauchy` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_exponential` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 53 @@ -538,7 +538,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_gamma` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -551,7 +551,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_normal` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 55 @@ -564,7 +564,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.standard_t` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 56 @@ -577,7 +577,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.triangular` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -590,7 +590,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.uniform` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -603,7 +603,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.vonmises` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 59 @@ -616,7 +616,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.wald` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -629,7 +629,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.weibull` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -642,7 +642,7 @@ expression: diagnostics - kind: name: NumpyLegacyRandom body: "Replace legacy `np.random.zipf` call with `np.random.Generator`" - commit: ~ + suggestion: ~ fixable: false location: row: 62 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 9e395c842e..559681b056 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UseOfInplaceArgument body: "`inplace=True` should be avoided; it has inconsistent behavior" - commit: "Assign to variable; remove `inplace` arg" + suggestion: "Assign to variable; remove `inplace` arg" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UseOfInplaceArgument body: "`inplace=True` should be avoided; it has inconsistent behavior" - commit: "Assign to variable; remove `inplace` arg" + suggestion: "Assign to variable; remove `inplace` arg" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UseOfInplaceArgument body: "`inplace=True` should be avoided; it has inconsistent behavior" - commit: "Assign to variable; remove `inplace` arg" + suggestion: "Assign to variable; remove `inplace` arg" fixable: true location: row: 10 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UseOfInplaceArgument body: "`inplace=True` should be avoided; it has inconsistent behavior" - commit: "Assign to variable; remove `inplace` arg" + suggestion: "Assign to variable; remove `inplace` arg" fixable: true location: row: 17 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 f1fa063365..b81323f63f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidClassName body: "Class name `bad` should use CapWords convention " - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidClassName body: "Class name `_bad` should use CapWords convention " - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidClassName body: "Class name `bad_class` should use CapWords convention " - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: InvalidClassName body: "Class name `Bad_Class` should use CapWords convention " - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: InvalidClassName body: "Class name `BAD_CLASS` should use CapWords convention " - commit: ~ + suggestion: ~ fixable: false location: row: 17 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 0c859a835d..0cb9d70798 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidFunctionName body: "Function name `Bad` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidFunctionName body: "Function name `_Bad` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidFunctionName body: "Function name `BAD` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: InvalidFunctionName body: "Function name `BAD_FUNC` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: InvalidFunctionName body: "Function name `testTest` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 40 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 bd44245f13..dca9c0dba2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidArgumentName body: "Argument name `A` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidArgumentName body: "Argument name `A` should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 34c4a59ea7..cfc39d50be 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForClassMethod body: "First argument of a class method should be named `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForClassMethod body: "First argument of a class method should be named `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForClassMethod body: "First argument of a class method should be named `cls`" - commit: ~ + suggestion: ~ fixable: false location: row: 43 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 7c1c06e224..5c569e6bb1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 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 64ac9777c4..844bb5cc0f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NonLowercaseVariableInFunction body: "Variable `Camel` in function should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NonLowercaseVariableInFunction body: "Variable `CONSTANT` in function should be lowercase" - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 110c72feb1..d2b2e970f0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DunderFunctionName body: "Function name should not start and end with `__`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DunderFunctionName body: "Function name should not start and end with `__`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 a8d368ef6d..598c691a65 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConstantImportedAsNonConstant body: "Constant `CONST` imported as non-constant `const`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ConstantImportedAsNonConstant body: "Constant `CONSTANT` imported as non-constant `constant`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ConstantImportedAsNonConstant body: "Constant `ANOTHER_CONSTANT` imported as non-constant `another_constant`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 aa8b262c75..7296925d90 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LowercaseImportedAsNonLowercase body: "Lowercase `lowercase` imported as non-lowercase `Lower`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LowercaseImportedAsNonLowercase body: "Lowercase `lowercase` imported as non-lowercase `Lowercase`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: LowercaseImportedAsNonLowercase body: "Lowercase `another_lowercase` imported as non-lowercase `AnotherLowercase`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 c92474bce7..e23b791b05 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsLowercase body: "Camelcase `Camel` imported as lowercase `camel`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsLowercase body: "Camelcase `CamelCase` imported as lowercase `camelcase`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsLowercase body: "Camelcase `AnotherCamelCase` imported as lowercase `another_camelcase`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 89910a0d3b..1ac4bea0c9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsConstant body: "Camelcase `Camel` imported as constant `CAMEL`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsConstant body: "Camelcase `CamelCase` imported as constant `CAMELCASE`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsConstant body: "Camelcase `AnotherCamelCase` imported as constant `ANOTHER_CAMELCASE`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 7a2d4a2bc2..d0b4bf1771 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInClassScope body: "Variable `mixedCase` in class scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInClassScope body: "Variable `_mixedCase` in class scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInClassScope body: "Variable `mixed_Case` in class scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 700ded0828..150e631192 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInGlobalScope body: "Variable `mixedCase` in global scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInGlobalScope body: "Variable `_mixedCase` in global scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MixedCaseVariableInGlobalScope body: "Variable `mixed_Case` in global scope should not be mixedCase" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 7edbccbaeb..4827db12bb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsAcronym body: "CamelCase `CaMel` imported as acronym `CM`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CamelcaseImportedAsAcronym body: "CamelCase `CamelCase` imported as acronym `CC`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 f1c20a7f90..73180ac593 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ErrorSuffixOnExceptionName body: "Exception name `C` should be named with an Error suffix" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ErrorSuffixOnExceptionName body: "Exception name `E` should be named with an Error suffix" - commit: ~ + suggestion: ~ fixable: false location: row: 17 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 395a09310e..b01f97f813 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidModuleName body: "Invalid module name: 'MODULE'" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 baed39dcf8..95ca079215 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidModuleName body: "Invalid module name: 'mod with spaces'" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 30f470692b..d495bdd3bd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidModuleName body: "Invalid module name: 'mod-with-dashes'" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 ef242c80a3..7fa347eafe 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidModuleName body: "Invalid module name: 'file-with-dashes'" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 6b8de3ff70..eab4d72472 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidFirstArgumentNameForMethod body: "First argument of a method should be named `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 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 38c53e56db..16bb87d985 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MixedSpacesAndTabs body: Indentation contains mixed spaces and tabs - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MixedSpacesAndTabs body: Indentation contains mixed spaces and tabs - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MixedSpacesAndTabs body: Indentation contains mixed spaces and tabs - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 d04fc8744f..6e7677a4f6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IndentationWithInvalidMultiple body: Indentation is not a multiple of 4 - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IndentationWithInvalidMultiple body: Indentation is not a multiple of 4 - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 f92d7173b4..c76e04f728 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoIndentedBlock body: Expected an indented block - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 8340132016..bc5b0df9f6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnexpectedIndentation body: Unexpected indentation - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 8836526032..020828cf77 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IndentationWithInvalidMultipleComment body: Indentation is not a multiple of 4 (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 41d34ac5e6..1b0d75a196 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: NoIndentedBlockComment body: Expected an indented block (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 35 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 1c181fb1ca..7fcbb0959b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnexpectedIndentationComment body: Unexpected indentation (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnexpectedIndentationComment body: Unexpected indentation (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnexpectedIndentationComment body: Unexpected indentation (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnexpectedIndentationComment body: Unexpected indentation (comment) - commit: ~ + suggestion: ~ fixable: false location: row: 26 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 3937e89957..1a62ef4e7c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OverIndented body: Over-indented - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: OverIndented body: Over-indented - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: OverIndented body: Over-indented - commit: ~ + suggestion: ~ fixable: false location: row: 42 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 8c7e016ac0..42d6bd63ae 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: WhitespaceAfterOpenBracket body: "Whitespace after '('" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 507f499d57..ae6b9190df 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeCloseBracket body: "Whitespace before ')'" - commit: ~ + suggestion: ~ fixable: false location: row: 29 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 ed2c382f9c..3d91c14d84 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 55 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 67 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: WhitespaceBeforePunctuation body: "Whitespace before ',', ';', or ':'" - commit: ~ + suggestion: ~ fixable: false location: row: 71 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 9a1a61969b..63a5095072 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeParameters body: "Whitespace before '('" - commit: "Removed whitespace before '('" + suggestion: "Removed whitespace before '('" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeParameters body: "Whitespace before '['" - commit: "Removed whitespace before '['" + suggestion: "Removed whitespace before '['" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeParameters body: "Whitespace before '['" - commit: "Removed whitespace before '['" + suggestion: "Removed whitespace before '['" fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: WhitespaceBeforeParameters body: "Whitespace before '['" - commit: "Removed whitespace before '['" + suggestion: "Removed whitespace before '['" fixable: true location: row: 6 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 29831c7e9d..1c2446595d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeOperator body: Multiple spaces before operator - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 f999036cc0..27129520fa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterOperator body: Multiple spaces after operator - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterOperator body: Multiple spaces after operator - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterOperator body: Multiple spaces after operator - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterOperator body: Multiple spaces after operator - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterOperator body: Multiple spaces after operator - commit: ~ + suggestion: ~ fixable: false location: row: 36 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 c6f7153be1..4283693941 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TabBeforeOperator body: Tab before operator - commit: ~ + suggestion: ~ fixable: false location: row: 43 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 99c95623aa..e26bf5b1e3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TabAfterOperator body: Tab after operator - commit: ~ + suggestion: ~ fixable: false location: row: 48 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 48d739ad15..bb16972b48 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 66 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 68 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 70 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 72 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 74 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 76 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 76 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 88 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 92 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 94 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 100 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundOperator body: Missing whitespace around operator - commit: ~ + suggestion: ~ fixable: false location: row: 154 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 c4c5b5f0f2..06c726fd81 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 92 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 94 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 96 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 100 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 106 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 106 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 110 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 112 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 114 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 114 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundArithmeticOperator body: Missing whitespace around arithmetic operator - commit: ~ + suggestion: ~ fixable: false location: row: 116 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 62858be647..5306f2ff2d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator body: Missing whitespace around bitwise or shift operator - commit: ~ + suggestion: ~ fixable: false location: row: 121 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator body: Missing whitespace around bitwise or shift operator - commit: ~ + suggestion: ~ fixable: false location: row: 123 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator body: Missing whitespace around bitwise or shift operator - commit: ~ + suggestion: ~ fixable: false location: row: 125 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator body: Missing whitespace around bitwise or shift operator - commit: ~ + suggestion: ~ fixable: false location: row: 127 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundBitwiseOrShiftOperator body: Missing whitespace around bitwise or shift operator - commit: ~ + suggestion: ~ fixable: false location: row: 129 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 efd59b2831..0505516015 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundModuloOperator body: Missing whitespace around modulo operator - commit: ~ + suggestion: ~ fixable: false location: row: 131 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundModuloOperator body: Missing whitespace around modulo operator - commit: ~ + suggestion: ~ fixable: false location: row: 133 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundModuloOperator body: Missing whitespace around modulo operator - commit: ~ + suggestion: ~ fixable: false location: row: 135 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 759462e411..ef428817c8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespace body: "Missing whitespace after ','" - commit: "Added missing whitespace after ','" + suggestion: "Added missing whitespace after ','" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MissingWhitespace body: "Missing whitespace after ','" - commit: "Added missing whitespace after ','" + suggestion: "Added missing whitespace after ','" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: MissingWhitespace body: "Missing whitespace after ':'" - commit: "Added missing whitespace after ':'" + suggestion: "Added missing whitespace after ':'" fixable: true location: row: 6 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 fc1ef90806..00634be8fb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UnexpectedSpacesAroundKeywordParameterEquals body: Unexpected spaces around keyword / parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 809e4a20b1..cb6ffdb2e4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundParameterEquals body: Missing whitespace around parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundParameterEquals body: Missing whitespace around parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundParameterEquals body: Missing whitespace around parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAroundParameterEquals body: Missing whitespace around parameter equals - commit: ~ + suggestion: ~ fixable: false location: row: 46 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 21a9fcb78c..e283278236 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooFewSpacesBeforeInlineComment body: Insert at least two spaces before an inline comment - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 81d4f0c4d4..087782a7a3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoSpaceAfterInlineComment body: "Inline comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NoSpaceAfterInlineComment body: "Inline comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NoSpaceAfterInlineComment body: "Inline comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NoSpaceAfterInlineComment body: "Inline comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: NoSpaceAfterInlineComment body: "Inline comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 66 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 fd0951cd21..a4d5b5439e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoSpaceAfterBlockComment body: "Block comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NoSpaceAfterBlockComment body: "Block comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NoSpaceAfterBlockComment body: "Block comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NoSpaceAfterBlockComment body: "Block comment should start with `# `" - commit: ~ + suggestion: ~ fixable: false location: row: 32 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 9dc6427fdc..1732ae58e8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleLeadingHashesForBlockComment body: "Too many leading `#` before block comment" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleLeadingHashesForBlockComment body: "Too many leading `#` before block comment" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleLeadingHashesForBlockComment body: "Too many leading `#` before block comment" - commit: ~ + suggestion: ~ fixable: false location: row: 26 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 a8c43e5519..6401c0cfec 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: MultipleSpacesAfterKeyword body: Multiple spaces after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 35 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 cb97833ccd..6c5592bd48 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeKeyword body: Multiple spaces before keyword - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeKeyword body: Multiple spaces before keyword - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleSpacesBeforeKeyword body: Multiple spaces before keyword - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 fe2f671bdb..50aa176a52 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TabAfterKeyword body: Tab after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TabAfterKeyword body: Tab after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TabAfterKeyword body: Tab after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TabAfterKeyword body: Tab after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TabAfterKeyword body: Tab after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 3cfe3d2758..b080c2919b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TabBeforeKeyword body: Tab before keyword - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TabBeforeKeyword body: Tab before keyword - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 9ab26e1d43..3044ebf452 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAfterKeyword body: Missing whitespace after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAfterKeyword body: Missing whitespace after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAfterKeyword body: Missing whitespace after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAfterKeyword body: Missing whitespace after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MissingWhitespaceAfterKeyword body: Missing whitespace after keyword - commit: ~ + suggestion: ~ fixable: false location: row: 54 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 d03a9e46c4..79062d249e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleImportsOnOneLine body: Multiple imports on one line - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 0d33988427..68a1495577 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ModuleImportNotAtTopOfFile body: Module level import not at top of file - commit: ~ + suggestion: ~ fixable: false location: row: 55 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ModuleImportNotAtTopOfFile body: Module level import not at top of file - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ModuleImportNotAtTopOfFile body: Module level import not at top of file - commit: ~ + suggestion: ~ fixable: false location: row: 61 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 6d8f35dd6d..f1b375520c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ModuleImportNotAtTopOfFile body: Module level import not at top of file - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 652dd57bc8..82fe82bbf1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (123 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (127 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (132 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (105 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (129 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 61 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 8097f4d26f..92078afc95 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 31 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 56 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineColon body: Multiple statements on one line (colon) - commit: ~ + suggestion: ~ fixable: false location: row: 59 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 1cc31c7778..90c9d6187c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MultipleStatementsOnOneLineSemicolon body: Multiple statements on one line (semicolon) - commit: ~ + suggestion: ~ fixable: false location: row: 56 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 73f0d06b30..0875111d2f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessSemicolon body: Statement ends with an unnecessary semicolon - commit: Remove unnecessary semicolon + suggestion: Remove unnecessary semicolon fixable: true location: row: 10 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UselessSemicolon body: Statement ends with an unnecessary semicolon - commit: Remove unnecessary semicolon + suggestion: Remove unnecessary semicolon fixable: true location: row: 12 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UselessSemicolon body: Statement ends with an unnecessary semicolon - commit: Remove unnecessary semicolon + suggestion: Remove unnecessary semicolon fixable: true location: row: 25 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 cdbaeac873..669846981b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is not None`" - commit: "Replace with `cond is not None`" + suggestion: "Replace with `cond is not None`" fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is not None`" - commit: "Replace with `cond is not None`" + suggestion: "Replace with `cond is not None`" fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is not None`" - commit: "Replace with `cond is not None`" + suggestion: "Replace with `cond is not None`" fixable: true location: row: 17 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is not None`" - commit: "Replace with `cond is not None`" + suggestion: "Replace with `cond is not None`" fixable: true location: row: 20 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 23 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 26 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is not None`" - commit: "Replace with `cond is not None`" + suggestion: "Replace with `cond is not None`" fixable: true location: row: 26 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 ba5a75cca4..c7315385fc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is True`" - commit: "Replace with `cond is True`" + suggestion: "Replace with `cond is True`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is not False`" - commit: "Replace with `cond is not False`" + suggestion: "Replace with `cond is not False`" fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is not True`" - commit: "Replace with `cond is not True`" + suggestion: "Replace with `cond is not True`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is False`" - commit: "Replace with `cond is False`" + suggestion: "Replace with `cond is False`" fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is True`" - commit: "Replace with `cond is True`" + suggestion: "Replace with `cond is True`" fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is not False`" - commit: "Replace with `cond is not False`" + suggestion: "Replace with `cond is not False`" fixable: true location: row: 17 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is True`" - commit: "Replace with `cond is True`" + suggestion: "Replace with `cond is True`" fixable: true location: row: 20 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is False`" - commit: "Replace with `cond is False`" + suggestion: "Replace with `cond is False`" fixable: true location: row: 20 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is True`" - commit: "Replace with `cond is True`" + suggestion: "Replace with `cond is True`" fixable: true location: row: 22 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `True` should be `cond is True`" - commit: "Replace with `cond is True`" + suggestion: "Replace with `cond is True`" fixable: true location: row: 25 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is not False`" - commit: "Replace with `cond is not False`" + suggestion: "Replace with `cond is not False`" fixable: true location: row: 25 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 fd91a35b18..bb8b35b7bd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NotInTest body: "Test for membership should be `not in`" - commit: "Convert to `not in`" + suggestion: "Convert to `not in`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NotInTest body: "Test for membership should be `not in`" - commit: "Convert to `not in`" + suggestion: "Convert to `not in`" fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NotInTest body: "Test for membership should be `not in`" - commit: "Convert to `not in`" + suggestion: "Convert to `not in`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NotInTest body: "Test for membership should be `not in`" - commit: "Convert to `not in`" + suggestion: "Convert to `not in`" fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: NotInTest body: "Test for membership should be `not in`" - commit: "Convert to `not in`" + suggestion: "Convert to `not in`" fixable: true location: row: 14 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 14d0ce5199..e9243cd78d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NotIsTest body: "Test for object identity should be `is not`" - commit: "Convert to `is not`" + suggestion: "Convert to `is not`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NotIsTest body: "Test for object identity should be `is not`" - commit: "Convert to `is not`" + suggestion: "Convert to `is not`" fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NotIsTest body: "Test for object identity should be `is not`" - commit: "Convert to `is not`" + suggestion: "Convert to `is not`" fixable: true location: row: 8 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 4c7ea1adbe..76acba3c0a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: TypeComparison body: "Do not compare types, use `isinstance()`" - commit: ~ + suggestion: ~ fixable: false location: row: 42 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 a6d1768783..8fcc439ef7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BareExcept body: "Do not use bare `except`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BareExcept body: "Do not use bare `except`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BareExcept body: "Do not use bare `except`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 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 65c06817b4..a19ce0c7ab 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: "Rewrite `f` as a `def`" + suggestion: "Rewrite `f` as a `def`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: "Rewrite `f` as a `def`" + suggestion: "Rewrite `f` as a `def`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: "Rewrite `this` as a `def`" + suggestion: "Rewrite `this` as a `def`" fixable: true location: row: 7 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: "Rewrite `f` as a `def`" + suggestion: "Rewrite `f` as a `def`" fixable: true location: row: 9 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: "Rewrite `f` as a `def`" + suggestion: "Rewrite `f` as a `def`" fixable: true location: row: 11 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: LambdaAssignment body: "Do not assign a `lambda` expression, use a `def`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 de74946951..0dd1d1ba29 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `O`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 48 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 48 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 57 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 66 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 71 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: AmbiguousVariableName body: "Ambiguous variable name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 74 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 18adf0a4b6..e73bcfe6c8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AmbiguousClassName body: "Ambiguous class name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AmbiguousClassName body: "Ambiguous class name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AmbiguousClassName body: "Ambiguous class name: `O`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 13549b2dff..39eb0714de 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AmbiguousFunctionName body: "Ambiguous function name: `l`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AmbiguousFunctionName body: "Ambiguous function name: `I`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: AmbiguousFunctionName body: "Ambiguous function name: `O`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 d216f04408..ba2b5f9fd3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SyntaxError body: "SyntaxError: unindent does not match any outer indentation level" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 50dbc2477b..65727ee37c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 62 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 65 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 66 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 73 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 83 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 88 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 91 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 92 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 99 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 102 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 105 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 110 @@ -369,7 +369,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 125 @@ -382,7 +382,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 131 @@ -395,7 +395,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 132 @@ -408,7 +408,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 133 @@ -421,7 +421,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 136 @@ -434,7 +434,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 137 @@ -447,7 +447,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 138 @@ -460,7 +460,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 139 @@ -473,7 +473,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 140 @@ -486,7 +486,7 @@ expression: diagnostics - kind: name: IndentationContainsTabs body: Indentation contains tabs - commit: ~ + suggestion: ~ fixable: false location: row: 143 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 5c3f2e3d40..613528f793 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TrailingWhitespace body: Trailing whitespace - commit: Remove trailing whitespace + suggestion: Remove trailing whitespace fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TrailingWhitespace body: Trailing whitespace - commit: Remove trailing whitespace + suggestion: Remove trailing whitespace fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TrailingWhitespace body: Trailing whitespace - commit: Remove trailing whitespace + suggestion: Remove trailing whitespace fixable: true location: row: 13 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 687aacb14a..d213ac67c3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoNewLineAtEndOfFile body: No newline at end of file - commit: Add trailing newline + suggestion: Add trailing newline fixable: true location: row: 2 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 1ab92fc2d8..4456d6890c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlankLineContainsWhitespace body: Blank line contains whitespace - commit: Remove whitespace from blank line + suggestion: Remove whitespace from blank line fixable: true location: row: 7 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 8ab53505e1..e645cf838c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\.`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\.`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\_`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 11 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\_`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 18 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 8ab53505e1..e645cf838c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\.`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\.`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\_`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 11 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: InvalidEscapeSequence body: "Invalid escape sequence: `\\_`" - commit: Add backslash to escape sequence + suggestion: Add backslash to escape sequence fixable: true location: row: 18 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 e1d7e743dc..10aa6714e3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 10 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 12 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is False`" - commit: "Replace with `cond is False`" + suggestion: "Replace with `cond is False`" fixable: true location: row: 14 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 14 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: NoneComparison body: "Comparison to `None` should be `cond is None`" - commit: "Replace with `cond is None`" + suggestion: "Replace with `cond is None`" fixable: true location: row: 16 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: TrueFalseComparison body: "Comparison to `False` should be `cond is False`" - commit: "Replace with `cond is False`" + suggestion: "Replace with `cond is False`" fixable: true location: row: 16 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 4fbd02fb07..872113aac2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DocLineTooLong body: Doc line too long (57 > 50 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DocLineTooLong body: Doc line too long (56 > 50 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DocLineTooLong body: Doc line too long (56 > 50 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: DocLineTooLong body: Doc line too long (61 > 50 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 e32db4f410..49025e4cd6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (149 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (148 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (155 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (150 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (149 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (156 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 371ab820e5..7f65408075 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoNewLineAtEndOfFile body: No newline at end of file - commit: Add trailing newline + suggestion: Add trailing newline fixable: true location: row: 1 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 2ed50d391c..6465c3fe6f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicModule body: Missing docstring in public module - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 b6f295cfb2..a8cd118adf 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicClass body: Missing docstring in public class - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 b550e7e226..6df4195b5d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicMethod body: Missing docstring in public method - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PublicMethod body: Missing docstring in public method - commit: ~ + suggestion: ~ fixable: false location: row: 56 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PublicMethod body: Missing docstring in public method - commit: ~ + suggestion: ~ fixable: false location: row: 68 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 b807e99e0b..c6a4b7dbc0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicMethod body: Missing docstring in public method - commit: ~ + suggestion: ~ fixable: false location: row: 16 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 8c67a660a7..dcbac5146b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicFunction body: Missing docstring in public function - commit: ~ + suggestion: ~ fixable: false location: row: 400 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 fd8efd1c46..8367b199df 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicPackage body: Missing docstring in public package - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 43ee35da43..94128ea806 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MagicMethod body: Missing docstring in magic method - commit: ~ + suggestion: ~ fixable: false location: row: 64 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 e866b1fb4d..1d1f8137c2 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PublicInit body: "Missing docstring in `__init__`" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PublicInit body: "Missing docstring in `__init__`" - commit: ~ + suggestion: ~ fixable: false location: row: 534 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 6cb1e4ad52..3e4d58a386 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FitsOnOneLine body: One-line docstring should fit on one line - commit: Reformat to one line + suggestion: Reformat to one line fixable: true location: row: 129 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FitsOnOneLine body: One-line docstring should fit on one line - commit: Reformat to one line + suggestion: Reformat to one line fixable: true location: row: 597 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: FitsOnOneLine body: One-line docstring should fit on one line - commit: Reformat to one line + suggestion: Reformat to one line fixable: true location: row: 606 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: FitsOnOneLine body: One-line docstring should fit on one line - commit: Reformat to one line + suggestion: Reformat to one line fixable: true location: row: 615 @@ -78,7 +78,7 @@ expression: diagnostics - kind: name: FitsOnOneLine body: One-line docstring should fit on one line - commit: Reformat to one line + suggestion: Reformat to one line fixable: true location: row: 624 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 b12f26094c..bc09e4cc2f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeFunction body: No blank lines allowed before function docstring (found 1) - commit: Remove blank line(s) before function docstring + suggestion: Remove blank line(s) before function docstring fixable: true location: row: 137 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeFunction body: No blank lines allowed before function docstring (found 1) - commit: Remove blank line(s) before function docstring + suggestion: Remove blank line(s) before function docstring fixable: true location: row: 151 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeFunction body: No blank lines allowed before function docstring (found 1) - commit: Remove blank line(s) before function docstring + suggestion: Remove blank line(s) before function docstring fixable: true location: row: 546 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeFunction body: No blank lines allowed before function docstring (found 1) - commit: Remove blank line(s) before function docstring + suggestion: Remove blank line(s) before function docstring fixable: true location: row: 568 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 4c3a139513..ca7fae4133 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 1) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 142 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 1) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 151 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 1) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 555 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 1) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 568 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 a2011ae83f..645410db17 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 2) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 57 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 2) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 68 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoBlankLineAfterFunction body: No blank lines allowed after function docstring (found 1) - commit: Remove blank line(s) after function docstring + suggestion: Remove blank line(s) after function docstring fixable: true location: row: 80 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 ef53fa1b36..0de8a25b74 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OneBlankLineBeforeClass body: 1 blank line required before class docstring - commit: Insert 1 blank line before class docstring + suggestion: Insert 1 blank line before class docstring fixable: true location: row: 161 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OneBlankLineBeforeClass body: 1 blank line required before class docstring - commit: Insert 1 blank line before class docstring + suggestion: Insert 1 blank line before class docstring fixable: true location: row: 192 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OneBlankLineBeforeClass body: 1 blank line required before class docstring - commit: Insert 1 blank line before class docstring + suggestion: Insert 1 blank line before class docstring fixable: true location: row: 526 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 06ecee814e..2723279843 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OneBlankLineAfterClass body: 1 blank line required after class docstring - commit: Insert 1 blank line after class docstring + suggestion: Insert 1 blank line after class docstring fixable: true location: row: 181 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OneBlankLineAfterClass body: 1 blank line required after class docstring - commit: Insert 1 blank line after class docstring + suggestion: Insert 1 blank line after class docstring fixable: true location: row: 192 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 5fb1afb049..c643c7bff9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlankLineAfterSummary body: 1 blank line required between summary line and description - commit: ~ + suggestion: ~ fixable: false location: row: 200 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BlankLineAfterSummary body: 1 blank line required between summary line and description (found 2) - commit: Insert single blank line + suggestion: Insert single blank line fixable: true location: row: 210 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 cf3278afc9..7469e805a1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoUnderIndentation body: Docstring is under-indented - commit: Increase indentation + suggestion: Increase indentation fixable: true location: row: 232 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoUnderIndentation body: Docstring is under-indented - commit: Increase indentation + suggestion: Increase indentation fixable: true location: row: 244 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoUnderIndentation body: Docstring is under-indented - commit: Increase indentation + suggestion: Increase indentation fixable: true location: row: 440 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NoUnderIndentation body: Docstring is under-indented - commit: Increase indentation + suggestion: Increase indentation fixable: true location: row: 441 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 c98c3ce3bc..7fcf000823 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoOverIndentation body: Docstring is over-indented - commit: Remove over-indentation + suggestion: Remove over-indentation fixable: true location: row: 252 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoOverIndentation body: Docstring is over-indented - commit: Remove over-indentation + suggestion: Remove over-indentation fixable: true location: row: 264 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoOverIndentation body: Docstring is over-indented - commit: Remove over-indentation + suggestion: Remove over-indentation fixable: true location: row: 272 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 0c6b70c42e..e33af346c3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NewLineAfterLastParagraph body: Multi-line docstring closing quotes should be on a separate line - commit: Move closing quotes to new line + suggestion: Move closing quotes to new line fixable: true location: row: 281 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NewLineAfterLastParagraph body: Multi-line docstring closing quotes should be on a separate line - commit: Move closing quotes to new line + suggestion: Move closing quotes to new line fixable: true location: row: 588 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 3f0df75fea..1869a6c80c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoSurroundingWhitespace body: No whitespaces allowed surrounding docstring text - commit: Trim surrounding whitespace + suggestion: Trim surrounding whitespace fixable: true location: row: 288 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoSurroundingWhitespace body: No whitespaces allowed surrounding docstring text - commit: Trim surrounding whitespace + suggestion: Trim surrounding whitespace fixable: true location: row: 293 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NoSurroundingWhitespace body: No whitespaces allowed surrounding docstring text - commit: Trim surrounding whitespace + suggestion: Trim surrounding whitespace fixable: true location: row: 299 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NoSurroundingWhitespace body: No whitespaces allowed surrounding docstring text - commit: Trim surrounding whitespace + suggestion: Trim surrounding whitespace fixable: true location: row: 581 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 1e5f3ff6a7..b491fc6cd8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeClass body: No blank lines allowed before class docstring - commit: Remove blank line(s) before class docstring + suggestion: Remove blank line(s) before class docstring fixable: true location: row: 170 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NoBlankLineBeforeClass body: No blank lines allowed before class docstring - commit: Remove blank line(s) before class docstring + suggestion: Remove blank line(s) before class docstring fixable: true location: row: 181 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 9019c753d5..9c70c0e88f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiLineSummaryFirstLine body: Multi-line docstring summary should start at the first line - commit: Remove whitespace after opening quotes + suggestion: Remove whitespace after opening quotes fixable: true location: row: 129 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MultiLineSummaryFirstLine body: Multi-line docstring summary should start at the first line - commit: Remove whitespace after opening quotes + suggestion: Remove whitespace after opening quotes fixable: true location: row: 597 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: MultiLineSummaryFirstLine body: Multi-line docstring summary should start at the first line - commit: Remove whitespace after opening quotes + suggestion: Remove whitespace after opening quotes fixable: true location: row: 624 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 110049c1a6..f2db70d365 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 200 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 210 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 220 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 230 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 240 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 250 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 260 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 270 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 281 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 299 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 343 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 383 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 392 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 438 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 450 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 526 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 546 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 555 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 568 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 588 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 606 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: MultiLineSummarySecondLine body: Multi-line docstring summary should start at the second line - commit: Insert line break and indentation after opening quotes + suggestion: Insert line break and indentation after opening quotes fixable: true location: row: 615 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 02c672ed2b..8dcab2b97f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SectionNotOverIndented body: "Section is over-indented (\"Returns\")" - commit: "Remove over-indentation from \"Returns\"" + suggestion: "Remove over-indentation from \"Returns\"" fixable: true location: row: 135 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 5f88c91e62..400dbe7e93 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SectionUnderlineNotOverIndented body: "Section underline is over-indented (\"Returns\")" - commit: "Remove over-indentation from \"Returns\" underline" + suggestion: "Remove over-indentation from \"Returns\" underline" fixable: true location: row: 147 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: SectionUnderlineNotOverIndented body: "Section underline is over-indented (\"Returns\")" - commit: "Remove over-indentation from \"Returns\" underline" + suggestion: "Remove over-indentation from \"Returns\" underline" fixable: true location: row: 161 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 cddc254cc5..4dc287cba5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 307 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 312 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 317 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 322 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 328 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 4205e4a4b2..e6f3d1a621 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EscapeSequenceInDocstring body: "Use `r\"\"\"` if any backslashes in a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 328 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: EscapeSequenceInDocstring body: "Use `r\"\"\"` if any backslashes in a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 333 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: EscapeSequenceInDocstring body: "Use `r\"\"\"` if any backslashes in a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 338 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 1237703715..bd473c0ef6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 355 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 406 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 410 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 416 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 422 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 429 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 470 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 475 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 480 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 487 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 514 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 520 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 581 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 615 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 5db3efbdc4..008ea1efa6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 12 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 20 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 25 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 32 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 39 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 44 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 49 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 57 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 62 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: EndsInPeriod body: First line should end with a period - commit: Add period + suggestion: Add period fixable: true location: row: 69 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 f13b172ef1..909f9a8459 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Returns foo.\"" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Constructor for a foo.\"" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Constructor for a boa.\"" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Runs something\"" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Runs other things, nested\"" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"Writes a logical line that\"" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: NonImperativeMood body: "First line of docstring should be in imperative mood: \"This method docstring should be written in imperative mood.\"" - commit: ~ + suggestion: ~ fixable: false location: row: 74 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 91b6c9839d..05afd64c73 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoSignature body: "First line should not be the function's signature" - commit: ~ + suggestion: ~ fixable: false location: row: 378 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 eb5e4896d9..c59cd817b7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DocstringStartsWithThis body: "First word of the docstring should not be \"This\"" - commit: ~ + suggestion: ~ fixable: false location: row: 631 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DocstringStartsWithThis body: "First word of the docstring should not be \"This\"" - commit: ~ + suggestion: ~ fixable: false location: row: 636 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 a687e8bc74..3d4224a17d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CapitalizeSectionName body: "Section name should be properly capitalized (\"returns\")" - commit: "Capitalize \"returns\"" + suggestion: "Capitalize \"returns\"" fixable: true location: row: 17 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: CapitalizeSectionName body: "Section name should be properly capitalized (\"Short summary\")" - commit: "Capitalize \"Short summary\"" + suggestion: "Capitalize \"Short summary\"" fixable: true location: row: 207 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 b841568304..481d691e17 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NewLineAfterSectionName body: "Section name should end with a newline (\"Returns\")" - commit: "Add newline after \"Returns\"" + suggestion: "Add newline after \"Returns\"" fixable: true location: row: 30 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NewLineAfterSectionName body: "Section name should end with a newline (\"Raises\")" - commit: "Add newline after \"Raises\"" + suggestion: "Add newline after \"Raises\"" fixable: true location: row: 207 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 2d1b2be2f3..3bd6dcca59 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Returns\")" - commit: "Add dashed line under \"Returns\"" + suggestion: "Add dashed line under \"Returns\"" fixable: true location: row: 42 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Returns\")" - commit: "Add dashed line under \"Returns\"" + suggestion: "Add dashed line under \"Returns\"" fixable: true location: row: 54 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Raises\")" - commit: "Add dashed line under \"Raises\"" + suggestion: "Add dashed line under \"Raises\"" fixable: true location: row: 207 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 252 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Returns\")" - commit: "Add dashed line under \"Returns\"" + suggestion: "Add dashed line under \"Returns\"" fixable: true location: row: 252 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Raises\")" - commit: "Add dashed line under \"Raises\"" + suggestion: "Add dashed line under \"Raises\"" fixable: true location: row: 252 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 269 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 284 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 301 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 313 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 325 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 337 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 350 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 362 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 371 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: DashedUnderlineAfterSection body: "Missing dashed underline after section (\"Args\")" - commit: "Add dashed line under \"Args\"" + suggestion: "Add dashed line under \"Args\"" fixable: true location: row: 490 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 59edd7afd4..5b22ddd978 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SectionUnderlineAfterName body: "Section underline should be in the line following the section's name (\"Returns\")" - commit: "Add underline to \"Returns\"" + suggestion: "Add underline to \"Returns\"" fixable: true location: row: 85 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 70601384db..7911488856 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SectionUnderlineMatchesSectionLength body: "Section underline should match the length of its name (\"Returns\")" - commit: "Adjust underline length to match \"Returns\"" + suggestion: "Adjust underline length to match \"Returns\"" fixable: true location: row: 99 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: SectionUnderlineMatchesSectionLength body: "Section underline should match the length of its name (\"Returns\")" - commit: "Adjust underline length to match \"Returns\"" + suggestion: "Adjust underline length to match \"Returns\"" fixable: true location: row: 207 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 97117b8005..eb1033ce45 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlankLineAfterSection body: "Missing blank line after section (\"Returns\")" - commit: "Add blank line after \"Returns\"" + suggestion: "Add blank line after \"Returns\"" fixable: true location: row: 67 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BlankLineAfterSection body: "Missing blank line after section (\"Returns\")" - commit: "Add blank line after \"Returns\"" + suggestion: "Add blank line after \"Returns\"" fixable: true location: row: 207 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 55da2fd879..c95cb8fd6a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlankLineBeforeSection body: "Missing blank line before section (\"Yields\")" - commit: "Add blank line before \"Yields\"" + suggestion: "Add blank line before \"Yields\"" fixable: true location: row: 67 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: BlankLineBeforeSection body: "Missing blank line before section (\"Returns\")" - commit: "Add blank line before \"Returns\"" + suggestion: "Add blank line before \"Returns\"" fixable: true location: row: 122 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: BlankLineBeforeSection body: "Missing blank line before section (\"Raises\")" - commit: "Add blank line before \"Raises\"" + suggestion: "Add blank line before \"Raises\"" fixable: true location: row: 207 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 2550c53b35..0b79d12749 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoBlankLinesBetweenHeaderAndContent body: "No blank lines allowed between a section header and its content (\"Short summary\")" - commit: Remove blank line(s) + suggestion: Remove blank line(s) fixable: true location: row: 207 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 ef20bd2e64..a08fe926ce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EmptyDocstringSection body: "Section has no content (\"Returns\")" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: EmptyDocstringSection body: "Section has no content (\"Returns\")" - commit: ~ + suggestion: ~ fixable: false location: row: 67 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: EmptyDocstringSection body: "Section has no content (\"Yields\")" - commit: ~ + suggestion: ~ fixable: false location: row: 67 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: EmptyDocstringSection body: "Section has no content (\"Returns\")" - commit: ~ + suggestion: ~ fixable: false location: row: 161 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: EmptyDocstringSection body: "Section has no content (\"Returns\")" - commit: ~ + suggestion: ~ fixable: false location: row: 252 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 aea2f14734..ae9b6e1330 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 355 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 406 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 410 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 416 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 422 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 429 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 470 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 475 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 480 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 487 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 520 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 581 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: EndsInPunctuation body: "First line should end with a period, question mark, or exclamation point" - commit: Add closing punctuation + suggestion: Add closing punctuation fixable: true location: row: 615 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 fc48cc00ab..b5acbbc862 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 283 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 300 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `test`, `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 324 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `test`, `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 336 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `a`, `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 349 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `a`, `b`" - commit: ~ + suggestion: ~ fixable: false location: row: 361 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 389 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `test`, `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 425 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `test`, `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 440 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `a`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 459 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 489 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 c2c4e05648..574d074691 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OverloadWithDocstring body: "Function decorated with `@overload` shouldn't contain a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: OverloadWithDocstring body: "Function decorated with `@overload` shouldn't contain a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: OverloadWithDocstring body: "Function decorated with `@overload` shouldn't contain a docstring" - commit: ~ + suggestion: ~ fixable: false location: row: 110 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 c44c3ee1f1..3904d446a9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: EmptyDocstring body: Docstring is empty - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: EmptyDocstring body: Docstring is empty - commit: ~ + suggestion: ~ fixable: false location: row: 74 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: EmptyDocstring body: Docstring is empty - commit: ~ + suggestion: ~ fixable: false location: row: 80 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 53fa1712d4..87dedbc2c4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TripleSingleQuotes body: "Use triple double quotes `\"\"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 e8f2e329a7..092c96dde8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 65 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 77 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `*args`" - commit: ~ + suggestion: ~ fixable: false location: row: 108 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 e8f2e329a7..092c96dde8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument descriptions in the docstring: `y`, `z`" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 52 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 65 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `y`" - commit: ~ + suggestion: ~ fixable: false location: row: 77 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `x`" - commit: ~ + suggestion: ~ fixable: false location: row: 98 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UndocumentedParam body: "Missing argument description in the docstring: `*args`" - commit: ~ + suggestion: ~ fixable: false location: row: 108 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 6fcae15420..bf44e0e586 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`functools` imported but unused" - commit: "Remove unused import: `functools`" + suggestion: "Remove unused import: `functools`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`collections.OrderedDict` imported but unused" - commit: "Remove unused import: `collections.OrderedDict`" + suggestion: "Remove unused import: `collections.OrderedDict`" fixable: true location: row: 6 @@ -47,7 +47,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`logging.handlers` imported but unused" - commit: "Remove unused import: `logging.handlers`" + suggestion: "Remove unused import: `logging.handlers`" fixable: true location: row: 12 @@ -67,7 +67,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`shelve` imported but unused" - commit: "Remove unused import: `shelve`" + suggestion: "Remove unused import: `shelve`" fixable: true location: row: 32 @@ -87,7 +87,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`importlib` imported but unused" - commit: "Remove unused import: `importlib`" + suggestion: "Remove unused import: `importlib`" fixable: true location: row: 33 @@ -107,7 +107,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`pathlib` imported but unused" - commit: "Remove unused import: `pathlib`" + suggestion: "Remove unused import: `pathlib`" fixable: true location: row: 37 @@ -127,7 +127,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`pickle` imported but unused" - commit: "Remove unused import: `pickle`" + suggestion: "Remove unused import: `pickle`" fixable: true location: row: 52 @@ -147,7 +147,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`x` imported but unused" - commit: "Remove unused import: `x`" + suggestion: "Remove unused import: `x`" fixable: true location: row: 93 @@ -167,7 +167,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`y` imported but unused" - commit: "Remove unused import: `y`" + suggestion: "Remove unused import: `y`" fixable: true location: row: 94 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 4505f3ab9e..996cba05d7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`a.b.c` imported but unused" - commit: "Remove unused import: `a.b.c`" + suggestion: "Remove unused import: `a.b.c`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`d.e.f` imported but unused" - commit: "Remove unused import: `d.e.f`" + suggestion: "Remove unused import: `d.e.f`" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`h.i` imported but unused" - commit: "Remove unused import: `h.i`" + suggestion: "Remove unused import: `h.i`" fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`j.k` imported but unused" - commit: "Remove unused import: `j.k`" + suggestion: "Remove unused import: `j.k`" fixable: true location: row: 5 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 52fd15b17f..05cc93ce00 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`.background.BackgroundTasks` imported but unused" - commit: "Remove unused import: `.background.BackgroundTasks`" + suggestion: "Remove unused import: `.background.BackgroundTasks`" fixable: true location: row: 7 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`.datastructures.UploadFile` imported but unused" - commit: "Remove unused import: `.datastructures.UploadFile`" + suggestion: "Remove unused import: `.datastructures.UploadFile`" fixable: true location: row: 10 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`background` imported but unused" - commit: "Remove unused import: `background`" + suggestion: "Remove unused import: `background`" fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`datastructures` imported but unused" - commit: "Remove unused import: `datastructures`" + suggestion: "Remove unused import: `datastructures`" fixable: true location: row: 19 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 27acd3597f..d37c97c8d6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.Union` imported but unused" - commit: "Remove unused import: `typing.Union`" + suggestion: "Remove unused import: `typing.Union`" fixable: true location: row: 30 @@ -27,7 +27,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.Awaitable` imported but unused" - commit: Remove unused import + suggestion: Remove unused import fixable: true location: row: 66 @@ -47,7 +47,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.AwaitableGenerator` imported but unused" - commit: Remove unused import + suggestion: Remove unused import fixable: true location: row: 66 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 ed23fab9a9..67906f90ea 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo.baz` imported but unused" - commit: "Remove unused import: `foo.baz`" + suggestion: "Remove unused import: `foo.baz`" fixable: true location: row: 4 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 5fd19c56cc..46f5f7e9d0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImportShadowedByLoopVar body: "Import `os` from line 1 shadowed by loop variable" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ImportShadowedByLoopVar body: "Import `path` from line 2 shadowed by loop variable" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 f597784063..97e57eefff 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImportStar body: "`from F634 import *` used; unable to detect undefined names" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ImportStar body: "`from F634 import *` used; unable to detect undefined names" - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 8d2ee56f09..00540ae80b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LateFutureImport body: "`from __future__` imports must occur at the beginning of the file" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LateFutureImport body: "`from __future__` imports must occur at the beginning of the file" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 d6aff2ef54..1d657f1e63 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImportStarUsage body: "`name` may be undefined, or defined from star imports: `mymodule`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ImportStarUsage body: "`a` may be undefined, or defined from star imports: `mymodule`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 91df012fcd..4b08e944bc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImportStarNotPermitted body: "`from F634 import *` only allowed at module level" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ImportStarNotPermitted body: "`from F634 import *` only allowed at module level" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 5a46b3f0e6..b09a80f9cc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FutureFeatureNotDefined body: "Future feature `non_existent_feature` is not defined" - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 e6acd61e04..db23c4bbbf 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatInvalidFormat body: "`%`-format string has invalid format string: incomplete format" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 610045767e..6a234ce4d6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 de35a49ab6..5fbe4c9b6f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedMapping body: "`%`-format string expected mapping but got sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 2046f54c81..8d90f66e44 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedSequence body: "`%`-format string expected sequence but got mapping" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedSequence body: "`%`-format string expected sequence but got mapping" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedSequence body: "`%`-format string expected sequence but got mapping" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 2d4f9bd9a3..eb9482cd86 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExpectedSequence body: "`%`-format string expected sequence but got mapping" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 3ba845d50f..4ce003bf45 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExtraNamedArguments body: "`%`-format string has unused named argument(s): b" - commit: "Remove extra named arguments: b" + suggestion: "Remove extra named arguments: b" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: PercentFormatExtraNamedArguments body: "`%`-format string has unused named argument(s): b" - commit: "Remove extra named arguments: b" + suggestion: "Remove extra named arguments: b" fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: PercentFormatExtraNamedArguments body: "`%`-format string has unused named argument(s): b" - commit: "Remove extra named arguments: b" + suggestion: "Remove extra named arguments: b" fixable: true location: row: 9 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 3e12ec3f8a..478a4b2758 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatExtraNamedArguments body: "`%`-format string has unused named argument(s): baz" - commit: "Remove extra named arguments: baz" + suggestion: "Remove extra named arguments: baz" fixable: true location: row: 8 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 3cfb6c503d..c17bd63ad3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatMissingArgument body: "`%`-format string is missing argument(s) for placeholder(s): bar" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 ba2c6eb020..c0b03a36b9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatMixedPositionalAndNamed body: "`%`-format string has mixed positional and named placeholders" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PercentFormatMixedPositionalAndNamed body: "`%`-format string has mixed positional and named placeholders" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PercentFormatMixedPositionalAndNamed body: "`%`-format string has mixed positional and named placeholders" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 5a42f28455..850e30d434 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatPositionalCountMismatch body: "`%`-format string has 2 placeholder(s) but 1 substitution(s)" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PercentFormatPositionalCountMismatch body: "`%`-format string has 2 placeholder(s) but 3 substitution(s)" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 c770c1a9a5..7ec0566b8c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatStarRequiresSequence body: "`%`-format string `*` specifier requires sequence" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 6cb0785bad..119a6f2763 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PercentFormatUnsupportedFormatCharacter body: "`%`-format string has unsupported format character `j`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 c9ac706c8c..9cc9845644 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Single '{' encountered in format string" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Single '}' encountered in format string" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Expected '}' before end of string" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Max string recursion exceeded" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Empty attribute in format string" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Empty attribute in format string" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: StringDotFormatInvalidFormat body: "`.format` call has invalid format string: Empty attribute in format string" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 bd6ddc1160..3a5f720fce 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraNamedArguments body: "`.format` call has unused named argument(s): bar" - commit: "Remove extra named arguments: bar" + suggestion: "Remove extra named arguments: bar" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraNamedArguments body: "`.format` call has unused named argument(s): spam" - commit: "Remove extra named arguments: spam" + suggestion: "Remove extra named arguments: spam" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraNamedArguments body: "`.format` call has unused named argument(s): eggs, ham" - commit: "Remove extra named arguments: eggs, ham" + suggestion: "Remove extra named arguments: eggs, ham" fixable: true location: row: 4 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 1d8d89f087..8d4b0172e3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 1" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 0, 2" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 2" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 1" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 1" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 1, 2" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: StringDotFormatExtraPositionalArguments body: "`.format` call has unused arguments at position(s): 2" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 c40e458354..223e944fa4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): 2" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): bar" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): bar" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): 0, bar" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: StringDotFormatMissingArguments body: "`.format` call is missing argument(s) for placeholder(s): 0, bar" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 5803331134..174646994a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: StringDotFormatMixingAutomatic body: "`.format` string mixes automatic and manual numbering" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: StringDotFormatMixingAutomatic body: "`.format` string mixes automatic and manual numbering" - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 f3f1da4e3d..2b6686884f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 13 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 16 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 17 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 19 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 25 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 34 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 35 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 36 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 37 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 38 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: FStringMissingPlaceholders body: f-string without any placeholders - commit: "Remove extraneous `f` prefix" + suggestion: "Remove extraneous `f` prefix" fixable: true location: row: 39 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 1a522f7e34..f47ed6f68a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `1` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `b\"123\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 18 @@ -90,7 +90,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -103,7 +103,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -116,7 +116,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 25 @@ -136,7 +136,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -149,7 +149,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 31 @@ -169,7 +169,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -182,7 +182,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -195,7 +195,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -208,7 +208,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -221,7 +221,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -234,7 +234,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 45 @@ -254,7 +254,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 49 @@ -274,7 +274,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyLiteral body: "Dictionary key literal `\"a\"` repeated" - commit: "Remove repeated key literal `\"a\"`" + suggestion: "Remove repeated key literal `\"a\"`" fixable: true location: row: 50 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 9fbd02d42c..305cdf4132 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 13 @@ -64,7 +64,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -77,7 +77,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -90,7 +90,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 20 @@ -110,7 +110,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -123,7 +123,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 26 @@ -143,7 +143,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -156,7 +156,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -169,7 +169,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -182,7 +182,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 35 @@ -202,7 +202,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -215,7 +215,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -228,7 +228,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -241,7 +241,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 44 @@ -261,7 +261,7 @@ expression: diagnostics - kind: name: MultiValueRepeatedKeyVariable body: "Dictionary key `a` repeated" - commit: "Remove repeated key `a`" + suggestion: "Remove repeated key `a`" fixable: true location: row: 45 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 e245f46177..0766a78568 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TwoStarredExpressions body: Two starred expressions in assignment - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 5a1667fc7f..658a30b929 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AssertTuple body: "Assert test is a non-empty tuple, which is always `True`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AssertTuple body: "Assert test is a non-empty tuple, which is always `True`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 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 cc8b28d68f..ca090efb58 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `!=` to compare constant literals" - commit: "Replace `is not` with `!=`" + suggestion: "Replace `is not` with `!=`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `!=` to compare constant literals" - commit: "Replace `is not` with `!=`" + suggestion: "Replace `is not` with `!=`" fixable: true location: row: 7 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 17 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: IsLiteral body: "Use `==` to compare constant literals" - commit: "Replace `is` with `==`" + suggestion: "Replace `is` with `==`" fixable: true location: row: 20 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 4db61aaa0f..143a1ece57 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidPrintSyntax body: "Use of `>>` is invalid with `print` function" - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 f6302a57c2..d8b5f883fc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IfTuple body: "If test is a tuple, which is always `True`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: IfTuple body: "If test is a tuple, which is always `True`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 eeeb98d82c..b34152f090 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BreakOutsideLoop body: "`break` outside loop" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BreakOutsideLoop body: "`break` outside loop" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BreakOutsideLoop body: "`break` outside loop" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BreakOutsideLoop body: "`break` outside loop" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 3350102ab6..a99dcce3ea 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ContinueOutsideLoop body: "`continue` not properly in loop" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ContinueOutsideLoop body: "`continue` not properly in loop" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ContinueOutsideLoop body: "`continue` not properly in loop" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ContinueOutsideLoop body: "`continue` not properly in loop" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 a738297955..19c160ef6c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: YieldOutsideFunction body: "`yield` statement outside of a function" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: YieldOutsideFunction body: "`yield` statement outside of a function" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: YieldOutsideFunction body: "`yield from` statement outside of a function" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: YieldOutsideFunction body: "`await` statement outside of a function" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 9121dfdddb..1623807514 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReturnOutsideFunction body: "`return` statement outside of a function/method" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ReturnOutsideFunction body: "`return` statement outside of a function/method" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 5413bf7640..839fe65c1b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DefaultExceptNotLast body: "An `except` block as not the last exception handler" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DefaultExceptNotLast body: "An `except` block as not the last exception handler" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DefaultExceptNotLast body: "An `except` block as not the last exception handler" - commit: ~ + suggestion: ~ fixable: false location: row: 19 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 f83a235393..7abd45ef9f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ForwardAnnotationSyntaxError body: "Syntax error in forward annotation: `///`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 3c385eaa0a..dcbae234d0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `bar` from line 6" - commit: ~ + suggestion: ~ fixable: false location: row: 10 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 23e463e108..a25bc30b53 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `FU` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 e34c74799f..1e4ef1d35f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `mixer` from line 2" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 fcc80ea922..bc9a8d5255 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 49c6bf0f1e..fd70244356 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 3" - commit: ~ + suggestion: ~ fixable: false location: row: 8 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 38d3144809..5ae127d83d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 2" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 6" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 8f3a7c6007..b521c2d22b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `FU` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 ebaf39ec0f..7f0942c349 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `Sequence` from line 26" - commit: ~ + suggestion: ~ fixable: false location: row: 32 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 bd2a44e72f..d10e460688 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 bd2a44e72f..d10e460688 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 bfd3290d6d..f215f9172a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `fu` from line 1" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 3019ae248e..f9ca75790e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `os` from line 5" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 e4f9f595b3..ec4d243b9f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedWhileUnused body: "Redefinition of unused `os` from line 4" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 2ae928577d..9e379a7431 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `self`" - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `numeric_string`" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Bar`" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `TOMATO`" - commit: ~ + suggestion: ~ fixable: false location: row: 83 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `B`" - commit: ~ + suggestion: ~ fixable: false location: row: 87 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `B`" - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `B`" - commit: ~ + suggestion: ~ fixable: false location: row: 92 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `B`" - commit: ~ + suggestion: ~ fixable: false location: row: 93 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `PEP593Test123`" - commit: ~ + suggestion: ~ fixable: false location: row: 115 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 123 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `bar`" - commit: ~ + suggestion: ~ fixable: false location: row: 123 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 e39d88bab2..37d0c8883c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 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 cdea2cb300..5c04e94882 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `os`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Baz`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 9f12e67142..b2c3135b21 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `os`" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Baz`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 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 df701b14c9..7ebf1ccc8d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 fdf346fb33..e53911d9d4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `key`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `value`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 6de1f22c94..adfb3fa013 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Model`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 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 3e42efe0d8..2c32a17a7e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `InnerClass`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 204ac6783a..93de75646e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Undefined`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Undefined`" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Undefined`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 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 b7ab93f034..6becc38817 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `captured`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 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 96e4228e75..c1de83dff0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedExport body: "Undefined name `b` in `__all__`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 96e4228e75..c1de83dff0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedExport body: "Undefined name `b` in `__all__`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 443f8719b1..d03ab14a18 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedLocal body: "Local variable `my_var` referenced before assignment" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 d44e197afe..a25da2b540 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `e` is assigned to but never used" - commit: "Remove assignment to unused variable `e`" + suggestion: "Remove assignment to unused variable `e`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `z` is assigned to but never used" - commit: "Remove assignment to unused variable `z`" + suggestion: "Remove assignment to unused variable `z`" fixable: true location: row: 16 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `foo` is assigned to but never used" - commit: "Remove assignment to unused variable `foo`" + suggestion: "Remove assignment to unused variable `foo`" fixable: true location: row: 20 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `a` is assigned to but never used" - commit: "Remove assignment to unused variable `a`" + suggestion: "Remove assignment to unused variable `a`" fixable: true location: row: 21 @@ -78,7 +78,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `b` is assigned to but never used" - commit: "Remove assignment to unused variable `b`" + suggestion: "Remove assignment to unused variable `b`" fixable: true location: row: 21 @@ -91,7 +91,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `baz` is assigned to but never used" - commit: "Remove assignment to unused variable `baz`" + suggestion: "Remove assignment to unused variable `baz`" fixable: true location: row: 26 @@ -111,7 +111,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `b` is assigned to but never used" - commit: "Remove assignment to unused variable `b`" + suggestion: "Remove assignment to unused variable `b`" fixable: true location: row: 51 @@ -131,7 +131,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `my_file` is assigned to but never used" - commit: "Remove assignment to unused variable `my_file`" + suggestion: "Remove assignment to unused variable `my_file`" fixable: true location: row: 79 @@ -151,7 +151,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `my_file` is assigned to but never used" - commit: "Remove assignment to unused variable `my_file`" + suggestion: "Remove assignment to unused variable `my_file`" fixable: true location: row: 85 @@ -171,7 +171,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `msg3` is assigned to but never used" - commit: "Remove assignment to unused variable `msg3`" + suggestion: "Remove assignment to unused variable `msg3`" fixable: true location: row: 102 @@ -191,7 +191,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `Baz` is assigned to but never used" - commit: "Remove assignment to unused variable `Baz`" + suggestion: "Remove assignment to unused variable `Baz`" fixable: true location: row: 115 @@ -211,7 +211,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 122 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 ad601f322e..b5a9eb03e0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `coords` is assigned to but never used" - commit: "Remove assignment to unused variable `coords`" + suggestion: "Remove assignment to unused variable `coords`" fixable: true location: row: 16 @@ -51,7 +51,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `coords` is assigned to but never used" - commit: "Remove assignment to unused variable `coords`" + suggestion: "Remove assignment to unused variable `coords`" fixable: true location: row: 20 @@ -71,7 +71,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `a` is assigned to but never used" - commit: "Remove assignment to unused variable `a`" + suggestion: "Remove assignment to unused variable `a`" fixable: true location: row: 24 @@ -84,7 +84,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `b` is assigned to but never used" - commit: "Remove assignment to unused variable `b`" + suggestion: "Remove assignment to unused variable `b`" fixable: true location: row: 24 @@ -97,7 +97,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 24 @@ -110,7 +110,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 24 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 d35b157ff5..ef855b950c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 13 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 14 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x1` is assigned to but never used" - commit: "Remove assignment to unused variable `x1`" + suggestion: "Remove assignment to unused variable `x1`" fixable: true location: row: 21 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x3` is assigned to but never used" - commit: "Remove assignment to unused variable `x3`" + suggestion: "Remove assignment to unused variable `x3`" fixable: true location: row: 27 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y3` is assigned to but never used" - commit: "Remove assignment to unused variable `y3`" + suggestion: "Remove assignment to unused variable `y3`" fixable: true location: row: 27 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `z3` is assigned to but never used" - commit: "Remove assignment to unused variable `z3`" + suggestion: "Remove assignment to unused variable `z3`" fixable: true location: row: 27 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x1` is assigned to but never used" - commit: "Remove assignment to unused variable `x1`" + suggestion: "Remove assignment to unused variable `x1`" fixable: true location: row: 32 @@ -178,7 +178,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y1` is assigned to but never used" - commit: "Remove assignment to unused variable `y1`" + suggestion: "Remove assignment to unused variable `y1`" fixable: true location: row: 32 @@ -191,7 +191,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `coords2` is assigned to but never used" - commit: "Remove assignment to unused variable `coords2`" + suggestion: "Remove assignment to unused variable `coords2`" fixable: true location: row: 33 @@ -211,7 +211,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `coords3` is assigned to but never used" - commit: "Remove assignment to unused variable `coords3`" + suggestion: "Remove assignment to unused variable `coords3`" fixable: true location: row: 34 @@ -231,7 +231,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x1` is assigned to but never used" - commit: "Remove assignment to unused variable `x1`" + suggestion: "Remove assignment to unused variable `x1`" fixable: true location: row: 40 @@ -251,7 +251,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x2` is assigned to but never used" - commit: "Remove assignment to unused variable `x2`" + suggestion: "Remove assignment to unused variable `x2`" fixable: true location: row: 45 @@ -271,7 +271,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 50 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 56 @@ -311,7 +311,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 61 @@ -331,7 +331,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 67 @@ -351,7 +351,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `cm` is assigned to but never used" - commit: "Remove assignment to unused variable `cm`" + suggestion: "Remove assignment to unused variable `cm`" fixable: true location: row: 72 @@ -371,7 +371,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `cm` is assigned to but never used" - commit: "Remove assignment to unused variable `cm`" + suggestion: "Remove assignment to unused variable `cm`" fixable: true location: row: 77 @@ -391,7 +391,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `toplevel` is assigned to but never used" - commit: "Remove assignment to unused variable `toplevel`" + suggestion: "Remove assignment to unused variable `toplevel`" fixable: true location: row: 87 @@ -411,7 +411,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `toplevel` is assigned to but never used" - commit: "Remove assignment to unused variable `toplevel`" + suggestion: "Remove assignment to unused variable `toplevel`" fixable: true location: row: 93 @@ -431,7 +431,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `tt` is assigned to but never used" - commit: "Remove assignment to unused variable `tt`" + suggestion: "Remove assignment to unused variable `tt`" fixable: true location: row: 93 @@ -451,7 +451,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `toplevel` is assigned to but never used" - commit: "Remove assignment to unused variable `toplevel`" + suggestion: "Remove assignment to unused variable `toplevel`" fixable: true location: row: 97 @@ -471,7 +471,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `toplevel` is assigned to but never used" - commit: "Remove assignment to unused variable `toplevel`" + suggestion: "Remove assignment to unused variable `toplevel`" fixable: true location: row: 101 @@ -491,7 +491,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `toplevel` is assigned to but never used" - commit: "Remove assignment to unused variable `toplevel`" + suggestion: "Remove assignment to unused variable `toplevel`" fixable: true location: row: 105 @@ -511,7 +511,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `tt` is assigned to but never used" - commit: "Remove assignment to unused variable `tt`" + suggestion: "Remove assignment to unused variable `tt`" fixable: true location: row: 105 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 a3f367845b..1c19b4677d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedAnnotation body: "Local variable `name` is annotated but never used" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnusedAnnotation body: "Local variable `age` is annotated but never used" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 1c4edb8bb5..5946d80c9d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaiseNotImplemented body: "`raise NotImplemented` should be `raise NotImplementedError`" - commit: "Use `raise NotImplementedError`" + suggestion: "Use `raise NotImplementedError`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RaiseNotImplemented body: "`raise NotImplemented` should be `raise NotImplementedError`" - commit: "Use `raise NotImplementedError`" + suggestion: "Use `raise NotImplementedError`" fixable: true location: row: 6 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 cc68cb95c3..0892fb0e1b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `_`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 601bf6ad50..c2408db849 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `db`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 9c648f0aa2..92a021c342 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Class`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 967857a8bb..51757829ed 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `e` is assigned to but never used" - commit: "Remove assignment to unused variable `e`" + suggestion: "Remove assignment to unused variable `e`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `foo` is assigned to but never used" - commit: "Remove assignment to unused variable `foo`" + suggestion: "Remove assignment to unused variable `foo`" fixable: true location: row: 20 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `a` is assigned to but never used" - commit: "Remove assignment to unused variable `a`" + suggestion: "Remove assignment to unused variable `a`" fixable: true location: row: 21 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `b` is assigned to but never used" - commit: "Remove assignment to unused variable `b`" + suggestion: "Remove assignment to unused variable `b`" fixable: true location: row: 21 @@ -71,7 +71,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `baz` is assigned to but never used" - commit: "Remove assignment to unused variable `baz`" + suggestion: "Remove assignment to unused variable `baz`" fixable: true location: row: 26 @@ -91,7 +91,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `_` is assigned to but never used" - commit: "Remove assignment to unused variable `_`" + suggestion: "Remove assignment to unused variable `_`" fixable: true location: row: 35 @@ -111,7 +111,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `__` is assigned to but never used" - commit: "Remove assignment to unused variable `__`" + suggestion: "Remove assignment to unused variable `__`" fixable: true location: row: 36 @@ -131,7 +131,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `_discarded` is assigned to but never used" - commit: "Remove assignment to unused variable `_discarded`" + suggestion: "Remove assignment to unused variable `_discarded`" fixable: true location: row: 37 @@ -151,7 +151,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `b` is assigned to but never used" - commit: "Remove assignment to unused variable `b`" + suggestion: "Remove assignment to unused variable `b`" fixable: true location: row: 51 @@ -171,7 +171,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `my_file` is assigned to but never used" - commit: "Remove assignment to unused variable `my_file`" + suggestion: "Remove assignment to unused variable `my_file`" fixable: true location: row: 79 @@ -191,7 +191,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `my_file` is assigned to but never used" - commit: "Remove assignment to unused variable `my_file`" + suggestion: "Remove assignment to unused variable `my_file`" fixable: true location: row: 85 @@ -211,7 +211,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `msg3` is assigned to but never used" - commit: "Remove assignment to unused variable `msg3`" + suggestion: "Remove assignment to unused variable `msg3`" fixable: true location: row: 102 @@ -231,7 +231,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `Baz` is assigned to but never used" - commit: "Remove assignment to unused variable `Baz`" + suggestion: "Remove assignment to unused variable `Baz`" fixable: true location: row: 115 @@ -251,7 +251,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `y` is assigned to but never used" - commit: "Remove assignment to unused variable `y`" + suggestion: "Remove assignment to unused variable `y`" fixable: true location: row: 122 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 13cf65afef..2702ad2710 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`models.Nut` imported but unused" - commit: "Remove unused import: `models.Nut`" + suggestion: "Remove unused import: `models.Nut`" fixable: true location: row: 8 @@ -27,7 +27,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `Bar`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 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 75d9a20973..bf90f48fa7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo1` imported but unused" - commit: "Remove unused import: `foo1`" + suggestion: "Remove unused import: `foo1`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo2` imported but unused" - commit: "Remove unused import: `foo2`" + suggestion: "Remove unused import: `foo2`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo3` imported but unused" - commit: "Remove unused import: `foo3`" + suggestion: "Remove unused import: `foo3`" fixable: true location: row: 7 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo4` imported but unused" - commit: "Remove unused import: `foo4`" + suggestion: "Remove unused import: `foo4`" fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo5` imported but unused" - commit: "Remove unused import: `foo5`" + suggestion: "Remove unused import: `foo5`" fixable: true location: row: 16 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo6` imported but unused" - commit: "Remove unused import: `foo6`" + suggestion: "Remove unused import: `foo6`" fixable: true location: row: 21 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo7` imported but unused" - commit: "Remove unused import: `foo7`" + suggestion: "Remove unused import: `foo7`" fixable: true location: row: 26 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo8` imported but unused" - commit: "Remove unused import: `foo8`" + suggestion: "Remove unused import: `foo8`" fixable: true location: row: 30 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo9` imported but unused" - commit: "Remove unused import: `foo9`" + suggestion: "Remove unused import: `foo9`" fixable: true location: row: 31 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo10` imported but unused" - commit: "Remove unused import: `foo10`" + suggestion: "Remove unused import: `foo10`" fixable: true location: row: 35 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo11` imported but unused" - commit: "Remove unused import: `foo11`" + suggestion: "Remove unused import: `foo11`" fixable: true location: row: 40 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo12` imported but unused" - commit: "Remove unused import: `foo12`" + suggestion: "Remove unused import: `foo12`" fixable: true location: row: 46 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`foo13` imported but unused" - commit: "Remove unused import: `foo13`" + suggestion: "Remove unused import: `foo13`" fixable: true location: row: 51 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 27e9e00d7f..ff559d928f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 33 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 8188ae0075..78ec903d88 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UndefinedName body: "Undefined name `foo`" - commit: ~ + suggestion: ~ fixable: false location: row: 26 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 ef5505d8c8..47cb5e844b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NoEval body: "No builtin `eval()` allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NoEval body: "No builtin `eval()` allowed" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 20ef99b494..d9bbc05eb8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedLogWarn body: "`warn` is deprecated in favor of `warning`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DeprecatedLogWarn body: "`warn` is deprecated in favor of `warning`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 4aa5555a4b..7fac68acca 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlanketTypeIgnore body: Use specific rule codes when ignoring type issues - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BlanketTypeIgnore body: Use specific rule codes when ignoring type issues - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BlanketTypeIgnore body: Use specific rule codes when ignoring type issues - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 cce7b9d88b..f0580d9171 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BlanketNOQA body: "Use specific rule codes when using `noqa`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 407cc6ab9b..8f1b751fd6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 19 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 20 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 22 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 23 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UselessImportAlias body: Import alias does not rename original package - commit: Remove import alias + suggestion: Remove import alias fixable: true location: row: 25 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 8d1cb89839..2ab715103f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryDirectLambdaCall body: Lambda expression called directly. Execute the expression inline instead. - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UnnecessaryDirectLambdaCall body: Lambda expression called directly. Execute the expression inline instead. - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UnnecessaryDirectLambdaCall body: Lambda expression called directly. Execute the expression inline instead. - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 161c363ae1..b8d866d607 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: YieldInInit body: "`__init__` method is a generator" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: YieldInInit body: "`__init__` method is a generator" - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 e4494fe4f3..286a00647f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReturnInInit body: "Explicit return in `__init__`" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ReturnInInit body: "Explicit return in `__init__`" - commit: ~ + suggestion: ~ fixable: false location: row: 22 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 546ef40612..4105992e10 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NonlocalWithoutBinding body: "Nonlocal name `x` found without binding" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: NonlocalWithoutBinding body: "Nonlocal name `y` found without binding" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: NonlocalWithoutBinding body: "Nonlocal name `y` found without binding" - commit: ~ + suggestion: ~ fixable: false location: row: 19 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_used_prior_global_declaration.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_used_prior_global_declaration.py.snap index 2dc7cbaa33..b1a014b6b8 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_used_prior_global_declaration.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_used_prior_global_declaration.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 7" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 17" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 25" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 35" - commit: ~ + suggestion: ~ fixable: false location: row: 33 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 43" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 53" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 61" - commit: ~ + suggestion: ~ fixable: false location: row: 59 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 71" - commit: ~ + suggestion: ~ fixable: false location: row: 69 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 79" - commit: ~ + suggestion: ~ fixable: false location: row: 77 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 89" - commit: ~ + suggestion: ~ fixable: false location: row: 87 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 97" - commit: ~ + suggestion: ~ fixable: false location: row: 95 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 107" - commit: ~ + suggestion: ~ fixable: false location: row: 105 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: UsedPriorGlobalDeclaration body: "Name `x` is used prior to global declaration on line 114" - commit: ~ + suggestion: ~ fixable: false location: row: 113 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 8adcb98d99..c0f2133f35 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidAllObject body: "Invalid object in `__all__`, must contain only strings" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidAllObject body: "Invalid object in `__all__`, must contain only strings" - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 d4aa768ce8..c680941527 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: InvalidAllFormat body: "Invalid format for `__all__`, must be `tuple` or `list`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 7528697964..54a6caa18b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AwaitOutsideAsync body: "`await` should be used within an async function" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AwaitOutsideAsync body: "`await` should be used within an async function" - commit: ~ + suggestion: ~ fixable: false location: row: 25 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 c27bca15d6..3dfe66d106 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingTooManyArgs body: "Too many arguments for `logging` format string" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: LoggingTooManyArgs body: "Too many arguments for `logging` format string" - commit: ~ + suggestion: ~ fixable: false location: row: 5 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 339fc09583..ef42fd6718 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LoggingTooFewArgs body: "Not enough arguments for `logging` format string" - commit: ~ + suggestion: ~ fixable: false location: row: 3 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 21b2a187d0..84aeb65de1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 4 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 10 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BadStringFormatType body: Format type does not match argument type - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 c5437f350a..a9045f4a83 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 14 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 26 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 49 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `strip` call contains duplicate characters" - commit: ~ + suggestion: ~ fixable: false location: row: 61 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `lstrip` call contains duplicate characters (did you mean `removeprefix`?)" - commit: ~ + suggestion: ~ fixable: false location: row: 64 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: BadStrStripCall body: "String `rstrip` call contains duplicate characters (did you mean `removesuffix`?)" - commit: ~ + suggestion: ~ fixable: false location: row: 67 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 8b10750a4d..dd70149cc7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: BidirectionalUnicode body: Contains control characters that can permit obfuscated code - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: BidirectionalUnicode body: Contains control characters that can permit obfuscated code - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: BidirectionalUnicode body: Contains control characters that can permit obfuscated code - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: BidirectionalUnicode body: Contains control characters that can permit obfuscated code - commit: ~ + suggestion: ~ fixable: false location: row: 14 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 da85413207..ddef7164e9 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `100 == 100`" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 == 3`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 != 3`" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `4 == 3`" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 > 0`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 >= 0`" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 < 0`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `1 <= 0`" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `\"hello\" == \"\"`" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: ComparisonOfConstant body: "Two constants compared in a comparison, consider replacing `True == False`" - commit: ~ + suggestion: ~ fixable: false location: row: 58 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 6571eb967d..f181a1f07b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PropertyWithParameters body: Cannot have defined parameters for properties - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PropertyWithParameters body: Cannot have defined parameters for properties - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PropertyWithParameters body: Cannot have defined parameters for properties - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 a18ad5b133..c16c6d990c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingFromImport body: "Use `from os import path` in lieu of alias" - commit: "Replace with `from os import path`" + suggestion: "Replace with `from os import path`" fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingFromImport body: "Use `from foo.bar import foobar` in lieu of alias" - commit: "Replace with `from foo.bar import foobar`" + suggestion: "Replace with `from foo.bar import foobar`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConsiderUsingFromImport body: "Use `from foo.bar import foobar` in lieu of alias" - commit: ~ + suggestion: ~ fixable: false location: row: 12 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 f0ce57eb4e..f0b94fef5d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyReturnStatements body: Too many return statements (11/6) - commit: ~ + suggestion: ~ fixable: false location: row: 4 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 2eca54b9b0..ae130f88de 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyBranches body: Too many branches (13/12) - commit: ~ + suggestion: ~ fixable: false location: row: 6 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 9b4f32d754..e43addadf7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (8/5) - commit: ~ + suggestion: ~ fixable: false location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (6/5) - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (6/5) - commit: ~ + suggestion: ~ fixable: false location: row: 33 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 c7f743dbea..4cd6c40b28 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyStatements body: Too many statements (52/50) - commit: ~ + suggestion: ~ fixable: false location: row: 5 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_consider_merging_isinstance.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_consider_merging_isinstance.py.snap index da287fce37..6e1ab26b10 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_consider_merging_isinstance.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_consider_merging_isinstance.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[3], (float, int))`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[4], (float, int))`" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[5], (float, int))`" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[10], (list, str))`" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[11], (float, int))`" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ConsiderMergingIsinstance body: "Merge these isinstance calls: `isinstance(var[12], (float, int, list))`" - commit: ~ + suggestion: ~ fixable: false location: row: 30 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_0.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_0.py.snap index e9f24a212b..8aa20e1524 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_0.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_0.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 2 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 6 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 7 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_1.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_1.py.snap index 7f77ad7d59..f7eca30fd1 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_1.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_1.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 9 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_2.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_2.py.snap index 6804a8263b..6e9a6c7291 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_2.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_2.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 9 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_3.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_3.py.snap index f540aa4ca2..bc69bd958d 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_3.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_3.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 9 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_4.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_4.py.snap index 9767238a47..2799ef4576 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_4.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_4.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 9 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_5.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_5.py.snap index f540aa4ca2..bc69bd958d 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_5.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_5.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 9 diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_6.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_6.py.snap index ea6dc39fad..04a718aa44 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_6.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_consider_using_sys_exit_6.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `exit`" - commit: "Replace `exit` with `sys.exit()`" + suggestion: "Replace `exit` with `sys.exit()`" fixable: true location: row: 1 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ConsiderUsingSysExit body: "Use `sys.exit()` instead of `quit`" - commit: "Replace `quit` with `sys.exit()`" + suggestion: "Replace `quit` with `sys.exit()`" fixable: true location: row: 2 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 ea8e6f0acf..2fc6598d5a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing 10 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing 2 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing -2 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing +2 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing 3.141592653589793 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 65 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 55f8cae990..cd5b71bb71 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: CollapsibleElseIf body: "Consider using `elif` instead of `else` then `if` to remove one indentation level" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: CollapsibleElseIf body: "Consider using `elif` instead of `else` then `if` to remove one indentation level" - commit: ~ + suggestion: ~ fixable: false location: row: 46 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 8ae5e19a21..47d9afeaba 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 42 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 88 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: UselessElseOnLoop body: "`else` clause on loop without a `break` statement; remove the `else` and de-indent all the code inside it" - commit: ~ + suggestion: ~ fixable: false location: row: 98 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 995d894894..7b67d36f4e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: GlobalVariableNotAssigned body: "Using global for `X` but no assignment is done" - commit: ~ + suggestion: ~ fixable: false location: row: 5 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: GlobalVariableNotAssigned body: "Using global for `X` but no assignment is done" - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 99eb7380d8..40bcbf8e99 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `CONSTANT` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 17 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `sys` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `namedtuple` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `CONSTANT` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 36 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `CONSTANT` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 43 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `CONSTANT` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `FUNC` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 60 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: GlobalStatement body: "Using the global statement to update `CLASS` is discouraged" - commit: ~ + suggestion: ~ fixable: false location: row: 70 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 417d472e99..e95084fe18 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`with` statement variable `i` overwritten by `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `i` overwritten by `with` statement target" - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `with` statement variable `i` overwritten by inner `with` statement target" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 40 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `j` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 41 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 50 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 54 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 68 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 73 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `j` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 78 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `j` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 95 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 112 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "Outer `for` loop variable `i` overwritten by inner `for` loop target" - commit: ~ + suggestion: ~ fixable: false location: row: 118 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a[0]` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 133 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a['i']` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 138 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a.i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 143 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a.i.j` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 148 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a.i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 153 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: RedefinedLoopName body: "`for` loop variable `a.i` overwritten by assignment target" - commit: ~ + suggestion: ~ fixable: false location: row: 155 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 cdc2b2e921..5c3725765a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing \"Hunter2\" with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 59 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing 3.141592653589793 with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 65 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: MagicValueComparison body: "Magic value used in comparison, consider replacing b\"something\" with a constant variable" - commit: ~ + suggestion: ~ fixable: false location: row: 74 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 56f237a4d4..b01b0aaae8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (6/4) - commit: ~ + suggestion: ~ fixable: false location: row: 3 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (6/4) - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 32ab910faf..cf25b6cd3a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyArguments body: Too many arguments to function call (6/5) - commit: ~ + suggestion: ~ fixable: false location: row: 9 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 0816a58db5..57b5398732 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyBranches body: Too many branches (2/1) - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TooManyBranches body: Too many branches (2/1) - commit: ~ + suggestion: ~ fixable: false location: row: 15 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 7c632aebc7..de06f89203 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyReturnStatements body: Too many return statements (2/1) - commit: ~ + suggestion: ~ fixable: false location: row: 1 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 4f5543d2cd..b025184907 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TooManyStatements body: Too many statements (2/1) - commit: ~ + suggestion: ~ fixable: false location: row: 2 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: TooManyStatements body: Too many statements (3/1) - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: TooManyStatements body: Too many statements (2/1) - commit: ~ + suggestion: ~ fixable: false location: row: 7 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 1b476f0dd6..0916a7073a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessMetaclassType body: "`__metaclass__ = type` is implied" - commit: "Remove `__metaclass__ = type`" + suggestion: "Remove `__metaclass__ = type`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UselessMetaclassType body: "`__metaclass__ = type` is implied" - commit: "Remove `__metaclass__ = type`" + suggestion: "Remove `__metaclass__ = type`" fixable: true location: row: 6 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 8bde8dd3e0..1957ca50ad 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypeOfPrimitive body: "Use `str` instead of `type(...)`" - commit: "Replace `type(...)` with `str`" + suggestion: "Replace `type(...)` with `str`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TypeOfPrimitive body: "Use `bytes` instead of `type(...)`" - commit: "Replace `type(...)` with `bytes`" + suggestion: "Replace `type(...)` with `bytes`" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TypeOfPrimitive body: "Use `int` instead of `type(...)`" - commit: "Replace `type(...)` with `int`" + suggestion: "Replace `type(...)` with `int`" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: TypeOfPrimitive body: "Use `float` instead of `type(...)`" - commit: "Replace `type(...)` with `float`" + suggestion: "Replace `type(...)` with `float`" fixable: true location: row: 4 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: TypeOfPrimitive body: "Use `complex` instead of `type(...)`" - commit: "Replace `type(...)` with `complex`" + suggestion: "Replace `type(...)` with `complex`" fixable: true location: row: 5 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 a1fcb7040a..451a6e89fc 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 10 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 24 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 31 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 37 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 45 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 53 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 61 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 69 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 75 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 79 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 84 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 92 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 98 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `B` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 108 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 114 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 119 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 125 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: UselessObjectInheritance body: "Class `A` inherits from `object`" - commit: "Remove `object` inheritance" + suggestion: "Remove `object` inheritance" fixable: true location: row: 131 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 b448f474ac..5e84443a94 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedUnittestAlias body: "`assertEquals` is deprecated, use `assertEqual`" - commit: "Replace `assertEqual` with `assertEquals`" + suggestion: "Replace `assertEqual` with `assertEquals`" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DeprecatedUnittestAlias body: "`assertEquals` is deprecated, use `assertEqual`" - commit: "Replace `assertEqual` with `assertEquals`" + suggestion: "Replace `assertEqual` with `assertEquals`" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DeprecatedUnittestAlias body: "`failUnlessAlmostEqual` is deprecated, use `assertAlmostEqual`" - commit: "Replace `assertAlmostEqual` with `failUnlessAlmostEqual`" + suggestion: "Replace `assertAlmostEqual` with `failUnlessAlmostEqual`" fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DeprecatedUnittestAlias body: "`assertNotRegexpMatches` is deprecated, use `assertNotRegex`" - commit: "Replace `assertNotRegex` with `assertNotRegexpMatches`" + suggestion: "Replace `assertNotRegex` with `assertNotRegexpMatches`" fixable: true location: row: 10 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 a18fc068d3..d2eda83f7c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 18 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 25 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 36 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 c136617e2f..5c9997de7c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 10 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 14 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 14 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 18 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 22 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 26 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 47 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 2228fb0fd2..064e73350d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: SuperCallWithParameters body: "Use `super()` instead of `super(__class__, self)`" - commit: "Remove `__super__` parameters" + suggestion: "Remove `__super__` parameters" fixable: true location: row: 17 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: SuperCallWithParameters body: "Use `super()` instead of `super(__class__, self)`" - commit: "Remove `__super__` parameters" + suggestion: "Remove `__super__` parameters" fixable: true location: row: 18 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: SuperCallWithParameters body: "Use `super()` instead of `super(__class__, self)`" - commit: "Remove `__super__` parameters" + suggestion: "Remove `__super__` parameters" fixable: true location: row: 19 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: SuperCallWithParameters body: "Use `super()` instead of `super(__class__, self)`" - commit: "Remove `__super__` parameters" + suggestion: "Remove `__super__` parameters" fixable: true location: row: 36 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: SuperCallWithParameters body: "Use `super()` instead of `super(__class__, self)`" - commit: "Remove `__super__` parameters" + suggestion: "Remove `__super__` parameters" fixable: true location: row: 50 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 3e7aee7b5c..c3a460d22b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UTF8EncodingDeclaration body: UTF-8 encoding declaration is unnecessary - commit: Remove unnecessary coding comment + suggestion: Remove unnecessary coding comment fixable: true location: row: 1 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 e8a69d34ea..42f86ee89c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UTF8EncodingDeclaration body: UTF-8 encoding declaration is unnecessary - commit: Remove unnecessary coding comment + suggestion: Remove unnecessary coding comment fixable: true location: row: 2 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 c294dd095a..6bdcd5bbf1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` imports `generators`, `nested_scopes` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` imports `unicode_literals`, `with_statement` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` imports `absolute_import`, `division` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generator_stop` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 4 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` imports `generator_stop`, `print_function` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 5 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generators` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 6 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generator_stop` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 9 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generators` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 10 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generator_stop` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 13 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnnecessaryFutureImport body: "Unnecessary `__future__` import `generators` for target Python version" - commit: "Remove unnecessary `__future__` import" + suggestion: "Remove unnecessary `__future__` import" fixable: true location: row: 14 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 8cd61f5d72..922e3e4f4e 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: LRUCacheWithoutParameters body: "Unnecessary parameters to `functools.lru_cache`" - commit: Remove unnecessary parameters + suggestion: Remove unnecessary parameters fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: LRUCacheWithoutParameters body: "Unnecessary parameters to `functools.lru_cache`" - commit: Remove unnecessary parameters + suggestion: Remove unnecessary parameters fixable: true location: row: 10 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: LRUCacheWithoutParameters body: "Unnecessary parameters to `functools.lru_cache`" - commit: Remove unnecessary parameters + suggestion: Remove unnecessary parameters fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: LRUCacheWithoutParameters body: "Unnecessary parameters to `functools.lru_cache`" - commit: Remove unnecessary parameters + suggestion: Remove unnecessary parameters fixable: true location: row: 21 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 e80529cfaa..751fb400c8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 5 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 6 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 7 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 8 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 16 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 20 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 24 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 32 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 50 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 52 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 54 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 55 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 56 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 57 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: UnnecessaryEncodeUTF8 body: "Unnecessary call to `encode` as UTF-8" - commit: "Remove unnecessary `encode`" + suggestion: "Remove unnecessary `encode`" fixable: true location: row: 58 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 c43332ad7b..c667eb40b7 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 11 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 14 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 17 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 18 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 21 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 24 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 27 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 30 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 40 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: ConvertTypedDictFunctionalToClass body: "Convert `MyType` from `TypedDict` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 43 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 e885bd6f36..10161c5a5d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ConvertNamedTupleFunctionalToClass body: "Convert `MyType` from `NamedTuple` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ConvertNamedTupleFunctionalToClass body: "Convert `MyType` from `NamedTuple` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ConvertNamedTupleFunctionalToClass body: "Convert `MyType` from `NamedTuple` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 15 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ConvertNamedTupleFunctionalToClass body: "Convert `MyType` from `NamedTuple` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 28 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ConvertNamedTupleFunctionalToClass body: "Convert `MyType` from `NamedTuple` functional to class syntax" - commit: "Convert `MyType` to class syntax" + suggestion: "Convert `MyType` to class syntax" fixable: true location: row: 31 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 6c1d928872..c10dfd9933 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 3 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 4 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 5 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 6 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 7 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"w\"\"" - commit: "Replace with \"\"w\"\"" + suggestion: "Replace with \"\"w\"\"" fixable: true location: row: 8 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 10 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 12 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 14 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 16 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 18 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 20 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 22 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"w\"\"" - commit: "Replace with \"\"w\"\"" + suggestion: "Replace with \"\"w\"\"" fixable: true location: row: 24 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 27 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 28 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 30 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 32 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 35 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 35 @@ -445,7 +445,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 37 @@ -465,7 +465,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 37 @@ -485,7 +485,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 40 @@ -505,7 +505,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 41 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 42 @@ -545,7 +545,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 44 @@ -565,7 +565,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 46 @@ -585,7 +585,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 48 @@ -605,7 +605,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 51 @@ -625,7 +625,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 52 @@ -645,7 +645,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 53 @@ -665,7 +665,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 55 @@ -685,7 +685,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 57 @@ -705,7 +705,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 59 @@ -725,7 +725,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 62 @@ -745,7 +745,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 63 @@ -765,7 +765,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 64 @@ -785,7 +785,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: Unnecessary open mode parameters - commit: Remove open mode parameters + suggestion: Remove open mode parameters fixable: true location: row: 65 @@ -805,7 +805,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 67 @@ -825,7 +825,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 68 @@ -845,7 +845,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 69 @@ -865,7 +865,7 @@ expression: diagnostics - kind: name: RedundantOpenModes body: "Unnecessary open mode parameters, use \"\"rb\"\"" - commit: "Replace with \"\"rb\"\"" + suggestion: "Replace with \"\"rb\"\"" fixable: true location: row: 70 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 6671503371..d86ed2e71f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 20 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 21 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 22 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `bytes`" - commit: "Replace with `bytes`" + suggestion: "Replace with `bytes`" fixable: true location: row: 24 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `bytes`" - commit: "Replace with `bytes`" + suggestion: "Replace with `bytes`" fixable: true location: row: 25 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: NativeLiterals body: "Unnecessary call to `bytes`" - commit: "Replace with `bytes`" + suggestion: "Replace with `bytes`" fixable: true location: row: 26 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 0cb2021d78..8277f1f3fd 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingTextStrAlias body: "`typing.Text` is deprecated, use `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 7 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TypingTextStrAlias body: "`typing.Text` is deprecated, use `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: TypingTextStrAlias body: "`typing.Text` is deprecated, use `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 15 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: TypingTextStrAlias body: "`typing.Text` is deprecated, use `str`" - commit: "Replace with `str`" + suggestion: "Replace with `str`" fixable: true location: row: 19 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 afcddccfa3..ebfcaecd3f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReplaceUniversalNewlines body: "`universal_newlines` is deprecated, use `text`" - commit: "Replace with `text` keyword argument" + suggestion: "Replace with `text` keyword argument" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ReplaceUniversalNewlines body: "`universal_newlines` is deprecated, use `text`" - commit: "Replace with `text` keyword argument" + suggestion: "Replace with `text` keyword argument" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ReplaceUniversalNewlines body: "`universal_newlines` is deprecated, use `text`" - commit: "Replace with `text` keyword argument" + suggestion: "Replace with `text` keyword argument" fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ReplaceUniversalNewlines body: "`universal_newlines` is deprecated, use `text`" - commit: "Replace with `text` keyword argument" + suggestion: "Replace with `text` keyword argument" fixable: true location: row: 10 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 000d3dcc88..2d82b2b78f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 10 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 18 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ReplaceStdoutStderr body: "Sending stdout and stderr to pipe is deprecated, use `capture_output`" - commit: "Replace with `capture_output` keyword argument" + suggestion: "Replace with `capture_output` keyword argument" fixable: true location: row: 29 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 671cd10b15..fcf107949c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 3 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 6 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 7 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 10 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 16 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 17 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 19 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 21 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: RewriteCElementTree body: "`cElementTree` is deprecated, use `ElementTree`" - commit: "Replace with `ElementTree`" + suggestion: "Replace with `ElementTree`" fixable: true location: row: 24 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 9f6bd8b79b..9134bc3ee4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `EnvironmentError` with builtin `OSError`" + suggestion: "Replace `EnvironmentError` with builtin `OSError`" fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `IOError` with builtin `OSError`" + suggestion: "Replace `IOError` with builtin `OSError`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `WindowsError` with builtin `OSError`" + suggestion: "Replace `WindowsError` with builtin `OSError`" fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `mmap.error` with builtin `OSError`" + suggestion: "Replace `mmap.error` with builtin `OSError`" fixable: true location: row: 21 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `select.error` with builtin `OSError`" + suggestion: "Replace `select.error` with builtin `OSError`" fixable: true location: row: 26 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `socket.error` with builtin `OSError`" + suggestion: "Replace `socket.error` with builtin `OSError`" fixable: true location: row: 31 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `error` with builtin `OSError`" + suggestion: "Replace `error` with builtin `OSError`" fixable: true location: row: 36 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 43 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 47 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 51 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 58 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 65 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `mmap.error` with builtin `OSError`" + suggestion: "Replace `mmap.error` with builtin `OSError`" fixable: true location: row: 87 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 a5dece1b30..4175489659 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace with builtin `OSError`" + suggestion: "Replace with builtin `OSError`" fixable: true location: row: 12 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 9870d40e38..a2b5213990 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `socket.error` with builtin `OSError`" + suggestion: "Replace `socket.error` with builtin `OSError`" fixable: true location: row: 10 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `mmap.error` with builtin `OSError`" + suggestion: "Replace `mmap.error` with builtin `OSError`" fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `select.error` with builtin `OSError`" + suggestion: "Replace `select.error` with builtin `OSError`" fixable: true location: row: 12 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `socket.error` with builtin `OSError`" + suggestion: "Replace `socket.error` with builtin `OSError`" fixable: true location: row: 14 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `mmap.error` with builtin `OSError`" + suggestion: "Replace `mmap.error` with builtin `OSError`" fixable: true location: row: 15 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `select.error` with builtin `OSError`" + suggestion: "Replace `select.error` with builtin `OSError`" fixable: true location: row: 16 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `socket.error` with builtin `OSError`" + suggestion: "Replace `socket.error` with builtin `OSError`" fixable: true location: row: 18 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `error` with builtin `OSError`" + suggestion: "Replace `error` with builtin `OSError`" fixable: true location: row: 25 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `error` with builtin `OSError`" + suggestion: "Replace `error` with builtin `OSError`" fixable: true location: row: 28 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `error` with builtin `OSError`" + suggestion: "Replace `error` with builtin `OSError`" fixable: true location: row: 31 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `EnvironmentError` with builtin `OSError`" + suggestion: "Replace `EnvironmentError` with builtin `OSError`" fixable: true location: row: 34 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `IOError` with builtin `OSError`" + suggestion: "Replace `IOError` with builtin `OSError`" fixable: true location: row: 35 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `WindowsError` with builtin `OSError`" + suggestion: "Replace `WindowsError` with builtin `OSError`" fixable: true location: row: 36 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `EnvironmentError` with builtin `OSError`" + suggestion: "Replace `EnvironmentError` with builtin `OSError`" fixable: true location: row: 38 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `IOError` with builtin `OSError`" + suggestion: "Replace `IOError` with builtin `OSError`" fixable: true location: row: 39 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `WindowsError` with builtin `OSError`" + suggestion: "Replace `WindowsError` with builtin `OSError`" fixable: true location: row: 40 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `EnvironmentError` with builtin `OSError`" + suggestion: "Replace `EnvironmentError` with builtin `OSError`" fixable: true location: row: 42 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `WindowsError` with builtin `OSError`" + suggestion: "Replace `WindowsError` with builtin `OSError`" fixable: true location: row: 48 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `EnvironmentError` with builtin `OSError`" + suggestion: "Replace `EnvironmentError` with builtin `OSError`" fixable: true location: row: 49 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: OSErrorAlias body: "Replace aliased errors with `OSError`" - commit: "Replace `IOError` with builtin `OSError`" + suggestion: "Replace `IOError` with builtin `OSError`" fixable: true location: row: 50 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 95ec52c59d..fceb98b0a4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 6 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 8 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 12 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 12 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 12 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 12 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 16 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 17 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 18 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: RewriteUnicodeLiteral body: Remove unicode literals from strings - commit: Remove unicode prefix + suggestion: Remove unicode prefix fixable: true location: row: 19 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 05062535d4..3a5641049c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 12 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 15 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 19 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 22 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 28 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 36 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 42 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 48 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 49 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 53 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 64 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 64 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 67 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 70 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 74 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 74 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 74 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 77 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 77 @@ -445,7 +445,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 77 @@ -465,7 +465,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Import from `unittest.mock` instead" + suggestion: "Import from `unittest.mock` instead" fixable: true location: row: 81 @@ -485,7 +485,7 @@ expression: diagnostics - kind: name: RewriteMockImport body: "`mock` is deprecated, use `unittest.mock`" - commit: "Replace `mock.mock` with `mock`" + suggestion: "Replace `mock.mock` with `mock`" fixable: true location: row: 88 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 c4d9928992..5a57eb3217 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RewriteListComprehension body: Replace unpacked list comprehension with a generator expression - commit: Replace with generator expression + suggestion: Replace with generator expression fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RewriteListComprehension body: Replace unpacked list comprehension with a generator expression - commit: Replace with generator expression + suggestion: Replace with generator expression fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RewriteListComprehension body: Replace unpacked list comprehension with a generator expression - commit: Replace with generator expression + suggestion: Replace with generator expression fixable: true location: row: 6 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RewriteListComprehension body: Replace unpacked list comprehension with a generator expression - commit: Replace with generator expression + suggestion: Replace with generator expression fixable: true location: row: 8 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RewriteListComprehension body: Replace unpacked list comprehension with a generator expression - commit: Replace with generator expression + suggestion: Replace with generator expression fixable: true location: row: 10 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 f152b41875..812715bca0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 12 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 17 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 22 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 27 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 33 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 44 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 49 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 55 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 67 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: RewriteYieldFrom body: "Replace `yield` over `for` loop with `yield from`" - commit: "Replace with `yield from`" + suggestion: "Replace with `yield from`" fixable: true location: row: 72 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 2c5ff30133..3f58b4df1d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnnecessaryBuiltinImport body: "Unnecessary builtin import: `*`" - commit: Remove unnecessary builtin import + suggestion: Remove unnecessary builtin import fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnnecessaryBuiltinImport body: "Unnecessary builtin imports: `ascii`, `bytes`" - commit: Remove unnecessary builtin import + suggestion: Remove unnecessary builtin import fixable: true location: row: 2 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnnecessaryBuiltinImport body: "Unnecessary builtin imports: `filter`, `zip`" - commit: Remove unnecessary builtin import + suggestion: Remove unnecessary builtin import fixable: true location: row: 4 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnnecessaryBuiltinImport body: "Unnecessary builtin import: `open`" - commit: Remove unnecessary builtin import + suggestion: Remove unnecessary builtin import fixable: true location: row: 5 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 5bf48988cd..62691d7759 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 13 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 15 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 17 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 20 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 22 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 24 @@ -198,7 +198,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 29 @@ -211,7 +211,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 34 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 209dd34ccb..e44af6bb77 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 6 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 10 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 12 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 14 @@ -98,7 +98,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 16 @@ -118,7 +118,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 18 @@ -138,7 +138,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 20 @@ -158,7 +158,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 22 @@ -178,7 +178,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 24 @@ -198,7 +198,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 26 @@ -218,7 +218,7 @@ expression: diagnostics - kind: name: FormatLiterals body: Use implicit references for positional format fields - commit: Remove explicit positional indexes + suggestion: Remove explicit positional indexes fixable: true location: row: 28 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 67821c7e9d..5fc3d25dc6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 10 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 12 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 12 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 14 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 16 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 18 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 20 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 22 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 24 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 26 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 28 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 30 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 33 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 38 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 40 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 42 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 47 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 49 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 51 @@ -445,7 +445,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 53 @@ -465,7 +465,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 56 @@ -485,7 +485,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 61 @@ -505,7 +505,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 67 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 71 @@ -545,7 +545,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 73 @@ -565,7 +565,7 @@ expression: diagnostics - kind: name: PrintfStringFormatting body: Use format specifiers instead of percent format - commit: Replace with format specifiers + suggestion: Replace with format specifiers fixable: true location: row: 75 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 a6e6ae5e10..42ac7606a1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 7 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 9 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 13 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 15 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 17 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 19 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 21 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 23 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 25 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 27 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 29 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 31 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 33 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 35 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 37 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 39 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 41 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 43 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 45 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: FString body: "Use f-string instead of `format` call" - commit: Convert to f-string + suggestion: Convert to f-string fixable: true location: row: 47 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 dccf49568f..16ffe9abf3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: FunctoolsCache body: "Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`" - commit: "Rewrite with `@functools.cache" + suggestion: "Rewrite with `@functools.cache" fixable: true location: row: 5 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: FunctoolsCache body: "Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`" - commit: "Rewrite with `@functools.cache" + suggestion: "Rewrite with `@functools.cache" fixable: true location: row: 10 @@ -38,7 +38,7 @@ expression: diagnostics - kind: name: FunctoolsCache body: "Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`" - commit: "Rewrite with `@functools.cache" + suggestion: "Rewrite with `@functools.cache" fixable: true location: row: 16 @@ -58,7 +58,7 @@ expression: diagnostics - kind: name: FunctoolsCache body: "Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`" - commit: "Rewrite with `@functools.cache" + suggestion: "Rewrite with `@functools.cache" fixable: true location: row: 21 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 2d545775f5..11131316f6 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 5 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 8 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 11 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 14 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 18 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 23 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 30 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 35 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: ExtraneousParentheses body: Avoid extraneous parentheses - commit: Remove extraneous parentheses + suggestion: Remove extraneous parentheses fixable: true location: row: 39 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 9206a81b94..348d81677b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 2 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 4 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`, `Sequence`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 6 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 8 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 10 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 12 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 15 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`, `Sequence`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 18 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 20 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 23 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 28 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 30 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 33 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`, `Callable`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 37 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Callable`" - commit: "Import from `collections.abc`" + suggestion: "Import from `collections.abc`" fixable: true location: row: 44 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections` instead: `OrderedDict`" - commit: "Import from `collections`" + suggestion: "Import from `collections`" fixable: true location: row: 44 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `re` instead: `Match`, `Pattern`" - commit: "Import from `re`" + suggestion: "Import from `re`" fixable: true location: row: 44 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: ImportReplacements body: "Import from `collections.abc` instead: `Mapping`" - commit: ~ + suggestion: ~ fixable: false location: row: 46 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 b1faa6b0d7..b26912ed3d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 20 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 25 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 29 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 37 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 45 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 53 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 56 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 62 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 67 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 73 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 86 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 97 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 104 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 116 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 122 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 125 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 130 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 140 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 150 @@ -445,7 +445,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 163 @@ -465,7 +465,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 166 @@ -485,7 +485,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 168 @@ -505,7 +505,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 172 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 176 @@ -545,7 +545,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 179 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 9cd9572345..3c500d5627 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 8 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 13 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 18 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 23 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 28 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 35 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 42 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 49 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 56 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 62 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 67 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 75 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 02cb9d271c..11b9ff3e56 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 9 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 14 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 19 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 24 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 29 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 34 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 39 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 42 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 46 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 49 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 54 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 fc062de507..1d85c25a40 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 3 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 13 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 23 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 6a75ffea9f..0a3d025035 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 4 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 11 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 17 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 24 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 27 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 32 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 37 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: OutdatedVersionBlock body: Version block is outdated for minimum Python version - commit: Remove outdated version block + suggestion: Remove outdated version block fixable: true location: row: 42 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 09a33f3351..3f2affaa3a 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 18 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 18 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 19 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 22 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 26 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 26 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 30 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 32 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 36 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 40 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 44 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 47 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 49 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 51 @@ -285,7 +285,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 53 @@ -305,7 +305,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 55 @@ -325,7 +325,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 57 @@ -345,7 +345,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 59 @@ -365,7 +365,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 61 @@ -385,7 +385,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 63 @@ -405,7 +405,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 63 @@ -425,7 +425,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 65 @@ -445,7 +445,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 65 @@ -465,7 +465,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 65 @@ -485,7 +485,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 65 @@ -505,7 +505,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 67 @@ -525,7 +525,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 67 @@ -545,7 +545,7 @@ expression: diagnostics - kind: name: QuotedAnnotation body: Remove quotes from type annotation - commit: Remove quotes + suggestion: Remove quotes fixable: true location: row: 67 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 5d5603509e..a67cf97254 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: IsinstanceWithTuple body: "Use `X | Y` in `isinstance` call instead of `(X, Y)`" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: IsinstanceWithTuple body: "Use `X | Y` in `issubclass` call instead of `(X, Y)`" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 2 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 079fe0afed..823a873b0d 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DatetimeTimezoneUTC body: "Use `datetime.UTC` alias" - commit: ~ + suggestion: ~ fixable: false location: row: 7 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: DatetimeTimezoneUTC body: "Use `datetime.UTC` alias" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: DatetimeTimezoneUTC body: "Use `datetime.UTC` alias" - commit: "Convert to `datetime.UTC` alias" + suggestion: "Convert to `datetime.UTC` alias" fixable: true location: row: 10 @@ -51,7 +51,7 @@ expression: diagnostics - kind: name: DatetimeTimezoneUTC body: "Use `datetime.UTC` alias" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 c6bcac13db..244398082c 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 34 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 4a66e21b89..ec287ea82f 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 34 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 35 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 42 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: DeprecatedCollectionType body: "Use `list` instead of `List` for type annotations" - commit: "Replace `List` with `list`" + suggestion: "Replace `List` with `list`" fixable: true location: row: 42 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 782f04f0a9..f70bedb2b0 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 40 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 94c765e693..d9898dacc8 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 40 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: TypingUnion body: "Use `X | Y` for type annotations" - commit: "Convert to `X | Y`" + suggestion: "Convert to `X | Y`" fixable: true location: row: 42 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 470fd07156..ebc36dfecb 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[1, 2, 3, *foo]` instead of concatenation" - commit: "Replace with `[1, 2, 3, *foo]`" + suggestion: "Replace with `[1, 2, 3, *foo]`" fixable: true location: row: 10 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(7, 8, 9, *zoob)` instead of concatenation" - commit: "Replace with `(7, 8, 9, *zoob)`" + suggestion: "Replace with `(7, 8, 9, *zoob)`" fixable: true location: row: 12 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(*quux, 10, 11, 12)` instead of concatenation" - commit: "Replace with `(*quux, 10, 11, 12)`" + suggestion: "Replace with `(*quux, 10, 11, 12)`" fixable: true location: row: 13 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[*spom, 13, 14, 15]` instead of concatenation" - commit: "Replace with `[*spom, 13, 14, 15]`" + suggestion: "Replace with `[*spom, 13, 14, 15]`" fixable: true location: row: 15 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(\"we all say\", *yay())` instead of concatenation" - commit: "Replace with `(\"we all say\", *yay())`" + suggestion: "Replace with `(\"we all say\", *yay())`" fixable: true location: row: 16 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(\"we all think\", *Fun().yay())` instead of concatenation" - commit: "Replace with `(\"we all think\", *Fun().yay())`" + suggestion: "Replace with `(\"we all think\", *Fun().yay())`" fixable: true location: row: 17 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(\"we all feel\", *Fun.words)` instead of concatenation" - commit: "Replace with `(\"we all feel\", *Fun.words)`" + suggestion: "Replace with `(\"we all feel\", *Fun.words)`" fixable: true location: row: 18 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[\"a\", \"b\", \"c\", *eggs]` instead of concatenation" - commit: "Replace with `[\"a\", \"b\", \"c\", *eggs]`" + suggestion: "Replace with `[\"a\", \"b\", \"c\", *eggs]`" fixable: true location: row: 20 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(\"yes\", \"no\", \"pants\", *zoob)` instead of concatenation" - commit: "Replace with `(\"yes\", \"no\", \"pants\", *zoob)`" + suggestion: "Replace with `(\"yes\", \"no\", \"pants\", *zoob)`" fixable: true location: row: 20 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `(*zoob,)` instead of concatenation" - commit: "Replace with `(*zoob,)`" + suggestion: "Replace with `(*zoob,)`" fixable: true location: row: 22 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[*first, 4, 5, 6]` instead of concatenation" - commit: ~ + suggestion: ~ fixable: false location: row: 32 @@ -218,7 +218,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[*foo]` instead of concatenation" - commit: "Replace with `[*foo]`" + suggestion: "Replace with `[*foo]`" fixable: true location: row: 41 @@ -238,7 +238,7 @@ expression: diagnostics - kind: name: UnpackInsteadOfConcatenatingToCollectionLiteral body: "Consider `[*foo]` instead of concatenation" - commit: "Replace with `[*foo]`" + suggestion: "Replace with `[*foo]`" fixable: true location: row: 44 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 add7ca05b0..c9fcfada6b 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AsyncioDanglingTask body: "Store a reference to the return value of `asyncio.create_task`" - commit: ~ + suggestion: ~ fixable: false location: row: 6 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: AsyncioDanglingTask body: "Store a reference to the return value of `asyncio.ensure_future`" - commit: ~ + suggestion: ~ fixable: false location: row: 11 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 94e4a8a403..afe5d78ee5 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: AmbiguousUnicodeCharacterString body: "String contains ambiguous unicode character `𝐁` (did you mean `B`?)" - commit: "Replace `𝐁` with `B`" + suggestion: "Replace `𝐁` with `B`" fixable: true location: row: 1 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: AmbiguousUnicodeCharacterDocstring body: "Docstring contains ambiguous unicode character `)` (did you mean `)`?)" - commit: "Replace `)` with `)`" + suggestion: "Replace `)` with `)`" fixable: true location: row: 6 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: AmbiguousUnicodeCharacterComment body: "Comment contains ambiguous unicode character `᜵` (did you mean `/`?)" - commit: "Replace `᜵` with `/`" + suggestion: "Replace `᜵` with `/`" fixable: true location: row: 7 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 a4da72f0a0..cd7486d195 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused blanket `noqa` directive" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 9 @@ -25,7 +25,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `E501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 13 @@ -45,7 +45,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F841`, `E501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 16 @@ -65,7 +65,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F841`, `W191`; non-enabled: `F821`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 19 @@ -85,7 +85,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F841`; unknown: `V101`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 22 @@ -105,7 +105,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `E501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 26 @@ -125,7 +125,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `d` is assigned to but never used" - commit: "Remove assignment to unused variable `d`" + suggestion: "Remove assignment to unused variable `d`" fixable: true location: row: 29 @@ -145,7 +145,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `E501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 29 @@ -165,7 +165,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F841`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 55 @@ -185,7 +185,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `E501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 63 @@ -205,7 +205,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused blanket `noqa` directive" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 71 @@ -225,7 +225,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`shelve` imported but unused" - commit: "Remove unused import: `shelve`" + suggestion: "Remove unused import: `shelve`" fixable: true location: row: 85 @@ -245,7 +245,7 @@ expression: diagnostics - kind: name: LineTooLong body: Line too long (103 > 88 characters) - commit: ~ + suggestion: ~ fixable: false location: row: 90 @@ -258,7 +258,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F401`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 90 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 bd58773f65..dbc4bc5de4 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.Union` imported but unused" - commit: "Remove unused import: `typing.Union`" + suggestion: "Remove unused import: `typing.Union`" fixable: true location: row: 37 @@ -27,7 +27,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F401`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 52 @@ -47,7 +47,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F401`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 59 @@ -67,7 +67,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (non-enabled: `F501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 66 @@ -87,7 +87,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (non-enabled: `F501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 72 @@ -107,7 +107,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.Awaitable` imported but unused" - commit: Remove unused import + suggestion: Remove unused import fixable: true location: row: 89 @@ -127,7 +127,7 @@ expression: diagnostics - kind: name: UnusedImport body: "`typing.AwaitableGenerator` imported but unused" - commit: Remove unused import + suggestion: Remove unused import fixable: true location: row: 89 @@ -147,7 +147,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (non-enabled: `F501`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 89 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 5d164ada2b..04ceb69caa 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedNOQA body: "Unused `noqa` directive (unused: `F401`)" - commit: "Remove unused `noqa` directive" + suggestion: "Remove unused `noqa` directive" fixable: true location: row: 1 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 47f48a2119..785e17d410 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: UnusedVariable body: "Local variable `x` is assigned to but never used" - commit: "Remove assignment to unused variable `x`" + suggestion: "Remove assignment to unused variable `x`" fixable: true location: row: 8 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 ed5e7e7e92..0bba9d5134 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 18 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 25 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 28 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 35 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 38 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 45 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: ErrorInsteadOfException body: "Use `logging.exception` instead of `logging.error`" - commit: ~ + suggestion: ~ fixable: false location: row: 48 diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__prefer-type-error_TRY004.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__prefer-type-error_TRY004.py.snap index d0b0bf6e0d..b7518c44fc 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__prefer-type-error_TRY004.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__prefer-type-error_TRY004.py.snap @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 12 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 30 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 37 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 44 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 51 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 58 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 65 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 72 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 79 @@ -135,7 +135,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 86 @@ -148,7 +148,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 95 @@ -161,7 +161,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 104 @@ -174,7 +174,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 111 @@ -187,7 +187,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 118 @@ -200,7 +200,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 125 @@ -213,7 +213,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 132 @@ -226,7 +226,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 139 @@ -239,7 +239,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 146 @@ -252,7 +252,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 153 @@ -265,7 +265,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 160 @@ -278,7 +278,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 167 @@ -291,7 +291,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 174 @@ -304,7 +304,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 181 @@ -317,7 +317,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 188 @@ -330,7 +330,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 195 @@ -343,7 +343,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 202 @@ -356,7 +356,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 209 @@ -369,7 +369,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 216 @@ -382,7 +382,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 223 @@ -395,7 +395,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 230 @@ -408,7 +408,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 267 @@ -421,7 +421,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 277 @@ -434,7 +434,7 @@ expression: diagnostics - kind: name: PreferTypeError body: "Prefer `TypeError` exception for invalid type" - commit: ~ + suggestion: ~ fixable: false location: row: 288 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 9f6fd16fed..4a0e766112 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaiseVanillaArgs body: Avoid specifying long messages outside the exception class - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaiseVanillaArgs body: Avoid specifying long messages outside the exception class - commit: ~ + suggestion: ~ fixable: false location: row: 34 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaiseVanillaArgs body: Avoid specifying long messages outside the exception class - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaiseVanillaArgs body: Avoid specifying long messages outside the exception class - commit: ~ + suggestion: ~ fixable: false location: row: 44 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 44e22d7338..db68e5dc92 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaiseVanillaClass body: Create your own exception - commit: ~ + suggestion: ~ fixable: false location: row: 13 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaiseVanillaClass body: Create your own exception - commit: ~ + suggestion: ~ fixable: false location: row: 17 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 025ea95f54..34790bde96 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 9 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 11 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 16 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 29 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: RaiseWithinTry body: "Abstract `raise` to an inner function" - commit: ~ + suggestion: ~ fixable: false location: row: 34 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 5b77bfccc6..7c2e4a7b85 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: ReraiseNoCause body: "Use `raise from` to specify exception cause" - commit: ~ + suggestion: ~ fixable: false location: row: 15 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: ReraiseNoCause body: "Use `raise from` to specify exception cause" - commit: ~ + suggestion: ~ fixable: false location: row: 23 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 faf71c3d5e..5a9ace3f22 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: TryConsiderElse body: "Consider moving this statement to an `else` block" - commit: ~ + suggestion: ~ fixable: false location: row: 20 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 34464672d6..40d54e98b3 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 8 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 19 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -44,7 +44,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 21 @@ -57,7 +57,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 23 @@ -70,7 +70,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 24 @@ -83,7 +83,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 27 @@ -96,7 +96,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 39 @@ -109,7 +109,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 46 @@ -122,7 +122,7 @@ expression: diagnostics - kind: name: VerboseLogMessage body: "Redundant exception object included in `logging.exception` call" - commit: ~ + suggestion: ~ fixable: false location: row: 53 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 cbe03c1bc2..4bb80043d1 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 @@ -5,7 +5,7 @@ expression: diagnostics - kind: name: VerboseRaise body: "Use `raise` without specifying exception name" - commit: ~ + suggestion: ~ fixable: false location: row: 20 @@ -18,7 +18,7 @@ expression: diagnostics - kind: name: VerboseRaise body: "Use `raise` without specifying exception name" - commit: ~ + suggestion: ~ fixable: false location: row: 63 @@ -31,7 +31,7 @@ expression: diagnostics - kind: name: VerboseRaise body: "Use `raise` without specifying exception name" - commit: ~ + suggestion: ~ fixable: false location: row: 74 diff --git a/crates/ruff_cli/src/printer.rs b/crates/ruff_cli/src/printer.rs index df73b8ca37..82b2e6c970 100644 --- a/crates/ruff_cli/src/printer.rs +++ b/crates/ruff_cli/src/printer.rs @@ -193,7 +193,7 @@ impl Printer { content: &fix.content, location: &fix.location, end_location: &fix.end_location, - message: message.kind.commit.as_deref(), + message: message.kind.suggestion.as_deref(), }), location: message.location, end_location: message.end_location, @@ -597,11 +597,11 @@ fn print_message( ); writeln!(stdout, "{label}")?; if let Some(source) = &message.source { - let commit = message.kind.commit.clone(); - let footer = if commit.is_some() { + let suggestion = message.kind.suggestion.clone(); + let footer = if suggestion.is_some() { vec![Annotation { id: None, - label: commit.as_deref(), + label: suggestion.as_deref(), annotation_type: AnnotationType::Help, }] } else { @@ -703,11 +703,11 @@ fn print_grouped_message( ); writeln!(stdout, "{label}")?; if let Some(source) = &message.source { - let commit = message.kind.commit.clone(); - let footer = if commit.is_some() { + let suggestion = message.kind.suggestion.clone(); + let footer = if suggestion.is_some() { vec![Annotation { id: None, - label: commit.as_deref(), + label: suggestion.as_deref(), annotation_type: AnnotationType::Help, }] } else { diff --git a/crates/ruff_macros/src/violation.rs b/crates/ruff_macros/src/violation.rs index 85b3117228..22dd8dca98 100644 --- a/crates/ruff_macros/src/violation.rs +++ b/crates/ruff_macros/src/violation.rs @@ -54,7 +54,7 @@ pub fn violation(violation: &ItemStruct) -> Result { Self { body: Violation::message(&value), fixable: value.autofix_title_formatter().is_some(), - commit: value.autofix_title_formatter().map(|f| f(&value)), + suggestion: value.autofix_title_formatter().map(|f| f(&value)), name: stringify!(#ident).to_string(), } } @@ -78,7 +78,7 @@ pub fn violation(violation: &ItemStruct) -> Result { Self { body: Violation::message(&value), fixable: value.autofix_title_formatter().is_some(), - commit: value.autofix_title_formatter().map(|f| f(&value)), + suggestion: value.autofix_title_formatter().map(|f| f(&value)), name: stringify!(#ident).to_string(), } }