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 167d1197b8da03..018a521ceb7140 100644 --- a/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap +++ b/crates/ruff/src/rules/eradicate/snapshots/ruff__rules__eradicate__tests__ERA001_ERA001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 10 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 22 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 6 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 13 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: CommentedOutCode @@ -94,12 +98,13 @@ expression: diagnostics row: 12 column: 16 fix: - content: "" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap index 8e5fce3732b8b9..79eb8f43c72f74 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT101_YTT101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice3 @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 8 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap index e9f6140fb345d5..e5f9c4590e69b2 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT102_YTT102.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersion2 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap index 7bf2c1aca37da3..67657f7fa3cba8 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT103_YTT103.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr3 @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap index 35226f04de74d3..bd5e53558cec53 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT201_YTT201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo0Eq3 @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 10 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap index 0084bdb20bf682..3d12b2ab357113 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT202_YTT202.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SixPY3 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap index a4e1fc2d36bf6a..e6f1891e694862 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT203_YTT203.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfo1CmpInt @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap index 9ff038fb68059a..e1101f322b7e05 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT204_YTT204.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionInfoMinorCmpInt @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap index 4c82503d66806d..8df8272ffb3ed3 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT301_YTT301.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersion0 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap index e313659104d93a..0f59eba39c67b3 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT302_YTT302.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionCmpStr10 @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap index 2918739e123773..d2c5f511f61caf 100644 --- a/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap +++ b/crates/ruff/src/rules/flake8_2020/snapshots/ruff__rules__flake8_2020__tests__YTT303_YTT303.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysVersionSlice1 @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap index 128ef39866882b..ad46e5b59ad876 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_overload.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 29 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap index f6a549b09246df..fd82edc297a661 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__allow_star_arg_any.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 40 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 44 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap index d81296dc2deafa..9331ea187517e6 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 14 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 44 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 49 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 54 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 54 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 59 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 64 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeSelf @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 74 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 78 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 82 column: 69 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 86 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 86 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 90 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AnyType @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 94 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeCls @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 104 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeSelf @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 108 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap index aa273cbd22ab14..1569cd388c8616 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__ignore_fully_untyped.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 24 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 28 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 32 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 43 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap index 88175c55a0bd1c..77b350637ed0e0 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__mypy_init_return.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: " -> None" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 22 + edits: + - content: " -> None" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 16 fix: - content: " -> None" - location: - row: 11 - column: 27 - end_location: - row: 11 - column: 27 + edits: + - content: " -> None" + location: + row: 11 + column: 27 + end_location: + row: 11 + column: 27 parent: ~ - kind: name: MissingReturnTypePrivateFunction @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -67,12 +70,13 @@ expression: diagnostics row: 47 column: 16 fix: - content: " -> None" - location: - row: 47 - column: 28 - end_location: - row: 47 - column: 28 + edits: + - content: " -> None" + location: + row: 47 + column: 28 + end_location: + row: 47 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap index fbf79a1cb740b4..45409b011277b3 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__simple_magic_methods.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 15 fix: - content: " -> str" - location: - row: 2 - column: 21 - end_location: - row: 2 - column: 21 + edits: + - content: " -> str" + location: + row: 2 + column: 21 + end_location: + row: 2 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: " -> str" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 22 + edits: + - content: " -> str" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: " -> int" - location: - row: 8 - column: 21 - end_location: - row: 8 - column: 21 + edits: + - content: " -> int" + location: + row: 8 + column: 21 + end_location: + row: 8 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 23 fix: - content: " -> int" - location: - row: 11 - column: 29 - end_location: - row: 11 - column: 29 + edits: + - content: " -> int" + location: + row: 11 + column: 29 + end_location: + row: 11 + column: 29 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: " -> None" - location: - row: 14 - column: 22 - end_location: - row: 14 - column: 22 + edits: + - content: " -> None" + location: + row: 14 + column: 22 + end_location: + row: 14 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 15 fix: - content: " -> None" - location: - row: 17 - column: 21 - end_location: - row: 17 - column: 21 + edits: + - content: " -> None" + location: + row: 17 + column: 21 + end_location: + row: 17 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 16 fix: - content: " -> bool" - location: - row: 20 - column: 22 - end_location: - row: 20 - column: 22 + edits: + - content: " -> bool" + location: + row: 20 + column: 22 + end_location: + row: 20 + column: 22 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 17 fix: - content: " -> bytes" - location: - row: 23 - column: 23 - end_location: - row: 23 - column: 23 + edits: + - content: " -> bytes" + location: + row: 23 + column: 23 + end_location: + row: 23 + column: 23 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 18 fix: - content: " -> str" - location: - row: 26 - column: 37 - end_location: - row: 26 - column: 37 + edits: + - content: " -> str" + location: + row: 26 + column: 37 + end_location: + row: 26 + column: 37 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -194,13 +203,14 @@ expression: diagnostics row: 29 column: 20 fix: - content: " -> bool" - location: - row: 29 - column: 32 - end_location: - row: 29 - column: 32 + edits: + - content: " -> bool" + location: + row: 29 + column: 32 + end_location: + row: 29 + column: 32 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -214,13 +224,14 @@ expression: diagnostics row: 32 column: 19 fix: - content: " -> complex" - location: - row: 32 - column: 25 - end_location: - row: 32 - column: 25 + edits: + - content: " -> complex" + location: + row: 32 + column: 25 + end_location: + row: 32 + column: 25 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -234,13 +245,14 @@ expression: diagnostics row: 35 column: 15 fix: - content: " -> int" - location: - row: 35 - column: 21 - end_location: - row: 35 - column: 21 + edits: + - content: " -> int" + location: + row: 35 + column: 21 + end_location: + row: 35 + column: 21 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -254,13 +266,14 @@ expression: diagnostics row: 38 column: 17 fix: - content: " -> float" - location: - row: 38 - column: 23 - end_location: - row: 38 - column: 23 + edits: + - content: " -> float" + location: + row: 38 + column: 23 + end_location: + row: 38 + column: 23 parent: ~ - kind: name: MissingReturnTypeSpecialMethod @@ -274,12 +287,13 @@ expression: diagnostics row: 41 column: 17 fix: - content: " -> int" - location: - row: 41 - column: 23 - end_location: - row: 41 - column: 23 + edits: + - content: " -> int" + location: + row: 41 + column: 23 + end_location: + row: 41 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap index 575a188f2ab852..2aff249b5a96f5 100644 --- a/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap +++ b/crates/ruff/src/rules/flake8_annotations/snapshots/ruff__rules__flake8_annotations__tests__suppress_none_returning.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 45 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingReturnTypeUndocumentedPublicFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 50 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTypeFunctionArgument @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 59 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap index 186be68d9611f6..1189632dcb9757 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S101_S101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Assert @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Assert @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap index 121192f1dbf45a..fbc00c1d343a70 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S102_S102.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExecBuiltin @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap index 2c33efc8183254..b094dd818b6cd5 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S103_S103.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 18 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 19 column: 60 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 20 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadFilePermissions @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 22 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap index 16b2d9f11769ef..c3a7355a3cbfb0 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S104_S104.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedBindAllInterfaces @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap index 79e85ae1239749..0d6451fcb38520 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S105_S105.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 25 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 26 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 27 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 28 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 29 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 30 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 31 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 32 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 33 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 37 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 41 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 42 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 43 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 44 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 45 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 46 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 47 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 49 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 50 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 51 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 52 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 53 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 54 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 55 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 56 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 58 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 61 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordString @@ -507,6 +545,7 @@ expression: diagnostics end_location: row: 64 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap index 7d4ea849fecf4f..091cae41dab91f 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S106_S106.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 14 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap index 06d9ccb6993903..37dca8f2db3c4e 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S107_S107.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 29 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedPasswordDefault @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 29 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap index 8bda552a389c26..8542e42003ae0e 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_S108.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap index 1774737ca22246..3ce49bcde480d1 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S108_extend.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedTempFile @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap index aa0ee08f3b48bd..35382b3f97d927 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_S110.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap index 09147b2a6774c5..1cb1f7c8fe8302 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S110_typed.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptPass @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap index afff3d8817387f..f5d3af0ba4c0df 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S112_S112.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TryExceptContinue @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 19 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap index 85cbf0de963afa..66af35115f5b95 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S113_S113.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 15 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 16 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 19 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 21 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithoutTimeout @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 22 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap index f475ec66c76359..34803b6939a8fe 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S301_S301.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap index 74817da0b95ba0..f44f9d83e14147 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S312_S312.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap index 0c2b18b3217d0c..a4402cc4868cd7 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S324_S324.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 15 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 21 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 25 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 27 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 29 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HashlibInsecureHashFunction @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 32 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap index 8bd0d423f226c4..571bae8a77f918 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S501_S501.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 13 column: 60 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 15 column: 62 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 22 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 24 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 28 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 30 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 32 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 34 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 36 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 38 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RequestWithNoCertValidation @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 40 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap index 487c7be4ed5b21..0a9ee54ef1c4c1 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S506_S506.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsafeYAMLLoad @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 24 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap index b7ca595297ce06..6277079c135636 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S508_S508.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SnmpInsecureVersion @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap index 1bf0ffc498a039..7bc38d3448603a 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S509_S509.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SnmpWeakCryptography @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap index b2d2ca8a7c28f6..a2ff09fdc92c3a 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S608_S608.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 6 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 11 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 12 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 14 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 15 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 16 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 17 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 19 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 20 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 21 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 22 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 28 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 30 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 31 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 32 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 33 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 34 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 36 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 37 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 38 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 39 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 41 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 42 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 43 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 44 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 52 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 59 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -507,7 +545,8 @@ expression: diagnostics end_location: row: 66 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -520,7 +559,8 @@ expression: diagnostics end_location: row: 73 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -533,7 +573,8 @@ expression: diagnostics end_location: row: 79 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -546,7 +587,8 @@ expression: diagnostics end_location: row: 83 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -559,7 +601,8 @@ expression: diagnostics end_location: row: 84 column: 65 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -572,7 +615,8 @@ expression: diagnostics end_location: row: 85 column: 73 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: HardcodedSQLExpression @@ -585,6 +629,7 @@ expression: diagnostics end_location: row: 86 column: 71 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap index ac143ca11f1f1c..09e476d7090580 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S612_S612.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap index 0e7fa8a033708b..0441380c650795 100644 --- a/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap +++ b/crates/ruff/src/rules/flake8_bandit/snapshots/ruff__rules__flake8_bandit__tests__S701_S701.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 76 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Jinja2AutoescapeFalse @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 29 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap b/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap index cd9d595361c725..44ce723448f373 100644 --- a/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap +++ b/crates/ruff/src/rules/flake8_blind_except/snapshots/ruff__rules__flake8_blind_except__tests__BLE001_BLE.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 31 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 42 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 45 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 54 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 60 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 62 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 69 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 75 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlindExcept @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap index cb37ddd2160f87..e2107799a6c25e 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT001_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 14 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 15 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 18 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 19 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalArgInFunctionDefinition @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 81 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap index 44649eb1c55de0..8ae57d5b18d4b6 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT002_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanDefaultValueInFunctionDefinition @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 49 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap index d2b89cf62137db..9187cafae87d2c 100644 --- a/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap +++ b/crates/ruff/src/rules/flake8_boolean_trap/snapshots/ruff__rules__flake8_boolean_trap__tests__FBT003_FBT.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 42 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalValueInFunctionCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 57 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BooleanPositionalValueInFunctionCall @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 57 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap index dfaa9a7433cf60..5b390942f51b02 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B002_B002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnaryPrefixIncrement @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 20 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap index 2adce9ce78a847..8bcff2a70fe85a 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B003_B003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap index eed4c9dd273958..3397ce6c49649d 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B004_B004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnreliableCallableCheck @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap index b7718c3bf0ce1b..bbf00122b2721f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B005_B005.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StripWithMultiCharacters @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 24 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap index f7195ef02d292d..c01f622ff2de3b 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B006_B006_B008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 60 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 64 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 68 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 72 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 76 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 80 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 85 column: 69 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 89 column: 72 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 93 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 97 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 170 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 203 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 204 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MutableArgumentDefault @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 205 column: 66 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap index 073bb80ebb84c1..02b42a83f84c2b 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B007_B007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -27,13 +28,14 @@ expression: diagnostics row: 18 column: 13 fix: - content: _k - location: - row: 18 - column: 12 - end_location: - row: 18 - column: 13 + edits: + - content: _k + location: + row: 18 + column: 12 + end_location: + row: 18 + column: 13 parent: ~ - kind: name: UnusedLoopControlVariable @@ -46,7 +48,8 @@ expression: diagnostics end_location: row: 30 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -60,13 +63,14 @@ expression: diagnostics row: 30 column: 13 fix: - content: _k - location: - row: 30 - column: 12 - end_location: - row: 30 - column: 13 + edits: + - content: _k + location: + row: 30 + column: 12 + end_location: + row: 30 + column: 13 parent: ~ - kind: name: UnusedLoopControlVariable @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 34 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -92,7 +97,8 @@ expression: diagnostics end_location: row: 38 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -105,7 +111,8 @@ expression: diagnostics end_location: row: 42 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -118,7 +125,8 @@ expression: diagnostics end_location: row: 46 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -132,13 +140,14 @@ expression: diagnostics row: 52 column: 16 fix: - content: _bar - location: - row: 52 - column: 13 - end_location: - row: 52 - column: 16 + edits: + - content: _bar + location: + row: 52 + column: 13 + end_location: + row: 52 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -151,7 +160,8 @@ expression: diagnostics end_location: row: 59 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedLoopControlVariable @@ -165,13 +175,14 @@ expression: diagnostics row: 68 column: 16 fix: - content: _bar - location: - row: 68 - column: 13 - end_location: - row: 68 - column: 16 + edits: + - content: _bar + location: + row: 68 + column: 13 + end_location: + row: 68 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -185,13 +196,14 @@ expression: diagnostics row: 77 column: 16 fix: - content: _bar - location: - row: 77 - column: 13 - end_location: - row: 77 - column: 16 + edits: + - content: _bar + location: + row: 77 + column: 13 + end_location: + row: 77 + column: 16 parent: ~ - kind: name: UnusedLoopControlVariable @@ -204,6 +216,7 @@ expression: diagnostics end_location: row: 87 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap index 41c0a8993ccdfd..e9d193e677241a 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B008_B006_B008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 85 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 89 column: 71 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 93 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 109 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 113 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 113 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 117 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 155 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 160 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 164 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 170 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 170 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 176 column: 62 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 181 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionCallInDefaultArgument @@ -195,6 +209,7 @@ expression: diagnostics end_location: row: 181 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap index 7c5050b5b6f098..d3e7ab42b97210 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B009_B009_B010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 19 column: 19 fix: - content: foo.bar - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 19 + edits: + - content: foo.bar + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 19 parent: ~ - kind: name: GetAttrWithConstant @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 23 fix: - content: foo._123abc - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 23 + edits: + - content: foo._123abc + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 23 parent: ~ - kind: name: GetAttrWithConstant @@ -54,13 +56,14 @@ expression: diagnostics row: 21 column: 26 fix: - content: foo.__123abc__ - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 26 + edits: + - content: foo.__123abc__ + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 26 parent: ~ - kind: name: GetAttrWithConstant @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 22 fix: - content: foo.abc123 - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 22 + edits: + - content: foo.abc123 + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 22 parent: ~ - kind: name: GetAttrWithConstant @@ -94,13 +98,14 @@ expression: diagnostics row: 23 column: 23 fix: - content: foo.abc123 - location: - row: 23 - column: 0 - end_location: - row: 23 - column: 23 + edits: + - content: foo.abc123 + location: + row: 23 + column: 0 + end_location: + row: 23 + column: 23 parent: ~ - kind: name: GetAttrWithConstant @@ -114,13 +119,14 @@ expression: diagnostics row: 24 column: 31 fix: - content: x.bar - location: - row: 24 - column: 14 - end_location: - row: 24 - column: 31 + edits: + - content: x.bar + location: + row: 24 + column: 14 + end_location: + row: 24 + column: 31 parent: ~ - kind: name: GetAttrWithConstant @@ -134,12 +140,13 @@ expression: diagnostics row: 25 column: 20 fix: - content: x.bar - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 20 + edits: + - content: x.bar + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap index ed2f64cb1e8e4e..b226ab351739f5 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B010_B009_B010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 25 fix: - content: foo.bar = None - location: - row: 40 - column: 0 - end_location: - row: 40 - column: 25 + edits: + - content: foo.bar = None + location: + row: 40 + column: 0 + end_location: + row: 40 + column: 25 parent: ~ - kind: name: SetAttrWithConstant @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 29 fix: - content: foo._123abc = None - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 29 + edits: + - content: foo._123abc = None + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 29 parent: ~ - kind: name: SetAttrWithConstant @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 32 fix: - content: foo.__123abc__ = None - location: - row: 42 - column: 0 - end_location: - row: 42 - column: 32 + edits: + - content: foo.__123abc__ = None + location: + row: 42 + column: 0 + end_location: + row: 42 + column: 32 parent: ~ - kind: name: SetAttrWithConstant @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 28 fix: - content: foo.abc123 = None - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 28 + edits: + - content: foo.abc123 = None + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 28 parent: ~ - kind: name: SetAttrWithConstant @@ -94,13 +98,14 @@ expression: diagnostics row: 44 column: 29 fix: - content: foo.abc123 = None - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 29 + edits: + - content: foo.abc123 = None + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 29 parent: ~ - kind: name: SetAttrWithConstant @@ -114,12 +119,13 @@ expression: diagnostics row: 45 column: 30 fix: - content: foo.bar.baz = None - location: - row: 45 - column: 0 - end_location: - row: 45 - column: 30 + edits: + - content: foo.bar.baz = None + location: + row: 45 + column: 0 + end_location: + row: 45 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap index 348e8c87ced732..4a36eb335c9c65 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B011_B011.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 8 column: 12 fix: - content: raise AssertionError() - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 12 + edits: + - content: raise AssertionError() + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 12 parent: ~ - kind: name: AssertFalse @@ -34,12 +35,13 @@ expression: diagnostics row: 10 column: 12 fix: - content: "raise AssertionError(\"message\")" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 23 + edits: + - content: "raise AssertionError(\"message\")" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap index aabded9d782979..38e21726550adb 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B012_B012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 31 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 44 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 66 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 78 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 94 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 101 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 107 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: JumpStatementInFinally @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 118 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap index d95a9ced7cdb54..cfa257c4a4c050 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B013_B013.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 20 fix: - content: ValueError - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 20 + edits: + - content: ValueError + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap index aac00b0bef8b88..e715ab983ad192 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B014_B014.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 17 column: 25 fix: - content: OSError - location: - row: 17 - column: 7 - end_location: - row: 17 - column: 25 + edits: + - content: OSError + location: + row: 17 + column: 7 + end_location: + row: 17 + column: 25 parent: ~ - kind: name: DuplicateHandlerException @@ -34,13 +35,14 @@ expression: diagnostics row: 28 column: 25 fix: - content: MyError - location: - row: 28 - column: 7 - end_location: - row: 28 - column: 25 + edits: + - content: MyError + location: + row: 28 + column: 7 + end_location: + row: 28 + column: 25 parent: ~ - kind: name: DuplicateHandlerException @@ -54,12 +56,13 @@ expression: diagnostics row: 49 column: 27 fix: - content: re.error - location: - row: 49 - column: 7 - end_location: - row: 49 - column: 27 + edits: + - content: re.error + location: + row: 49 + column: 7 + end_location: + row: 49 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap index 391615c4ded5a7..89d7d5572b5d90 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B015_B015.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessComparison @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 24 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap index 9666b4dd3c1627..9cf059449c13de 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B016_B016.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CannotRaiseLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CannotRaiseLiteral @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap index 617fdb93803b57..6e43abc8114d7f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B017_B017.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 23 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap index 540551f01328cd..55362e6f9169b8 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B018_B018.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 14 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 15 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 18 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 19 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 20 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 39 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 40 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 41 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 42 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 43 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 44 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 45 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 46 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 47 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 48 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 52 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 55 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 63 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 64 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessExpression @@ -351,6 +377,7 @@ expression: diagnostics end_location: row: 65 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap index 26da311a775132..1e1a51798d3d1f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B019_B019.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 78 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 82 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 86 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 90 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 94 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 98 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 102 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CachedInstanceMethod @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 106 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap index 52633aacadd53c..244b132127d9eb 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B020_B020.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoopVariableOverridesIterator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 21 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoopVariableOverridesIterator @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 36 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap index ca66eb17d0f7f3..cd1a1659a1225c 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B021_B021.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 30 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 38 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 46 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 54 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 62 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 70 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringDocstring @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 74 column: 48 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap index 6674168f69a1ba..9bc67edcad18ff 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B022_B022.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessContextlibSuppress @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 12 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap index 6650cec55f8f29..c41801ac79ac5f 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B023_B023.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 30 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 31 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 40 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 42 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 50 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 51 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 52 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 53 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 61 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 61 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 68 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 82 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 117 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 118 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 119 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 120 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 121 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 171 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FunctionUsesLoopVariable @@ -312,6 +335,7 @@ expression: diagnostics end_location: row: 174 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap index e8dcfa070ca1c2..56b33c82593140 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B024_B024.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 73 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 84 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 89 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 94 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AbstractBaseClassWithoutAbstractMethod @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 142 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap index fe24098b5352c6..18129b71b861d7 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B025_B025.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 19 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 28 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 35 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DuplicateTryBlockException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 37 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap index 52155fbcd043ad..f2d16d8a1e8949 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B026_B026.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 16 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 18 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 20 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StarArgUnpackingAfterKeywordArg @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 21 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap index 7c3bb97a55649c..4e08d2c860c306 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B027_B027.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyMethodWithoutAbstractDecorator @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 28 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap index e2c47aa6d1d00d..795024af51be95 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B028_B028.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NoExplicitStacklevel @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap index ba094d325c145e..ad4c881e39a848 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B029_B029.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithEmptyTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap index 23491995231af5..0d4e8746bbc5ae 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B030_B030.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExceptWithNonExceptionClasses @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 27 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap index 7c5ff806a7e957..320d1c7f8acb6e 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B031_B031.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 27 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 29 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 33 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 46 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 56 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReuseOfGroupbyGenerator @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 79 column: 49 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap index e0a74a5b84637a..ccd553fd153527 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B032_B032.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 18 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnintentionalTypeAnnotation @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 19 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap index ebadbcb251f637..7eaa8787d1c71e 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B904_B904.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 62 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 64 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithoutFromInsideExcept @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 72 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap index 46975425f22c34..56b5b3c5af439a 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__B905_B905.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 4 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ZipWithoutExplicitStrict @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 6 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap index 0470194350e7a8..647cd9fe7b0e9e 100644 --- a/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap +++ b/crates/ruff/src/rules/flake8_bugbear/snapshots/ruff__rules__flake8_bugbear__tests__extend_immutable_calls.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 19 column: 63 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap index cb3108f14f117b..9d66a6b00fafeb 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 9 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 11 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 24 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 27 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 27 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 27 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -260,6 +279,7 @@ expression: diagnostics end_location: row: 30 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap index a747afe215b112..048efcbd7ba91f 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A001_A001.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 9 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 14 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 24 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 27 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 27 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinVariableShadowing @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 30 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap index 4a89c5e360d979..1be32f790c39ec 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 1 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 1 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 1 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 8 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 8 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 11 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap index 55015f60e20d00..538ab0b40f4a64 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A002_A002.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 1 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 1 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 1 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinArgumentShadowing @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 11 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap index c6a519258bedef..7f1a07d5000b63 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap index 9e104005e9a05f..902369c18d2721 100644 --- a/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap +++ b/crates/ruff/src/rules/flake8_builtins/snapshots/ruff__rules__flake8_builtins__tests__A003_A003.py_builtins_ignorelist.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinAttributeShadowing @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap b/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap index cdc936e53e2243..7a1be463e833ce 100644 --- a/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap +++ b/crates/ruff/src/rules/flake8_commas/snapshots/ruff__rules__flake8_commas__tests__COM81.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 17 fix: - content: "'test'," - location: - row: 4 - column: 11 - end_location: - row: 4 - column: 17 + edits: + - content: "'test'," + location: + row: 4 + column: 11 + end_location: + row: 4 + column: 17 parent: ~ - kind: name: MissingTrailingComma @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 5 fix: - content: "3," - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 5 + edits: + - content: "3," + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "3," - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 5 + edits: + - content: "3," + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -74,13 +77,14 @@ expression: diagnostics row: 23 column: 5 fix: - content: "3," - location: - row: 23 - column: 4 - end_location: - row: 23 - column: 5 + edits: + - content: "3," + location: + row: 23 + column: 4 + end_location: + row: 23 + column: 5 parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 36 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -106,7 +111,8 @@ expression: diagnostics end_location: row: 38 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -119,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -132,7 +139,8 @@ expression: diagnostics end_location: row: 49 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -145,7 +153,8 @@ expression: diagnostics end_location: row: 56 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -158,7 +167,8 @@ expression: diagnostics end_location: row: 58 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TrailingCommaOnBareTuple @@ -171,7 +181,8 @@ expression: diagnostics end_location: row: 61 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MissingTrailingComma @@ -185,13 +196,14 @@ expression: diagnostics row: 70 column: 7 fix: - content: "bar," - location: - row: 70 - column: 4 - end_location: - row: 70 - column: 7 + edits: + - content: "bar," + location: + row: 70 + column: 4 + end_location: + row: 70 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -205,13 +217,14 @@ expression: diagnostics row: 78 column: 7 fix: - content: "bar," - location: - row: 78 - column: 4 - end_location: - row: 78 - column: 7 + edits: + - content: "bar," + location: + row: 78 + column: 4 + end_location: + row: 78 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -225,13 +238,14 @@ expression: diagnostics row: 86 column: 7 fix: - content: "bar," - location: - row: 86 - column: 4 - end_location: - row: 86 - column: 7 + edits: + - content: "bar," + location: + row: 86 + column: 4 + end_location: + row: 86 + column: 7 parent: ~ - kind: name: MissingTrailingComma @@ -245,13 +259,14 @@ expression: diagnostics row: 152 column: 5 fix: - content: "y," - location: - row: 152 - column: 4 - end_location: - row: 152 - column: 5 + edits: + - content: "y," + location: + row: 152 + column: 4 + end_location: + row: 152 + column: 5 parent: ~ - kind: name: MissingTrailingComma @@ -265,13 +280,14 @@ expression: diagnostics row: 158 column: 10 fix: - content: "Anyway," - location: - row: 158 - column: 4 - end_location: - row: 158 - column: 10 + edits: + - content: "Anyway," + location: + row: 158 + column: 4 + end_location: + row: 158 + column: 10 parent: ~ - kind: name: MissingTrailingComma @@ -285,13 +301,14 @@ expression: diagnostics row: 293 column: 14 fix: - content: "123," - location: - row: 293 - column: 11 - end_location: - row: 293 - column: 14 + edits: + - content: "123," + location: + row: 293 + column: 11 + end_location: + row: 293 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -305,13 +322,14 @@ expression: diagnostics row: 304 column: 13 fix: - content: "2," - location: - row: 304 - column: 12 - end_location: - row: 304 - column: 13 + edits: + - content: "2," + location: + row: 304 + column: 12 + end_location: + row: 304 + column: 13 parent: ~ - kind: name: MissingTrailingComma @@ -325,13 +343,14 @@ expression: diagnostics row: 310 column: 13 fix: - content: "3," - location: - row: 310 - column: 12 - end_location: - row: 310 - column: 13 + edits: + - content: "3," + location: + row: 310 + column: 12 + end_location: + row: 310 + column: 13 parent: ~ - kind: name: MissingTrailingComma @@ -345,13 +364,14 @@ expression: diagnostics row: 316 column: 9 fix: - content: "3," - location: - row: 316 - column: 8 - end_location: - row: 316 - column: 9 + edits: + - content: "3," + location: + row: 316 + column: 8 + end_location: + row: 316 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -365,13 +385,14 @@ expression: diagnostics row: 322 column: 14 fix: - content: "123," - location: - row: 322 - column: 11 - end_location: - row: 322 - column: 14 + edits: + - content: "123," + location: + row: 322 + column: 11 + end_location: + row: 322 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -385,13 +406,14 @@ expression: diagnostics row: 368 column: 14 fix: - content: "\"not good\"," - location: - row: 368 - column: 4 - end_location: - row: 368 - column: 14 + edits: + - content: "\"not good\"," + location: + row: 368 + column: 4 + end_location: + row: 368 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -405,13 +427,14 @@ expression: diagnostics row: 375 column: 14 fix: - content: "\"not good\"," - location: - row: 375 - column: 4 - end_location: - row: 375 - column: 14 + edits: + - content: "\"not good\"," + location: + row: 375 + column: 4 + end_location: + row: 375 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -425,13 +448,14 @@ expression: diagnostics row: 404 column: 14 fix: - content: "\"not fine\"," - location: - row: 404 - column: 4 - end_location: - row: 404 - column: 14 + edits: + - content: "\"not fine\"," + location: + row: 404 + column: 4 + end_location: + row: 404 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -445,13 +469,14 @@ expression: diagnostics row: 432 column: 14 fix: - content: "\"not fine\"," - location: - row: 432 - column: 4 - end_location: - row: 432 - column: 14 + edits: + - content: "\"not fine\"," + location: + row: 432 + column: 4 + end_location: + row: 432 + column: 14 parent: ~ - kind: name: ProhibitedTrailingComma @@ -465,13 +490,14 @@ expression: diagnostics row: 485 column: 21 fix: - content: "" - location: - row: 485 - column: 20 - end_location: - row: 485 - column: 21 + edits: + - content: "" + location: + row: 485 + column: 20 + end_location: + row: 485 + column: 21 parent: ~ - kind: name: ProhibitedTrailingComma @@ -485,13 +511,14 @@ expression: diagnostics row: 487 column: 13 fix: - content: "" - location: - row: 487 - column: 12 - end_location: - row: 487 - column: 13 + edits: + - content: "" + location: + row: 487 + column: 12 + end_location: + row: 487 + column: 13 parent: ~ - kind: name: ProhibitedTrailingComma @@ -505,13 +532,14 @@ expression: diagnostics row: 489 column: 18 fix: - content: "" - location: - row: 489 - column: 17 - end_location: - row: 489 - column: 18 + edits: + - content: "" + location: + row: 489 + column: 17 + end_location: + row: 489 + column: 18 parent: ~ - kind: name: ProhibitedTrailingComma @@ -525,13 +553,14 @@ expression: diagnostics row: 494 column: 6 fix: - content: "" - location: - row: 494 - column: 5 - end_location: - row: 494 - column: 6 + edits: + - content: "" + location: + row: 494 + column: 5 + end_location: + row: 494 + column: 6 parent: ~ - kind: name: ProhibitedTrailingComma @@ -545,13 +574,14 @@ expression: diagnostics row: 496 column: 21 fix: - content: "" - location: - row: 496 - column: 20 - end_location: - row: 496 - column: 21 + edits: + - content: "" + location: + row: 496 + column: 20 + end_location: + row: 496 + column: 21 parent: ~ - kind: name: ProhibitedTrailingComma @@ -565,13 +595,14 @@ expression: diagnostics row: 498 column: 13 fix: - content: "" - location: - row: 498 - column: 12 - end_location: - row: 498 - column: 13 + edits: + - content: "" + location: + row: 498 + column: 12 + end_location: + row: 498 + column: 13 parent: ~ - kind: name: ProhibitedTrailingComma @@ -585,13 +616,14 @@ expression: diagnostics row: 500 column: 18 fix: - content: "" - location: - row: 500 - column: 17 - end_location: - row: 500 - column: 18 + edits: + - content: "" + location: + row: 500 + column: 17 + end_location: + row: 500 + column: 18 parent: ~ - kind: name: ProhibitedTrailingComma @@ -605,13 +637,14 @@ expression: diagnostics row: 505 column: 6 fix: - content: "" - location: - row: 505 - column: 5 - end_location: - row: 505 - column: 6 + edits: + - content: "" + location: + row: 505 + column: 5 + end_location: + row: 505 + column: 6 parent: ~ - kind: name: ProhibitedTrailingComma @@ -625,13 +658,14 @@ expression: diagnostics row: 511 column: 10 fix: - content: "" - location: - row: 511 - column: 9 - end_location: - row: 511 - column: 10 + edits: + - content: "" + location: + row: 511 + column: 9 + end_location: + row: 511 + column: 10 parent: ~ - kind: name: ProhibitedTrailingComma @@ -645,13 +679,14 @@ expression: diagnostics row: 513 column: 9 fix: - content: "" - location: - row: 513 - column: 8 - end_location: - row: 513 - column: 9 + edits: + - content: "" + location: + row: 513 + column: 8 + end_location: + row: 513 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -665,13 +700,14 @@ expression: diagnostics row: 519 column: 12 fix: - content: "kwargs," - location: - row: 519 - column: 6 - end_location: - row: 519 - column: 12 + edits: + - content: "kwargs," + location: + row: 519 + column: 6 + end_location: + row: 519 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -685,13 +721,14 @@ expression: diagnostics row: 526 column: 9 fix: - content: "args," - location: - row: 526 - column: 5 - end_location: - row: 526 - column: 9 + edits: + - content: "args," + location: + row: 526 + column: 5 + end_location: + row: 526 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -705,13 +742,14 @@ expression: diagnostics row: 534 column: 15 fix: - content: "extra_kwarg," - location: - row: 534 - column: 4 - end_location: - row: 534 - column: 15 + edits: + - content: "extra_kwarg," + location: + row: 534 + column: 4 + end_location: + row: 534 + column: 15 parent: ~ - kind: name: MissingTrailingComma @@ -725,13 +763,14 @@ expression: diagnostics row: 541 column: 12 fix: - content: "kwargs," - location: - row: 541 - column: 6 - end_location: - row: 541 - column: 12 + edits: + - content: "kwargs," + location: + row: 541 + column: 6 + end_location: + row: 541 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -745,13 +784,14 @@ expression: diagnostics row: 547 column: 23 fix: - content: "not_called_kwargs," - location: - row: 547 - column: 6 - end_location: - row: 547 - column: 23 + edits: + - content: "not_called_kwargs," + location: + row: 547 + column: 6 + end_location: + row: 547 + column: 23 parent: ~ - kind: name: MissingTrailingComma @@ -765,13 +805,14 @@ expression: diagnostics row: 554 column: 14 fix: - content: "kwarg_only," - location: - row: 554 - column: 4 - end_location: - row: 554 - column: 14 + edits: + - content: "kwarg_only," + location: + row: 554 + column: 4 + end_location: + row: 554 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -785,13 +826,14 @@ expression: diagnostics row: 561 column: 12 fix: - content: "kwargs," - location: - row: 561 - column: 6 - end_location: - row: 561 - column: 12 + edits: + - content: "kwargs," + location: + row: 561 + column: 6 + end_location: + row: 561 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -805,13 +847,14 @@ expression: diagnostics row: 565 column: 12 fix: - content: "kwargs," - location: - row: 565 - column: 6 - end_location: - row: 565 - column: 12 + edits: + - content: "kwargs," + location: + row: 565 + column: 6 + end_location: + row: 565 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -825,13 +868,14 @@ expression: diagnostics row: 573 column: 9 fix: - content: "args," - location: - row: 573 - column: 5 - end_location: - row: 573 - column: 9 + edits: + - content: "args," + location: + row: 573 + column: 5 + end_location: + row: 573 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -845,13 +889,14 @@ expression: diagnostics row: 577 column: 9 fix: - content: "args," - location: - row: 577 - column: 5 - end_location: - row: 577 - column: 9 + edits: + - content: "args," + location: + row: 577 + column: 5 + end_location: + row: 577 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -865,13 +910,14 @@ expression: diagnostics row: 583 column: 9 fix: - content: "args," - location: - row: 583 - column: 5 - end_location: - row: 583 - column: 9 + edits: + - content: "args," + location: + row: 583 + column: 5 + end_location: + row: 583 + column: 9 parent: ~ - kind: name: MissingTrailingComma @@ -885,13 +931,14 @@ expression: diagnostics row: 590 column: 12 fix: - content: "kwargs," - location: - row: 590 - column: 6 - end_location: - row: 590 - column: 12 + edits: + - content: "kwargs," + location: + row: 590 + column: 6 + end_location: + row: 590 + column: 12 parent: ~ - kind: name: MissingTrailingComma @@ -905,13 +952,14 @@ expression: diagnostics row: 598 column: 14 fix: - content: "kwarg_only," - location: - row: 598 - column: 4 - end_location: - row: 598 - column: 14 + edits: + - content: "kwarg_only," + location: + row: 598 + column: 4 + end_location: + row: 598 + column: 14 parent: ~ - kind: name: MissingTrailingComma @@ -925,13 +973,14 @@ expression: diagnostics row: 627 column: 19 fix: - content: "}," - location: - row: 627 - column: 18 - end_location: - row: 627 - column: 19 + edits: + - content: "}," + location: + row: 627 + column: 18 + end_location: + row: 627 + column: 19 parent: ~ - kind: name: MissingTrailingComma @@ -945,12 +994,13 @@ expression: diagnostics row: 632 column: 41 fix: - content: ")," - location: - row: 632 - column: 40 - end_location: - row: 632 - column: 41 + edits: + - content: ")," + location: + row: 632 + column: 40 + end_location: + row: 632 + column: 41 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap index cf32bd5e13e677..d849bb8d10e543 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C400_C400.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 29 fix: - content: "[x for x in range(3)]" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 29 + edits: + - content: "[x for x in range(3)]" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 29 parent: ~ - kind: name: UnnecessaryGeneratorList @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 1 fix: - content: "[\n x for x in range(3)\n]" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "[\n x for x in range(3)\n]" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap index b7db1be95efaac..d515ed3e7f5e4f 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C401_C401.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 28 fix: - content: "{x for x in range(3)}" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 28 + edits: + - content: "{x for x in range(3)}" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 28 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x for x in range(3)\n}" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x for x in range(3)\n}" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 48 fix: - content: " {a if a < 6 else 0 for a in range(3)} " - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 48 + edits: + - content: " {a if a < 6 else 0 for a in range(3)} " + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 48 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "{a if a < 6 else 0 for a in range(3)}" - location: - row: 6 - column: 16 - end_location: - row: 6 - column: 57 + edits: + - content: "{a if a < 6 else 0 for a in range(3)}" + location: + row: 6 + column: 16 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: UnnecessaryGeneratorSet @@ -94,12 +98,13 @@ expression: diagnostics row: 7 column: 39 fix: - content: " {a for a in range(3)} " - location: - row: 7 - column: 15 - end_location: - row: 7 - column: 39 + edits: + - content: " {a for a in range(3)} " + location: + row: 7 + column: 15 + end_location: + row: 7 + column: 39 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap index 84c336712bc760..930efa31b876b6 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C402_C402.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 30 fix: - content: "{x: x for x in range(3)}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 30 + edits: + - content: "{x: x for x in range(3)}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 30 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x: x for x in range(3)\n}" - location: - row: 2 - column: 0 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x: x for x in range(3)\n}" + location: + row: 2 + column: 0 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 37 fix: - content: " {x: x for x in range(3)} " - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 37 + edits: + - content: " {x: x for x in range(3)} " + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 37 parent: ~ - kind: name: UnnecessaryGeneratorDict @@ -74,12 +77,13 @@ expression: diagnostics row: 7 column: 45 fix: - content: " {x: x for x in range(3)} " - location: - row: 7 - column: 15 - end_location: - row: 7 - column: 45 + edits: + - content: " {x: x for x in range(3)} " + location: + row: 7 + column: 15 + end_location: + row: 7 + column: 45 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap index a39ed25045ef07..91fb7bd211669e 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C403_C403.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 30 fix: - content: "{x for x in range(3)}" - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 30 + edits: + - content: "{x for x in range(3)}" + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 30 parent: ~ - kind: name: UnnecessaryListComprehensionSet @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 1 fix: - content: "{\n x for x in range(3)\n}" - location: - row: 2 - column: 4 - end_location: - row: 4 - column: 1 + edits: + - content: "{\n x for x in range(3)\n}" + location: + row: 2 + column: 4 + end_location: + row: 4 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap index 536493cb5dc7df..b8fd33ecbd7559 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C404_C404.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 32 fix: - content: "{i: i for i in range(3)}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 32 + edits: + - content: "{i: i for i in range(3)}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap index f4ce11b013846b..311b45fdbc10af 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C405_C405.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: "{1, 2}" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 11 + edits: + - content: "{1, 2}" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "{1, 2}" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 11 + edits: + - content: "{1, 2}" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 11 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 7 fix: - content: set() - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 7 + edits: + - content: set() + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 7 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 7 fix: - content: set() - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 7 + edits: + - content: set() + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 7 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 9 fix: - content: "{1}" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 9 + edits: + - content: "{1}" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 9 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -114,13 +119,14 @@ expression: diagnostics row: 9 column: 2 fix: - content: "{\n 1,\n}" - location: - row: 7 - column: 0 - end_location: - row: 9 - column: 2 + edits: + - content: "{\n 1,\n}" + location: + row: 7 + column: 0 + end_location: + row: 9 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -134,13 +140,14 @@ expression: diagnostics row: 12 column: 2 fix: - content: "{\n 1,\n}" - location: - row: 10 - column: 0 - end_location: - row: 12 - column: 2 + edits: + - content: "{\n 1,\n}" + location: + row: 10 + column: 0 + end_location: + row: 12 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -154,13 +161,14 @@ expression: diagnostics row: 15 column: 1 fix: - content: "{1}" - location: - row: 13 - column: 0 - end_location: - row: 15 - column: 1 + edits: + - content: "{1}" + location: + row: 13 + column: 0 + end_location: + row: 15 + column: 1 parent: ~ - kind: name: UnnecessaryLiteralSet @@ -174,12 +182,13 @@ expression: diagnostics row: 18 column: 1 fix: - content: "{1,}" - location: - row: 16 - column: 0 - end_location: - row: 18 - column: 1 + edits: + - content: "{1,}" + location: + row: 16 + column: 0 + end_location: + row: 18 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap index 01d7fb247708fe..ddf665ffabc8e7 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C406_C406.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 19 fix: - content: "{1: 2}" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 19 + edits: + - content: "{1: 2}" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 20 fix: - content: "{1: 2,}" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 20 + edits: + - content: "{1: 2,}" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 20 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 13 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 13 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 13 parent: ~ - kind: name: UnnecessaryLiteralDict @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 13 fix: - content: "{}" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 13 + edits: + - content: "{}" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap index 19e087d78b8a1a..80ccc84fe1f08d 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: () - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 11 + edits: + - content: () + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "[]" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "[]" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 11 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 11 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 14 fix: - content: "{\"a\": 1}" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 14 + edits: + - content: "{\"a\": 1}" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap index 9970b164e33f60..031d4d0077b239 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C408_C408.py_allow_dict_calls_with_keyword_arguments.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 11 fix: - content: () - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 11 + edits: + - content: () + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 11 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "[]" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "[]" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: UnnecessaryCollectionCall @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 11 fix: - content: "{}" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 11 + edits: + - content: "{}" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap index 7b6219eac6c585..3df44dfe04bf01 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C409_C409.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: () - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 14 + edits: + - content: () + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 18 fix: - content: "(1, 2)" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 18 + edits: + - content: "(1, 2)" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 18 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "(1, 2)" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 18 + edits: + - content: "(1, 2)" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 18 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 2 fix: - content: "(\n 1,\n 2\n)" - location: - row: 4 - column: 5 - end_location: - row: 7 - column: 2 + edits: + - content: "(\n 1,\n 2\n)" + location: + row: 4 + column: 5 + end_location: + row: 7 + column: 2 parent: ~ - kind: name: UnnecessaryLiteralWithinTupleCall @@ -94,12 +98,13 @@ expression: diagnostics row: 10 column: 1 fix: - content: "(1, 2)" - location: - row: 8 - column: 5 - end_location: - row: 10 - column: 1 + edits: + - content: "(1, 2)" + location: + row: 8 + column: 5 + end_location: + row: 10 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap index d880407494325a..27a7e5b7412a72 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C410_C410.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 17 fix: - content: "[1, 2]" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 17 + edits: + - content: "[1, 2]" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 17 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "[1, 2]" - location: - row: 2 - column: 5 - end_location: - row: 2 - column: 17 + edits: + - content: "[1, 2]" + location: + row: 2 + column: 5 + end_location: + row: 2 + column: 17 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 13 fix: - content: "[]" - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 13 + edits: + - content: "[]" + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 13 parent: ~ - kind: name: UnnecessaryLiteralWithinListCall @@ -74,12 +77,13 @@ expression: diagnostics row: 4 column: 13 fix: - content: "[]" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 13 + edits: + - content: "[]" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap index 699c9e5bdd755d..8daaa48bad3cd8 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C411_C411.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 20 fix: - content: "[i for i in x]" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 20 + edits: + - content: "[i for i in x]" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap index 10654bda4eb319..5ed1afc07c309c 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C413_C413.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: sorted(x) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 15 + edits: + - content: sorted(x) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "sorted(x, reverse=True)" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 19 + edits: + - content: "sorted(x, reverse=True)" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 36 fix: - content: "sorted(x, key=lambda e: e, reverse=True)" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 36 + edits: + - content: "sorted(x, key=lambda e: e, reverse=True)" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 36 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 33 fix: - content: "sorted(x, reverse=False)" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 33 + edits: + - content: "sorted(x, reverse=False)" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 33 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 50 fix: - content: "sorted(x, key=lambda e: e, reverse=False)" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 50 + edits: + - content: "sorted(x, key=lambda e: e, reverse=False)" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 50 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -114,13 +119,14 @@ expression: diagnostics row: 8 column: 50 fix: - content: "sorted(x, reverse=False, key=lambda e: e)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 50 + edits: + - content: "sorted(x, reverse=False, key=lambda e: e)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 50 parent: ~ - kind: name: UnnecessaryCallAroundSorted @@ -134,12 +140,13 @@ expression: diagnostics row: 9 column: 34 fix: - content: "sorted(x, reverse=True)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 34 + edits: + - content: "sorted(x, reverse=True)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap index df977690d032ca..92368ca698b011 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C414_C414.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: list(x) - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 13 + edits: + - content: list(x) + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 14 fix: - content: list(x) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 14 + edits: + - content: list(x) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: tuple(x) - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 14 + edits: + - content: tuple(x) + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: tuple(x) - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 15 + edits: + - content: tuple(x) + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 11 fix: - content: set(x) - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 11 + edits: + - content: set(x) + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 11 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 12 fix: - content: set(x) - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 12 + edits: + - content: set(x) + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 12 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -134,13 +140,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: set(x) - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 13 + edits: + - content: set(x) + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 13 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -154,13 +161,14 @@ expression: diagnostics row: 9 column: 14 fix: - content: set(x) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 14 + edits: + - content: set(x) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 14 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 16 fix: - content: set(x) - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 16 + edits: + - content: set(x) + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 16 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -194,13 +203,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: sorted(x) - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 15 + edits: + - content: sorted(x) + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 15 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -214,13 +224,14 @@ expression: diagnostics row: 12 column: 16 fix: - content: sorted(x) - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 16 + edits: + - content: sorted(x) + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 16 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -234,13 +245,14 @@ expression: diagnostics row: 13 column: 17 fix: - content: sorted(x) - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 17 + edits: + - content: sorted(x) + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 17 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -254,13 +266,14 @@ expression: diagnostics row: 14 column: 19 fix: - content: sorted(x) - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 19 + edits: + - content: sorted(x) + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 19 parent: ~ - kind: name: UnnecessaryDoubleCastOrProcess @@ -274,12 +287,13 @@ expression: diagnostics row: 20 column: 1 fix: - content: "tuple(\n [x, 3, \"hell\"\\\n \"o\"]\n )" - location: - row: 15 - column: 0 - end_location: - row: 20 - column: 1 + edits: + - content: "tuple(\n [x, 3, \"hell\"\\\n \"o\"]\n )" + location: + row: 15 + column: 0 + end_location: + row: 20 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap index d919696982166e..0b5adff9a7e927 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C415_C415.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySubscriptReversal @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 5 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap index 024e557a99fd17..b63005d7520f9c 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C416_C416.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 14 fix: - content: list(x) - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 14 + edits: + - content: list(x) + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 14 parent: ~ - kind: name: UnnecessaryComprehension @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 14 fix: - content: set(x) - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 14 + edits: + - content: set(x) + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 14 parent: ~ - kind: name: UnnecessaryComprehension @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: dict(y) - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 20 + edits: + - content: dict(y) + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: UnnecessaryComprehension @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 28 fix: - content: dict(d.items()) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 28 + edits: + - content: dict(d.items()) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap index efa0e02d8ee2a1..26ec8bfbe43f73 100644 --- a/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap +++ b/crates/ruff/src/rules/flake8_comprehensions/snapshots/ruff__rules__flake8_comprehensions__tests__C417_C417.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: (x + 1 for x in nums) - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 26 + edits: + - content: (x + 1 for x in nums) + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: UnnecessaryMap @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 27 fix: - content: (str(x) for x in nums) - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 27 + edits: + - content: (str(x) for x in nums) + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 27 parent: ~ - kind: name: UnnecessaryMap @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 32 fix: - content: "[x * 2 for x in nums]" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 32 + edits: + - content: "[x * 2 for x in nums]" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 32 parent: ~ - kind: name: UnnecessaryMap @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 36 fix: - content: "{x % 2 == 0 for x in nums}" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 36 + edits: + - content: "{x % 2 == 0 for x in nums}" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 36 parent: ~ - kind: name: UnnecessaryMap @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 36 fix: - content: "{v: v**2 for v in nums}" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 36 + edits: + - content: "{v: v**2 for v in nums}" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 36 parent: ~ - kind: name: UnnecessaryMap @@ -114,13 +119,14 @@ expression: diagnostics row: 8 column: 26 fix: - content: "(\"const\" for _ in nums)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 26 + edits: + - content: "(\"const\" for _ in nums)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 26 parent: ~ - kind: name: UnnecessaryMap @@ -134,13 +140,14 @@ expression: diagnostics row: 9 column: 24 fix: - content: (3.0 for _ in nums) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 24 + edits: + - content: (3.0 for _ in nums) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 24 parent: ~ - kind: name: UnnecessaryMap @@ -154,13 +161,14 @@ expression: diagnostics row: 10 column: 63 fix: - content: "(x in nums and \"1\" or \"0\" for x in range(123))" - location: - row: 10 - column: 12 - end_location: - row: 10 - column: 63 + edits: + - content: "(x in nums and \"1\" or \"0\" for x in range(123))" + location: + row: 10 + column: 12 + end_location: + row: 10 + column: 63 parent: ~ - kind: name: UnnecessaryMap @@ -174,13 +182,14 @@ expression: diagnostics row: 11 column: 44 fix: - content: "(isinstance(v, dict) for v in nums)" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 44 + edits: + - content: "(isinstance(v, dict) for v in nums)" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 44 parent: ~ - kind: name: UnnecessaryMap @@ -194,13 +203,14 @@ expression: diagnostics row: 12 column: 35 fix: - content: (v for v in nums) - location: - row: 12 - column: 13 - end_location: - row: 12 - column: 35 + edits: + - content: (v for v in nums) + location: + row: 12 + column: 13 + end_location: + row: 12 + column: 35 parent: ~ - kind: name: UnnecessaryMap @@ -214,13 +224,14 @@ expression: diagnostics row: 15 column: 43 fix: - content: " {x % 2 == 0 for x in nums} " - location: - row: 15 - column: 7 - end_location: - row: 15 - column: 43 + edits: + - content: " {x % 2 == 0 for x in nums} " + location: + row: 15 + column: 7 + end_location: + row: 15 + column: 43 parent: ~ - kind: name: UnnecessaryMap @@ -234,13 +245,14 @@ expression: diagnostics row: 16 column: 43 fix: - content: " {v: v**2 for v in nums} " - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 43 + edits: + - content: " {v: v**2 for v in nums} " + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 43 parent: ~ - kind: name: UnnecessaryMap @@ -253,6 +265,7 @@ expression: diagnostics end_location: row: 21 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap index 5aa766e1583a27..0f6a86011e16b1 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ001_DTZ001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeWithoutTzinfo @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 21 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap index a6c95716ba6d32..95000634c1bf40 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ002_DTZ002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeToday @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap index 3876b15c6f5fd6..2e395fd66e8fb1 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ003_DTZ003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeUtcnow @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap index 86d06b24928910..62b7091512993f 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ004_DTZ004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeUtcfromtimestamp @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap index e074b603f106ce..fac262f86f2b76 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ005_DTZ005.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeNowWithoutTzinfo @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 18 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap index a7ba9c66fb5c0b..2dbae5d21e3425 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ006_DTZ006.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 43 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeFromtimestamp @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 18 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap index 3325a865e23a62..8694ec19afab33 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ007_DTZ007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 52 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDatetimeStrptimeWithoutZone @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 35 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap index bb6ef5d79cc51b..ae8fe640220e74 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ011_DTZ011.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDateToday @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap index 8de285a1bec83f..6d0e2ff5a01c8b 100644 --- a/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap +++ b/crates/ruff/src/rules/flake8_datetimez/snapshots/ruff__rules__flake8_datetimez__tests__DTZ012_DTZ012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CallDateFromtimestamp @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap b/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap index 7b9b19bebfb9d6..38a1a09748ec78 100644 --- a/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap +++ b/crates/ruff/src/rules/flake8_debugger/snapshots/ruff__rules__flake8_debugger__tests__T100_T100.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 12 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Debugger @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 13 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap index 99ba364723cf59..c041c953d5a691 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ001_DJ001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 16 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 17 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 18 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 19 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 20 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 21 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 61 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 67 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNullableModelStringField @@ -234,6 +251,7 @@ expression: diagnostics end_location: row: 30 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap index 5a86561a046259..da9bcdbd53884c 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ003_DJ003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoLocalsInRenderFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 57 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap index 1cdaff23ee8049..b224c415ab164f 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ006_DJ006.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap index c9113abcf042f4..5c878ad61bbfa4 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ007_DJ007.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoAllWithModelForm @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap index e0b6192287c8c6..b62eec87d1d532 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ008_DJ008.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 18 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoModelWithoutDunderStr @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 33 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoModelWithoutDunderStr @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 47 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap index 392f1d4bc7422e..503e18886c163c 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ012_DJ012.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 28 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 43 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 57 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoUnorderedBodyContentInModel @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 70 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap index ec9e715f78bcb0..74f238f5ca0818 100644 --- a/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap +++ b/crates/ruff/src/rules/flake8_django/snapshots/ruff__rules__flake8_django__tests__DJ013_DJ013.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DjangoNonLeadingReceiverDecorator @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 35 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap index 11953d88fab00f..61cd7a9c3df1fc 100644 --- a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap +++ b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__custom.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringInException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DotFormatInException @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 18 column: 81 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap index 65c53e83ed2e74..4f15af64677ec2 100644 --- a/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_errmsg/snapshots/ruff__rules__flake8_errmsg__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RawStringInException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FStringInException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DotFormatInException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 18 column: 81 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap index b3f3f24af7419f..10ceb272f97bfa 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE001_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap index 0385da5a1cf116..c8d820b70df948 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE002_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap index 568ca113e09763..e3d62484ef459a 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap index fb781d1198dac5..963c1418b7e68f 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_1.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 4 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 4 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap index 0385da5a1cf116..c8d820b70df948 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE004_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap index 292472d5c5f189..b4c94ecb90f99f 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap index f6258b4dfb982d..18f92b7231ff21 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap index 46b0655e08c079..6887eb924ce984 100644 --- a/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap +++ b/crates/ruff/src/rules/flake8_executable/snapshots/ruff__rules__flake8_executable__tests__EXE005_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap index 45749af82942bb..1ff6af28b3b882 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC001_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SingleLineImplicitStringConcatenation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap index 39275dd7c04b97..3050cc0b0b6432 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC002_ISC.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap index c456628a15b379..30c76f5cd8cf5d 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__ISC003_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap index 45749af82942bb..1ff6af28b3b882 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC001_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SingleLineImplicitStringConcatenation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 1 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap index 1564ce7da40d92..18d7c3a92b5297 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC002_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 25 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiLineImplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 35 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap index c456628a15b379..30c76f5cd8cf5d 100644 --- a/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap +++ b/crates/ruff/src/rules/flake8_implicit_str_concat/snapshots/ruff__rules__flake8_implicit_str_concat__tests__multiline_ISC003_ISC.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ExplicitStringConcatenation @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap index dc82abb0e77989..ef1513d700991e 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__custom.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 11 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 13 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 14 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 15 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 16 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 18 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 19 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 20 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 21 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 22 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 23 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 24 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 25 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 26 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 27 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 28 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 29 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 30 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -364,6 +391,7 @@ expression: diagnostics end_location: row: 31 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap index 4099963bfbb856..991df77a62ff84 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__defaults.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap index 4ebb3c5e699741..869ab96bdbcf1d 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__from_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 9 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 10 column: 61 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap index ee169a6bc9bf67..c305440d12fd69 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__override_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap index 3fa3cc89eca066..6545f8eaee7b8c 100644 --- a/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap +++ b/crates/ruff/src/rules/flake8_import_conventions/snapshots/ruff__rules__flake8_import_conventions__tests__remove_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnconventionalImportAlias @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 13 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap index 39fe94410443c1..338e11c635cd8b 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 63 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringFormat @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 9 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap index ea4bc943842f97..9d80444bc7edc0 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingPercentFormat @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap index 4ce0e9cf6f64a5..0cf36fb8efe02f 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingStringConcat @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 50 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap index 6d3a7ff1d6304e..cf08da91cf9754 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingFString @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 41 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap index 8acad06bf0a301..d32b8cd648449b 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G010.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: warning - location: - row: 3 - column: 8 - end_location: - row: 3 - column: 12 + edits: + - content: warning + location: + row: 3 + column: 8 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap index 772347a51fe36a..e0604197d05039 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap index 52f92e5f0e0b63..da6a5b6b16e075 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G101_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap index 8a84f8095e4c37..ed2474285b1670 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingExcInfo @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap index 618250295301b3..f861f21132a211 100644 --- a/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap +++ b/crates/ruff/src/rules/flake8_logging_format/snapshots/ruff__rules__flake8_logging_format__tests__G202.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingRedundantExcInfo @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 60 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap index b38e65e42ff17a..f835ead1724de8 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_empty.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap index 0adfeb0881d980..a4f90685e4a71f 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_nonempty.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap index 8a931e5242bd9d..c509ccf5514924 100644 --- a/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap +++ b/crates/ruff/src/rules/flake8_no_pep420/snapshots/ruff__rules__flake8_no_pep420__tests__test_fail_shebang.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap index a82fccfa28e892..fb6a863790bb2a 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE790_PIE790.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -54,13 +56,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: "" - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 10 + edits: + - content: "" + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 10 parent: ~ - kind: name: UnnecessaryPass @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 8 fix: - content: "" - location: - row: 21 - column: 0 - end_location: - row: 22 - column: 0 + edits: + - content: "" + location: + row: 21 + column: 0 + end_location: + row: 22 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -94,13 +98,14 @@ expression: diagnostics row: 28 column: 8 fix: - content: "" - location: - row: 28 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: "" + location: + row: 28 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 8 fix: - content: "" - location: - row: 35 - column: 0 - end_location: - row: 36 - column: 0 + edits: + - content: "" + location: + row: 35 + column: 0 + end_location: + row: 36 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -134,13 +140,14 @@ expression: diagnostics row: 42 column: 8 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 43 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 43 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -154,13 +161,14 @@ expression: diagnostics row: 50 column: 8 fix: - content: "" - location: - row: 50 - column: 0 - end_location: - row: 51 - column: 0 + edits: + - content: "" + location: + row: 50 + column: 0 + end_location: + row: 51 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -174,13 +182,14 @@ expression: diagnostics row: 58 column: 8 fix: - content: "" - location: - row: 58 - column: 0 - end_location: - row: 59 - column: 0 + edits: + - content: "" + location: + row: 58 + column: 0 + end_location: + row: 59 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -194,13 +203,14 @@ expression: diagnostics row: 65 column: 8 fix: - content: "" - location: - row: 65 - column: 0 - end_location: - row: 66 - column: 0 + edits: + - content: "" + location: + row: 65 + column: 0 + end_location: + row: 66 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -214,13 +224,14 @@ expression: diagnostics row: 74 column: 8 fix: - content: "" - location: - row: 74 - column: 0 - end_location: - row: 75 - column: 0 + edits: + - content: "" + location: + row: 74 + column: 0 + end_location: + row: 75 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -234,13 +245,14 @@ expression: diagnostics row: 79 column: 8 fix: - content: "" - location: - row: 79 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "" + location: + row: 79 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -254,13 +266,14 @@ expression: diagnostics row: 83 column: 8 fix: - content: "" - location: - row: 83 - column: 0 - end_location: - row: 84 - column: 0 + edits: + - content: "" + location: + row: 83 + column: 0 + end_location: + row: 84 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -274,13 +287,14 @@ expression: diagnostics row: 87 column: 8 fix: - content: "" - location: - row: 87 - column: 0 - end_location: - row: 88 - column: 0 + edits: + - content: "" + location: + row: 87 + column: 0 + end_location: + row: 88 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -294,13 +308,14 @@ expression: diagnostics row: 92 column: 8 fix: - content: "" - location: - row: 92 - column: 0 - end_location: - row: 93 - column: 0 + edits: + - content: "" + location: + row: 92 + column: 0 + end_location: + row: 93 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -314,13 +329,14 @@ expression: diagnostics row: 96 column: 8 fix: - content: "" - location: - row: 96 - column: 0 - end_location: - row: 97 - column: 0 + edits: + - content: "" + location: + row: 96 + column: 0 + end_location: + row: 97 + column: 0 parent: ~ - kind: name: UnnecessaryPass @@ -334,12 +350,13 @@ expression: diagnostics row: 101 column: 8 fix: - content: "" - location: - row: 101 - column: 4 - end_location: - row: 101 - column: 10 + edits: + - content: "" + location: + row: 101 + column: 4 + end_location: + row: 101 + column: 10 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap index f33101674f193d..4d6fac48195513 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE794_PIE794.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 24 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 24 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -54,13 +56,14 @@ expression: diagnostics row: 23 column: 23 fix: - content: "" - location: - row: 23 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "" + location: + row: 23 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ - kind: name: DuplicateClassFieldDefinition @@ -74,12 +77,13 @@ expression: diagnostics row: 40 column: 23 fix: - content: "" - location: - row: 40 - column: 0 - end_location: - row: 41 - column: 0 + edits: + - content: "" + location: + row: 40 + column: 0 + end_location: + row: 41 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap index 0c1213690c6bff..73657559d292fa 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE796_PIE796.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 26 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 33 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonUniqueEnums @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 54 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap index 0340c05a869d3b..97c2126662d6c2 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE800_PIE800.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessarySpread @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap index a1d76581909e9e..d23e0c30e2aac0 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE802_PIE802.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 23 fix: - content: any(x.id for x in bar) - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 24 + edits: + - content: any(x.id for x in bar) + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 24 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: all(x.id for x in bar) - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 24 + edits: + - content: all(x.id for x in bar) + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 24 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -54,13 +56,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "any( # first comment\n x.id for x in bar # second comment\n)" - location: - row: 11 - column: 0 - end_location: - row: 13 - column: 1 + edits: + - content: "any( # first comment\n x.id for x in bar # second comment\n)" + location: + row: 11 + column: 0 + end_location: + row: 13 + column: 1 parent: ~ - kind: name: UnnecessaryComprehensionAnyAll @@ -74,12 +77,13 @@ expression: diagnostics row: 15 column: 23 fix: - content: "all( # first comment\n x.id for x in bar # second comment\n)" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 1 + edits: + - content: "all( # first comment\n x.id for x in bar # second comment\n)" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap index eb74b1c063f833..39163f4b7517c5 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE804_PIE804.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDictKwargs @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 9 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap index 70d696c91bf7d5..697a7538e70835 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE807_PIE807.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 53 fix: - content: list - location: - row: 3 - column: 43 - end_location: - row: 3 - column: 53 + edits: + - content: list + location: + row: 3 + column: 43 + end_location: + row: 3 + column: 53 parent: ~ - kind: name: ReimplementedListBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 45 fix: - content: list - location: - row: 7 - column: 35 - end_location: - row: 7 - column: 45 + edits: + - content: list + location: + row: 7 + column: 35 + end_location: + row: 7 + column: 45 parent: ~ - kind: name: ReimplementedListBuiltin @@ -54,12 +56,13 @@ expression: diagnostics row: 11 column: 37 fix: - content: list - location: - row: 11 - column: 27 - end_location: - row: 11 - column: 37 + edits: + - content: list + location: + row: 11 + column: 27 + end_location: + row: 11 + column: 37 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap index 663b10d21fd445..02a01d4b4865fc 100644 --- a/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap +++ b/crates/ruff/src/rules/flake8_pie/snapshots/ruff__rules__flake8_pie__tests__PIE810_PIE810.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "obj.startswith((\"foo\", \"bar\"))" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 46 + edits: + - content: "obj.startswith((\"foo\", \"bar\"))" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: MultipleStartsEndsWith @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 42 fix: - content: "obj.endswith((\"foo\", \"bar\"))" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 42 + edits: + - content: "obj.endswith((\"foo\", \"bar\"))" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 42 parent: ~ - kind: name: MultipleStartsEndsWith @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 42 fix: - content: "obj.startswith((foo, bar))" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 42 + edits: + - content: "obj.startswith((foo, bar))" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 42 parent: ~ - kind: name: MultipleStartsEndsWith @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 44 fix: - content: "obj.startswith((foo, \"foo\"))" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 44 + edits: + - content: "obj.startswith((foo, \"foo\"))" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 44 parent: ~ - kind: name: MultipleStartsEndsWith @@ -94,12 +98,13 @@ expression: diagnostics row: 10 column: 65 fix: - content: "obj.endswith(foo) or obj.startswith((foo, \"foo\"))" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 65 + edits: + - content: "obj.endswith(foo) or obj.startswith((foo, \"foo\"))" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 65 parent: ~ diff --git a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap index 17c1879ad231ff..ea0f7bd5fc07ee 100644 --- a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap +++ b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T201_T201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Print @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap index 5458fbb96cd667..ed14e35b3d00a9 100644 --- a/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap +++ b/crates/ruff/src/rules/flake8_print/snapshots/ruff__rules__flake8_print__tests__T203_T203.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PPrint @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap index cf8b4fcb0b6ce3..12af46a6881dbc 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI001_PYI001.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnprefixedTypeParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnprefixedTypeParam @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap index 8c4709125632ee..78d0b572ae8839 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI006_PYI006.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 14 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 16 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadVersionInfoComparison @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 18 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap index 8090f8af5e8a49..afbf661b8af2cd 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI007_PYI007.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnrecognizedPlatformCheck @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnrecognizedPlatformCheck @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap index a9aa4f172d80b5..8babcae52c9c84 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI008_PYI008.pyi.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap index 04449211461a11..9480fd3458aa48 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI009_PYI009.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PassStatementStubBody @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap index 67cd575147183a..91225970d9b390 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI010_PYI010.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonEmptyStubBody @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonEmptyStubBody @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 12 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap index 303e28060b3b8f..dd6e914a085394 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI011_PYI011.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: "..." - location: - row: 10 - column: 13 - end_location: - row: 10 - column: 23 + edits: + - content: "..." + location: + row: 10 + column: 13 + end_location: + row: 10 + column: 23 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 5 fix: - content: "..." - location: - row: 38 - column: 8 - end_location: - row: 41 - column: 5 + edits: + - content: "..." + location: + row: 38 + column: 8 + end_location: + row: 41 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 58 column: 5 fix: - content: "..." - location: - row: 46 - column: 8 - end_location: - row: 58 - column: 5 + edits: + - content: "..." + location: + row: 46 + column: 8 + end_location: + row: 58 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 66 column: 5 fix: - content: "..." - location: - row: 63 - column: 8 - end_location: - row: 66 - column: 5 + edits: + - content: "..." + location: + row: 63 + column: 8 + end_location: + row: 66 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 73 column: 5 fix: - content: "..." - location: - row: 71 - column: 8 - end_location: - row: 73 - column: 5 + edits: + - content: "..." + location: + row: 71 + column: 8 + end_location: + row: 73 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 80 column: 5 fix: - content: "..." - location: - row: 78 - column: 8 - end_location: - row: 80 - column: 5 + edits: + - content: "..." + location: + row: 78 + column: 8 + end_location: + row: 80 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 5 fix: - content: "..." - location: - row: 85 - column: 8 - end_location: - row: 87 - column: 5 + edits: + - content: "..." + location: + row: 85 + column: 8 + end_location: + row: 87 + column: 5 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 91 column: 11 fix: - content: "..." - location: - row: 90 - column: 13 - end_location: - row: 91 - column: 11 + edits: + - content: "..." + location: + row: 90 + column: 13 + end_location: + row: 91 + column: 11 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 95 column: 12 fix: - content: "..." - location: - row: 94 - column: 13 - end_location: - row: 95 - column: 12 + edits: + - content: "..." + location: + row: 94 + column: 13 + end_location: + row: 95 + column: 12 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 99 column: 7 fix: - content: "..." - location: - row: 98 - column: 16 - end_location: - row: 99 - column: 7 + edits: + - content: "..." + location: + row: 98 + column: 16 + end_location: + row: 99 + column: 7 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -214,13 +224,14 @@ expression: diagnostics row: 103 column: 7 fix: - content: "..." - location: - row: 102 - column: 13 - end_location: - row: 103 - column: 7 + edits: + - content: "..." + location: + row: 102 + column: 13 + end_location: + row: 103 + column: 7 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -234,13 +245,14 @@ expression: diagnostics row: 107 column: 8 fix: - content: "..." - location: - row: 106 - column: 17 - end_location: - row: 107 - column: 8 + edits: + - content: "..." + location: + row: 106 + column: 17 + end_location: + row: 107 + column: 8 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -254,13 +266,14 @@ expression: diagnostics row: 111 column: 10 fix: - content: "..." - location: - row: 110 - column: 17 - end_location: - row: 111 - column: 10 + edits: + - content: "..." + location: + row: 110 + column: 17 + end_location: + row: 111 + column: 10 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -274,13 +287,14 @@ expression: diagnostics row: 138 column: 18 fix: - content: "..." - location: - row: 138 - column: 15 - end_location: - row: 138 - column: 18 + edits: + - content: "..." + location: + row: 138 + column: 15 + end_location: + row: 138 + column: 18 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -294,13 +308,14 @@ expression: diagnostics row: 141 column: 21 fix: - content: "..." - location: - row: 141 - column: 15 - end_location: - row: 141 - column: 21 + edits: + - content: "..." + location: + row: 141 + column: 15 + end_location: + row: 141 + column: 21 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -314,13 +329,14 @@ expression: diagnostics row: 147 column: 24 fix: - content: "..." - location: - row: 147 - column: 15 - end_location: - row: 147 - column: 24 + edits: + - content: "..." + location: + row: 147 + column: 15 + end_location: + row: 147 + column: 24 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -334,13 +350,14 @@ expression: diagnostics row: 151 column: 8 fix: - content: "..." - location: - row: 150 - column: 17 - end_location: - row: 151 - column: 8 + edits: + - content: "..." + location: + row: 150 + column: 17 + end_location: + row: 151 + column: 8 parent: ~ - kind: name: TypedArgumentDefaultInStub @@ -354,12 +371,13 @@ expression: diagnostics row: 160 column: 8 fix: - content: "..." - location: - row: 159 - column: 13 - end_location: - row: 160 - column: 8 + edits: + - content: "..." + location: + row: 159 + column: 13 + end_location: + row: 160 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap index caea80f524cb9e..8121f1de46c647 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI014_PYI014.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 16 fix: - content: "..." - location: - row: 3 - column: 6 - end_location: - row: 3 - column: 16 + edits: + - content: "..." + location: + row: 3 + column: 6 + end_location: + row: 3 + column: 16 parent: ~ - kind: name: ArgumentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 32 column: 5 fix: - content: "..." - location: - row: 29 - column: 6 - end_location: - row: 32 - column: 5 + edits: + - content: "..." + location: + row: 29 + column: 6 + end_location: + row: 32 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 47 column: 5 fix: - content: "..." - location: - row: 35 - column: 6 - end_location: - row: 47 - column: 5 + edits: + - content: "..." + location: + row: 35 + column: 6 + end_location: + row: 47 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 53 column: 5 fix: - content: "..." - location: - row: 50 - column: 6 - end_location: - row: 53 - column: 5 + edits: + - content: "..." + location: + row: 50 + column: 6 + end_location: + row: 53 + column: 5 parent: ~ - kind: name: ArgumentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 56 column: 18 fix: - content: "..." - location: - row: 56 - column: 6 - end_location: - row: 56 - column: 18 + edits: + - content: "..." + location: + row: 56 + column: 6 + end_location: + row: 56 + column: 18 parent: ~ - kind: name: ArgumentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 59 column: 21 fix: - content: "..." - location: - row: 59 - column: 6 - end_location: - row: 59 - column: 21 + edits: + - content: "..." + location: + row: 59 + column: 6 + end_location: + row: 59 + column: 21 parent: ~ - kind: name: ArgumentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 61 column: 45 fix: - content: "..." - location: - row: 61 - column: 10 - end_location: - row: 61 - column: 45 + edits: + - content: "..." + location: + row: 61 + column: 10 + end_location: + row: 61 + column: 45 parent: ~ - kind: name: ArgumentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 63 column: 19 fix: - content: "..." - location: - row: 63 - column: 6 - end_location: - row: 63 - column: 19 + edits: + - content: "..." + location: + row: 63 + column: 6 + end_location: + row: 63 + column: 19 parent: ~ - kind: name: ArgumentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 66 column: 21 fix: - content: "..." - location: - row: 66 - column: 6 - end_location: - row: 66 - column: 21 + edits: + - content: "..." + location: + row: 66 + column: 6 + end_location: + row: 66 + column: 21 parent: ~ - kind: name: ArgumentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 69 column: 15 fix: - content: "..." - location: - row: 69 - column: 6 - end_location: - row: 69 - column: 15 + edits: + - content: "..." + location: + row: 69 + column: 6 + end_location: + row: 69 + column: 15 parent: ~ - kind: name: ArgumentDefaultInStub @@ -214,13 +224,14 @@ expression: diagnostics row: 72 column: 11 fix: - content: "..." - location: - row: 72 - column: 6 - end_location: - row: 72 - column: 11 + edits: + - content: "..." + location: + row: 72 + column: 6 + end_location: + row: 72 + column: 11 parent: ~ - kind: name: ArgumentDefaultInStub @@ -234,13 +245,14 @@ expression: diagnostics row: 75 column: 13 fix: - content: "..." - location: - row: 75 - column: 6 - end_location: - row: 75 - column: 13 + edits: + - content: "..." + location: + row: 75 + column: 6 + end_location: + row: 75 + column: 13 parent: ~ - kind: name: ArgumentDefaultInStub @@ -254,12 +266,13 @@ expression: diagnostics row: 78 column: 19 fix: - content: "..." - location: - row: 78 - column: 6 - end_location: - row: 78 - column: 19 + edits: + - content: "..." + location: + row: 78 + column: 6 + end_location: + row: 78 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap index 8424002ee2f400..90222cb269c84f 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI015_PYI015.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 57 fix: - content: "..." - location: - row: 40 - column: 22 - end_location: - row: 40 - column: 57 + edits: + - content: "..." + location: + row: 40 + column: 22 + end_location: + row: 40 + column: 57 parent: ~ - kind: name: AssignmentDefaultInStub @@ -34,13 +35,14 @@ expression: diagnostics row: 41 column: 34 fix: - content: "..." - location: - row: 41 - column: 22 - end_location: - row: 41 - column: 34 + edits: + - content: "..." + location: + row: 41 + column: 22 + end_location: + row: 41 + column: 34 parent: ~ - kind: name: AssignmentDefaultInStub @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 37 fix: - content: "..." - location: - row: 42 - column: 22 - end_location: - row: 42 - column: 37 + edits: + - content: "..." + location: + row: 42 + column: 22 + end_location: + row: 42 + column: 37 parent: ~ - kind: name: AssignmentDefaultInStub @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 35 fix: - content: "..." - location: - row: 43 - column: 25 - end_location: - row: 43 - column: 35 + edits: + - content: "..." + location: + row: 43 + column: 25 + end_location: + row: 43 + column: 35 parent: ~ - kind: name: AssignmentDefaultInStub @@ -94,13 +98,14 @@ expression: diagnostics row: 44 column: 69 fix: - content: "..." - location: - row: 44 - column: 46 - end_location: - row: 44 - column: 69 + edits: + - content: "..." + location: + row: 44 + column: 46 + end_location: + row: 44 + column: 69 parent: ~ - kind: name: AssignmentDefaultInStub @@ -114,13 +119,14 @@ expression: diagnostics row: 45 column: 53 fix: - content: "..." - location: - row: 45 - column: 30 - end_location: - row: 45 - column: 53 + edits: + - content: "..." + location: + row: 45 + column: 30 + end_location: + row: 45 + column: 53 parent: ~ - kind: name: AssignmentDefaultInStub @@ -134,13 +140,14 @@ expression: diagnostics row: 46 column: 47 fix: - content: "..." - location: - row: 46 - column: 36 - end_location: - row: 46 - column: 47 + edits: + - content: "..." + location: + row: 46 + column: 36 + end_location: + row: 46 + column: 47 parent: ~ - kind: name: AssignmentDefaultInStub @@ -154,13 +161,14 @@ expression: diagnostics row: 48 column: 43 fix: - content: "..." - location: - row: 48 - column: 27 - end_location: - row: 48 - column: 43 + edits: + - content: "..." + location: + row: 48 + column: 27 + end_location: + row: 48 + column: 43 parent: ~ - kind: name: AssignmentDefaultInStub @@ -174,13 +182,14 @@ expression: diagnostics row: 49 column: 23 fix: - content: "..." - location: - row: 49 - column: 10 - end_location: - row: 49 - column: 23 + edits: + - content: "..." + location: + row: 49 + column: 10 + end_location: + row: 49 + column: 23 parent: ~ - kind: name: AssignmentDefaultInStub @@ -194,13 +203,14 @@ expression: diagnostics row: 50 column: 25 fix: - content: "..." - location: - row: 50 - column: 10 - end_location: - row: 50 - column: 25 + edits: + - content: "..." + location: + row: 50 + column: 10 + end_location: + row: 50 + column: 25 parent: ~ - kind: name: AssignmentDefaultInStub @@ -214,12 +224,13 @@ expression: diagnostics row: 51 column: 15 fix: - content: "..." - location: - row: 51 - column: 10 - end_location: - row: 51 - column: 15 + edits: + - content: "..." + location: + row: 51 + column: 10 + end_location: + row: 51 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap index 690e85b6b18981..c4b65aad1b7763 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringInStub @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringInStub @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap index c6efc83c9cb480..d42087af7df132 100644 --- a/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap +++ b/crates/ruff/src/rules/flake8_pyi/snapshots/ruff__rules__flake8_pyi__tests__PYI033_PYI033.pyi.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 127 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 183 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 126 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 132 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 128 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 123 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 128 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 172 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 19 column: 139 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 29 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCommentInStub @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 32 column: 55 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap index cd4a9bb0e23749..72a091d1c6de9b 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 15 fix: - content: () - location: - row: 9 - column: 15 - end_location: - row: 9 - column: 15 + edits: + - content: () + location: + row: 9 + column: 15 + end_location: + row: 9 + column: 15 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 34 column: 8 fix: - content: () - location: - row: 34 - column: 8 - end_location: - row: 34 - column: 8 + edits: + - content: () + location: + row: 34 + column: 8 + end_location: + row: 34 + column: 8 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -54,12 +56,13 @@ expression: diagnostics row: 59 column: 8 fix: - content: () - location: - row: 59 - column: 8 - end_location: - row: 59 - column: 8 + edits: + - content: () + location: + row: 59 + column: 8 + end_location: + row: 59 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap index 9fedc341250329..d8a17a3683ff93 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT001_no_parentheses.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "" - location: - row: 14 - column: 15 - end_location: - row: 14 - column: 17 + edits: + - content: "" + location: + row: 14 + column: 15 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 26 column: 1 fix: - content: "" - location: - row: 24 - column: 15 - end_location: - row: 26 - column: 1 + edits: + - content: "" + location: + row: 24 + column: 15 + end_location: + row: 26 + column: 1 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 39 column: 10 fix: - content: "" - location: - row: 39 - column: 8 - end_location: - row: 39 - column: 10 + edits: + - content: "" + location: + row: 39 + column: 8 + end_location: + row: 39 + column: 10 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 51 column: 1 fix: - content: "" - location: - row: 49 - column: 8 - end_location: - row: 51 - column: 1 + edits: + - content: "" + location: + row: 49 + column: 8 + end_location: + row: 51 + column: 1 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -94,13 +98,14 @@ expression: diagnostics row: 64 column: 10 fix: - content: "" - location: - row: 64 - column: 8 - end_location: - row: 64 - column: 10 + edits: + - content: "" + location: + row: 64 + column: 8 + end_location: + row: 64 + column: 10 parent: ~ - kind: name: PytestFixtureIncorrectParenthesesStyle @@ -114,12 +119,13 @@ expression: diagnostics row: 76 column: 1 fix: - content: "" - location: - row: 74 - column: 8 - end_location: - row: 76 - column: 1 + edits: + - content: "" + location: + row: 74 + column: 8 + end_location: + row: 76 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap index 2c8c743fffc254..44a99eba56178e 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT002.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixturePositionalArgs @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 19 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap index a2390e08df78ec..fb633c8addf19e 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT003.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 32 fix: - content: "" - location: - row: 14 - column: 16 - end_location: - row: 14 - column: 32 + edits: + - content: "" + location: + row: 14 + column: 16 + end_location: + row: 14 + column: 32 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 19 column: 32 fix: - content: "" - location: - row: 19 - column: 16 - end_location: - row: 19 - column: 34 + edits: + - content: "" + location: + row: 19 + column: 16 + end_location: + row: 19 + column: 34 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 51 fix: - content: "" - location: - row: 24 - column: 33 - end_location: - row: 24 - column: 51 + edits: + - content: "" + location: + row: 24 + column: 33 + end_location: + row: 24 + column: 51 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -74,13 +77,14 @@ expression: diagnostics row: 29 column: 51 fix: - content: "" - location: - row: 29 - column: 35 - end_location: - row: 29 - column: 53 + edits: + - content: "" + location: + row: 29 + column: 35 + end_location: + row: 29 + column: 53 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -94,13 +98,14 @@ expression: diagnostics row: 37 column: 46 fix: - content: "" - location: - row: 37 - column: 28 - end_location: - row: 37 - column: 46 + edits: + - content: "" + location: + row: 37 + column: 28 + end_location: + row: 37 + column: 46 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -114,13 +119,14 @@ expression: diagnostics row: 43 column: 20 fix: - content: "" - location: - row: 43 - column: 4 - end_location: - row: 44 - column: 4 + edits: + - content: "" + location: + row: 43 + column: 4 + end_location: + row: 44 + column: 4 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -134,13 +140,14 @@ expression: diagnostics row: 52 column: 20 fix: - content: "" - location: - row: 51 - column: 21 - end_location: - row: 52 - column: 20 + edits: + - content: "" + location: + row: 51 + column: 21 + end_location: + row: 52 + column: 20 parent: ~ - kind: name: PytestExtraneousScopeFunction @@ -154,12 +161,13 @@ expression: diagnostics row: 67 column: 18 fix: - content: "" - location: - row: 66 - column: 4 - end_location: - row: 70 - column: 4 + edits: + - content: "" + location: + row: 66 + column: 4 + end_location: + row: 70 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap index a067775cf4a7e0..e98c03865b70ed 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT004.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 52 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestMissingFixtureNameUnderscore @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 58 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap index 2e21e8b058bf53..d73265fc0d5a0a 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT005.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 42 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectFixtureNameUnderscore @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 48 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectFixtureNameUnderscore @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 57 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap index 5f4ef2dd97e1ea..0aef088f253e33 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_csv.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 24 column: 45 fix: - content: "\"param1,param2\"" - location: - row: 24 - column: 25 - end_location: - row: 24 - column: 45 + edits: + - content: "\"param1,param2\"" + location: + row: 24 + column: 25 + end_location: + row: 24 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 34 column: 45 fix: - content: "\"param1,param2\"" - location: - row: 34 - column: 25 - end_location: - row: 34 - column: 45 + edits: + - content: "\"param1,param2\"" + location: + row: 34 + column: 25 + end_location: + row: 34 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 44 column: 50 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -106,6 +111,7 @@ expression: diagnostics end_location: row: 49 column: 46 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap index 6cb5e67345cef8..fa85a5ddaade16 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 40 fix: - content: "(\"param1\", \"param2\")" - location: - row: 9 - column: 25 - end_location: - row: 9 - column: 40 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 9 + column: 25 + end_location: + row: 9 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 56 fix: - content: "(\"param1\", \"param2\")" - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 56 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 56 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: "(\"param1\", \"param2\")" - location: - row: 19 - column: 25 - end_location: - row: 19 - column: 40 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 19 + column: 25 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -94,13 +98,14 @@ expression: diagnostics row: 34 column: 45 fix: - content: "(\"param1\", \"param2\")" - location: - row: 34 - column: 25 - end_location: - row: 34 - column: 45 + edits: + - content: "(\"param1\", \"param2\")" + location: + row: 34 + column: 25 + end_location: + row: 34 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -114,13 +119,14 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -134,13 +140,14 @@ expression: diagnostics row: 44 column: 50 fix: - content: "(some_expr, another_expr)" - location: - row: 44 - column: 25 - end_location: - row: 44 - column: 50 + edits: + - content: "(some_expr, another_expr)" + location: + row: 44 + column: 25 + end_location: + row: 44 + column: 50 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -154,12 +161,13 @@ expression: diagnostics row: 49 column: 46 fix: - content: "(some_expr, \"param2\")" - location: - row: 49 - column: 25 - end_location: - row: 49 - column: 46 + edits: + - content: "(some_expr, \"param2\")" + location: + row: 49 + column: 25 + end_location: + row: 49 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap index a7c68156f2c7a4..4dc115f33a5990 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT006_list.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 40 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 9 - column: 25 - end_location: - row: 9 - column: 40 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 9 + column: 25 + end_location: + row: 9 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 56 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 56 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 56 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 19 - column: 25 - end_location: - row: 19 - column: 40 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 19 + column: 25 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 45 fix: - content: "[\"param1\", \"param2\"]" - location: - row: 24 - column: 25 - end_location: - row: 24 - column: 45 + edits: + - content: "[\"param1\", \"param2\"]" + location: + row: 24 + column: 25 + end_location: + row: 24 + column: 45 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -94,13 +98,14 @@ expression: diagnostics row: 29 column: 36 fix: - content: "\"param1\"" - location: - row: 29 - column: 25 - end_location: - row: 29 - column: 36 + edits: + - content: "\"param1\"" + location: + row: 29 + column: 25 + end_location: + row: 29 + column: 36 parent: ~ - kind: name: PytestParametrizeNamesWrongType @@ -114,12 +119,13 @@ expression: diagnostics row: 39 column: 35 fix: - content: "\"param1\"" - location: - row: 39 - column: 25 - end_location: - row: 39 - column: 35 + edits: + - content: "\"param1\"" + location: + row: 39 + column: 25 + end_location: + row: 39 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap index 99ea8cf29babc8..3ef473fe6da1cf 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_lists.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 39 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 81 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 81 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap index 9898f62a892cd9..f34cea20b5448c 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_list_of_tuples.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 51 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 61 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 62 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 81 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap index cca472b35832f3..55329bc2b8673f 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_lists.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 31 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 39 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 80 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 81 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 81 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap index 97bc32004d5813..c0dcbef2a73a74 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT007_tuple_of_tuples.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 31 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 51 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 61 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 62 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestParametrizeValuesWrongType @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 80 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap index c631f1167af850..8222d2838ed81c 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT008.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 35 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 37 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 38 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 41 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 42 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 43 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 46 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 47 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestPatchWithLambda @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 48 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap index 17ba496c87a2a7..c6c37f37ff52b6 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT009.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 11 column: 23 fix: - content: assert expr - location: - row: 11 - column: 8 - end_location: - row: 11 - column: 29 + edits: + - content: assert expr + location: + row: 11 + column: 8 + end_location: + row: 11 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: assert expr - location: - row: 12 - column: 8 - end_location: - row: 12 - column: 34 + edits: + - content: assert expr + location: + row: 12 + column: 8 + end_location: + row: 12 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 23 fix: - content: "assert expr, msg" - location: - row: 13 - column: 8 - end_location: - row: 13 - column: 34 + edits: + - content: "assert expr, msg" + location: + row: 13 + column: 8 + end_location: + row: 13 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 23 fix: - content: "assert expr, msg" - location: - row: 14 - column: 8 - end_location: - row: 14 - column: 43 + edits: + - content: "assert expr, msg" + location: + row: 14 + column: 8 + end_location: + row: 14 + column: 43 parent: ~ - kind: name: PytestUnittestAssertion @@ -94,13 +98,14 @@ expression: diagnostics row: 15 column: 23 fix: - content: "assert expr, msg" - location: - row: 15 - column: 8 - end_location: - row: 15 - column: 43 + edits: + - content: "assert expr, msg" + location: + row: 15 + column: 8 + end_location: + row: 15 + column: 43 parent: ~ - kind: name: PytestUnittestAssertion @@ -113,7 +118,8 @@ expression: diagnostics end_location: row: 16 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -126,7 +132,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -139,7 +146,8 @@ expression: diagnostics end_location: row: 18 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -152,7 +160,8 @@ expression: diagnostics end_location: row: 19 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -165,7 +174,8 @@ expression: diagnostics end_location: row: 21 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -178,7 +188,8 @@ expression: diagnostics end_location: row: 23 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -191,7 +202,8 @@ expression: diagnostics end_location: row: 25 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestUnittestAssertion @@ -205,13 +217,14 @@ expression: diagnostics row: 28 column: 24 fix: - content: assert not True - location: - row: 28 - column: 8 - end_location: - row: 28 - column: 30 + edits: + - content: assert not True + location: + row: 28 + column: 8 + end_location: + row: 28 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -225,13 +238,14 @@ expression: diagnostics row: 31 column: 24 fix: - content: assert 1 == 2 - location: - row: 31 - column: 8 - end_location: - row: 31 - column: 30 + edits: + - content: assert 1 == 2 + location: + row: 31 + column: 8 + end_location: + row: 31 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -245,13 +259,14 @@ expression: diagnostics row: 34 column: 27 fix: - content: assert 1 != 1 - location: - row: 34 - column: 8 - end_location: - row: 34 - column: 33 + edits: + - content: assert 1 != 1 + location: + row: 34 + column: 8 + end_location: + row: 34 + column: 33 parent: ~ - kind: name: PytestUnittestAssertion @@ -265,13 +280,14 @@ expression: diagnostics row: 37 column: 26 fix: - content: assert 1 > 2 - location: - row: 37 - column: 8 - end_location: - row: 37 - column: 32 + edits: + - content: assert 1 > 2 + location: + row: 37 + column: 8 + end_location: + row: 37 + column: 32 parent: ~ - kind: name: PytestUnittestAssertion @@ -285,13 +301,14 @@ expression: diagnostics row: 40 column: 31 fix: - content: assert 1 >= 2 - location: - row: 40 - column: 8 - end_location: - row: 40 - column: 37 + edits: + - content: assert 1 >= 2 + location: + row: 40 + column: 8 + end_location: + row: 40 + column: 37 parent: ~ - kind: name: PytestUnittestAssertion @@ -305,13 +322,14 @@ expression: diagnostics row: 43 column: 23 fix: - content: assert 2 < 1 - location: - row: 43 - column: 8 - end_location: - row: 43 - column: 29 + edits: + - content: assert 2 < 1 + location: + row: 43 + column: 8 + end_location: + row: 43 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -325,13 +343,14 @@ expression: diagnostics row: 46 column: 28 fix: - content: assert 1 <= 2 - location: - row: 46 - column: 8 - end_location: - row: 46 - column: 34 + edits: + - content: assert 1 <= 2 + location: + row: 46 + column: 8 + end_location: + row: 46 + column: 34 parent: ~ - kind: name: PytestUnittestAssertion @@ -345,13 +364,14 @@ expression: diagnostics row: 49 column: 21 fix: - content: "assert 1 in [2, 3]" - location: - row: 49 - column: 8 - end_location: - row: 49 - column: 32 + edits: + - content: "assert 1 in [2, 3]" + location: + row: 49 + column: 8 + end_location: + row: 49 + column: 32 parent: ~ - kind: name: PytestUnittestAssertion @@ -365,13 +385,14 @@ expression: diagnostics row: 52 column: 24 fix: - content: "assert 2 not in [2, 3]" - location: - row: 52 - column: 8 - end_location: - row: 52 - column: 35 + edits: + - content: "assert 2 not in [2, 3]" + location: + row: 52 + column: 8 + end_location: + row: 52 + column: 35 parent: ~ - kind: name: PytestUnittestAssertion @@ -385,13 +406,14 @@ expression: diagnostics row: 55 column: 25 fix: - content: assert 0 is None - location: - row: 55 - column: 8 - end_location: - row: 55 - column: 28 + edits: + - content: assert 0 is None + location: + row: 55 + column: 8 + end_location: + row: 55 + column: 28 parent: ~ - kind: name: PytestUnittestAssertion @@ -405,13 +427,14 @@ expression: diagnostics row: 58 column: 28 fix: - content: assert 0 is not None - location: - row: 58 - column: 8 - end_location: - row: 58 - column: 31 + edits: + - content: assert 0 is not None + location: + row: 58 + column: 8 + end_location: + row: 58 + column: 31 parent: ~ - kind: name: PytestUnittestAssertion @@ -425,13 +448,14 @@ expression: diagnostics row: 61 column: 21 fix: - content: "assert [] is []" - location: - row: 61 - column: 8 - end_location: - row: 61 - column: 29 + edits: + - content: "assert [] is []" + location: + row: 61 + column: 8 + end_location: + row: 61 + column: 29 parent: ~ - kind: name: PytestUnittestAssertion @@ -445,13 +469,14 @@ expression: diagnostics row: 64 column: 24 fix: - content: assert 1 is not 1 - location: - row: 64 - column: 8 - end_location: - row: 64 - column: 30 + edits: + - content: assert 1 is not 1 + location: + row: 64 + column: 8 + end_location: + row: 64 + column: 30 parent: ~ - kind: name: PytestUnittestAssertion @@ -465,13 +490,14 @@ expression: diagnostics row: 67 column: 29 fix: - content: "assert isinstance(1, str)" - location: - row: 67 - column: 8 - end_location: - row: 67 - column: 37 + edits: + - content: "assert isinstance(1, str)" + location: + row: 67 + column: 8 + end_location: + row: 67 + column: 37 parent: ~ - kind: name: PytestUnittestAssertion @@ -485,13 +511,14 @@ expression: diagnostics row: 70 column: 32 fix: - content: "assert not isinstance(1, int)" - location: - row: 70 - column: 8 - end_location: - row: 70 - column: 40 + edits: + - content: "assert not isinstance(1, int)" + location: + row: 70 + column: 8 + end_location: + row: 70 + column: 40 parent: ~ - kind: name: PytestUnittestAssertion @@ -505,13 +532,14 @@ expression: diagnostics row: 73 column: 24 fix: - content: "assert re.search(\"def\", \"abc\")" - location: - row: 73 - column: 8 - end_location: - row: 73 - column: 39 + edits: + - content: "assert re.search(\"def\", \"abc\")" + location: + row: 73 + column: 8 + end_location: + row: 73 + column: 39 parent: ~ - kind: name: PytestUnittestAssertion @@ -525,13 +553,14 @@ expression: diagnostics row: 76 column: 27 fix: - content: "assert not re.search(\"abc\", \"abc\")" - location: - row: 76 - column: 8 - end_location: - row: 76 - column: 42 + edits: + - content: "assert not re.search(\"abc\", \"abc\")" + location: + row: 76 + column: 8 + end_location: + row: 76 + column: 42 parent: ~ - kind: name: PytestUnittestAssertion @@ -545,13 +574,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "assert re.search(\"def\", \"abc\")" - location: - row: 79 - column: 8 - end_location: - row: 79 - column: 47 + edits: + - content: "assert re.search(\"def\", \"abc\")" + location: + row: 79 + column: 8 + end_location: + row: 79 + column: 47 parent: ~ - kind: name: PytestUnittestAssertion @@ -565,12 +595,13 @@ expression: diagnostics row: 82 column: 27 fix: - content: "assert not re.search(\"abc\", \"abc\")" - location: - row: 82 - column: 8 - end_location: - row: 82 - column: 42 + edits: + - content: "assert not re.search(\"abc\", \"abc\")" + location: + row: 82 + column: 8 + end_location: + row: 82 + column: 42 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap index 6d295902540b4a..91916c2abd660d 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT010.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap index e9d8b5fc454c6d..ff02aaf4c54b5f 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_default.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 20 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 31 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap index b0624bbf0b7ab5..1097766c0f0724 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_extend_broad_exceptions.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 25 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 28 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesTooBroad @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 31 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap index 01714c386a90cb..c6de8582a9ab42 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT011_replace_broad_exceptions.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 12 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap index 5b851a1c220d14..1abddeccb3cdbf 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT012.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 30 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 40 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 48 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 52 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 56 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestRaisesWithMultipleStatements @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 64 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap index d7072c8d8b6480..4f25141539eef1 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT013.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectPytestImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestIncorrectPytestImport @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap index d4e3fd3a7785bc..5ac9a44ca60019 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT015.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 13 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 14 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 15 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 16 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 17 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 19 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 20 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 21 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 22 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 24 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestAssertAlwaysFalse @@ -221,6 +237,7 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap index 9cd8bf8e5cda93..2c7aac72bab9d1 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT016.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFailWithoutMessage @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap index e8eee3056d8956..07c569b7cb93aa 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT017.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 19 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap index 6c43f75955c5da..ea67e61f52c47a 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT018.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 39 fix: - content: " assert something\n assert something_else\n" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: " assert something\n assert something_else\n" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -34,13 +35,14 @@ expression: diagnostics row: 15 column: 59 fix: - content: " assert something and something_else\n assert something_third\n" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: " assert something and something_else\n assert something_third\n" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 43 fix: - content: " assert something\n assert not something_else\n" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: " assert something\n assert not something_else\n" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 60 fix: - content: " assert something\n assert (something_else or something_third)\n" - location: - row: 17 - column: 0 - end_location: - row: 18 - column: 0 + edits: + - content: " assert something\n assert (something_else or something_third)\n" + location: + row: 17 + column: 0 + end_location: + row: 18 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -94,13 +98,14 @@ expression: diagnostics row: 18 column: 43 fix: - content: " assert not something\n assert something_else\n" - location: - row: 18 - column: 0 - end_location: - row: 19 - column: 0 + edits: + - content: " assert not something\n assert something_else\n" + location: + row: 18 + column: 0 + end_location: + row: 19 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -114,13 +119,14 @@ expression: diagnostics row: 19 column: 44 fix: - content: " assert not something\n assert not something_else\n" - location: - row: 19 - column: 0 - end_location: - row: 20 - column: 0 + edits: + - content: " assert not something\n assert not something_else\n" + location: + row: 19 + column: 0 + end_location: + row: 20 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 63 fix: - content: " assert not something or something_else\n assert not something_third\n" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: " assert not something or something_else\n assert not something_third\n" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: " assert something\n assert something_else == \"\"\"error\n message\n \"\"\"\n" - location: - row: 21 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: " assert something\n assert something_else == \"\"\"error\n message\n \"\"\"\n" + location: + row: 21 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 34 fix: - content: " assert not a\n assert (b or c)\n" - location: - row: 26 - column: 0 - end_location: - row: 27 - column: 0 + edits: + - content: " assert not a\n assert (b or c)\n" + location: + row: 26 + column: 0 + end_location: + row: 27 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -194,13 +203,14 @@ expression: diagnostics row: 27 column: 35 fix: - content: " assert not a\n assert (b and c)\n" - location: - row: 27 - column: 0 - end_location: - row: 28 - column: 0 + edits: + - content: " assert not a\n assert (b and c)\n" + location: + row: 27 + column: 0 + end_location: + row: 28 + column: 0 parent: ~ - kind: name: PytestCompositeAssertion @@ -213,7 +223,8 @@ expression: diagnostics end_location: row: 30 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -226,7 +237,8 @@ expression: diagnostics end_location: row: 31 column: 80 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -239,7 +251,8 @@ expression: diagnostics end_location: row: 33 column: 64 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestCompositeAssertion @@ -252,6 +265,7 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap index e558f647d9b92c..d4ecc30b0cc038 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT019.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixtureParamWithoutValue @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap index 6a11a6d3dcef42..eed92a1e719441 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT020.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestDeprecatedYieldFixture @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 19 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap index 5c5f123d52ed0a..9b50d8b831260c 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT021.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 49 column: 42 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PytestFixtureFinalizerCallback @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 56 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap index d2341c9050ae13..29282d16ad69df 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT022.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 18 fix: - content: return - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 9 + edits: + - content: return + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap index 619a4e58eb0e2a..6ee9044166719b 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_default.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 12 column: 16 fix: - content: () - location: - row: 12 - column: 16 - end_location: - row: 12 - column: 16 + edits: + - content: () + location: + row: 12 + column: 16 + end_location: + row: 12 + column: 16 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 17 column: 16 fix: - content: () - location: - row: 17 - column: 16 - end_location: - row: 17 - column: 16 + edits: + - content: () + location: + row: 17 + column: 16 + end_location: + row: 17 + column: 16 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 20 fix: - content: () - location: - row: 24 - column: 20 - end_location: - row: 24 - column: 20 + edits: + - content: () + location: + row: 24 + column: 20 + end_location: + row: 24 + column: 20 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 30 column: 20 fix: - content: () - location: - row: 30 - column: 20 - end_location: - row: 30 - column: 20 + edits: + - content: () + location: + row: 30 + column: 20 + end_location: + row: 30 + column: 20 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -94,12 +98,13 @@ expression: diagnostics row: 38 column: 24 fix: - content: () - location: - row: 38 - column: 24 - end_location: - row: 38 - column: 24 + edits: + - content: () + location: + row: 38 + column: 24 + end_location: + row: 38 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap index 6749d8e44429f8..9158e32c32ca98 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT023_no_parentheses.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 46 column: 18 fix: - content: "" - location: - row: 46 - column: 16 - end_location: - row: 46 - column: 18 + edits: + - content: "" + location: + row: 46 + column: 16 + end_location: + row: 46 + column: 18 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -34,13 +35,14 @@ expression: diagnostics row: 51 column: 18 fix: - content: "" - location: - row: 51 - column: 16 - end_location: - row: 51 - column: 18 + edits: + - content: "" + location: + row: 51 + column: 16 + end_location: + row: 51 + column: 18 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -54,13 +56,14 @@ expression: diagnostics row: 58 column: 22 fix: - content: "" - location: - row: 58 - column: 20 - end_location: - row: 58 - column: 22 + edits: + - content: "" + location: + row: 58 + column: 20 + end_location: + row: 58 + column: 22 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -74,13 +77,14 @@ expression: diagnostics row: 64 column: 22 fix: - content: "" - location: - row: 64 - column: 20 - end_location: - row: 64 - column: 22 + edits: + - content: "" + location: + row: 64 + column: 20 + end_location: + row: 64 + column: 22 parent: ~ - kind: name: PytestIncorrectMarkParenthesesStyle @@ -94,12 +98,13 @@ expression: diagnostics row: 72 column: 26 fix: - content: "" - location: - row: 72 - column: 24 - end_location: - row: 72 - column: 26 + edits: + - content: "" + location: + row: 72 + column: 24 + end_location: + row: 72 + column: 26 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap index 262422e91a0ffc..2a53e8aeeffc1b 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT024.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 14 column: 22 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 20 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -54,13 +56,14 @@ expression: diagnostics row: 27 column: 22 fix: - content: "" - location: - row: 27 - column: 0 - end_location: - row: 28 - column: 0 + edits: + - content: "" + location: + row: 27 + column: 0 + end_location: + row: 28 + column: 0 parent: ~ - kind: name: PytestUnnecessaryAsyncioMarkOnFixture @@ -74,12 +77,13 @@ expression: diagnostics row: 33 column: 20 fix: - content: "" - location: - row: 33 - column: 0 - end_location: - row: 34 - column: 0 + edits: + - content: "" + location: + row: 33 + column: 0 + end_location: + row: 34 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap index d56466a4696148..3a9d7faf4f9e8f 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT025.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 29 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: PytestErroneousUseFixturesOnFixture @@ -34,12 +35,13 @@ expression: diagnostics row: 16 column: 29 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap index a7f4c9c666a7ea..2b40d61ab06dba 100644 --- a/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap +++ b/crates/ruff/src/rules/flake8_pytest_style/snapshots/ruff__rules__flake8_pytest_style__tests__PT026.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 19 column: 26 fix: - content: "" - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 26 + edits: + - content: "" + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 26 parent: ~ - kind: name: PytestUseFixturesWithoutParameters @@ -34,12 +35,13 @@ expression: diagnostics row: 24 column: 24 fix: - content: "" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 24 + edits: + - content: "" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap index 93049719ded179..e411129416ff29 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 7 fix: - content: "'''\n this is not a docstring\n '''" - location: - row: 16 - column: 4 - end_location: - row: 18 - column: 7 + edits: + - content: "'''\n this is not a docstring\n '''" + location: + row: 16 + column: 4 + end_location: + row: 18 + column: 7 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 22 column: 37 fix: - content: "'''\n definitely not a docstring'''" - location: - row: 21 - column: 20 - end_location: - row: 22 - column: 37 + edits: + - content: "'''\n definitely not a docstring'''" + location: + row: 21 + column: 20 + end_location: + row: 22 + column: 37 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 32 column: 11 fix: - content: "'''\n this is not a docstring\n '''" - location: - row: 30 - column: 8 - end_location: - row: 32 - column: 11 + edits: + - content: "'''\n this is not a docstring\n '''" + location: + row: 30 + column: 8 + end_location: + row: 32 + column: 11 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 37 column: 15 fix: - content: "'''\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n '''" - location: - row: 35 - column: 12 - end_location: - row: 37 - column: 15 + edits: + - content: "'''\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n '''" + location: + row: 35 + column: 12 + end_location: + row: 37 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap index 1d30b97bac488b..dc5672cf26f22a 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 27 fix: - content: "''' Not a docstring '''" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 27 + edits: + - content: "''' Not a docstring '''" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 27 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 5 column: 43 fix: - content: "'''not a docstring'''" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 43 + edits: + - content: "'''not a docstring'''" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 43 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap index b3794039a40495..04c2156fe5e0b3 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: "''' not a docstring'''" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 26 + edits: + - content: "''' not a docstring'''" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 26 fix: - content: "''' not a docstring'''" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 26 + edits: + - content: "''' not a docstring'''" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 3 fix: - content: "'''\n not a\n'''" - location: - row: 15 - column: 38 - end_location: - row: 17 - column: 3 + edits: + - content: "'''\n not a\n'''" + location: + row: 15 + column: 38 + end_location: + row: 17 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "'''docstring'''" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 19 + edits: + - content: "'''docstring'''" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 27 fix: - content: "''' not a docstring '''" - location: - row: 22 - column: 4 - end_location: - row: 22 - column: 27 + edits: + - content: "''' not a docstring '''" + location: + row: 22 + column: 4 + end_location: + row: 22 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap index df6330a1192de8..825b5fcc7fb91d 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_multiline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 11 column: 3 fix: - content: "'''\nthis is not a docstring\n'''" - location: - row: 9 - column: 0 - end_location: - row: 11 - column: 3 + edits: + - content: "'''\nthis is not a docstring\n'''" + location: + row: 9 + column: 0 + end_location: + row: 11 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap index fd5dcbb7f32a1d..52f9064607eff7 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_doubles_module_singleline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: "''' this is not a docstring '''" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: "''' this is not a docstring '''" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 31 fix: - content: "''' this is not a docstring '''" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 31 + edits: + - content: "''' this is not a docstring '''" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap index ff4d153566ee57..d4cc9719d49d89 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 3 fix: - content: "\"\"\"\nSingle quotes multiline module docstring\n\"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "\"\"\"\nSingle quotes multiline module docstring\n\"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 16 column: 7 fix: - content: "\"\"\"\n Single quotes multiline class docstring\n \"\"\"" - location: - row: 14 - column: 4 - end_location: - row: 16 - column: 7 + edits: + - content: "\"\"\"\n Single quotes multiline class docstring\n \"\"\"" + location: + row: 14 + column: 4 + end_location: + row: 16 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 28 column: 11 fix: - content: "\"\"\"\n Single quotes multiline function docstring\n \"\"\"" - location: - row: 26 - column: 8 - end_location: - row: 28 - column: 11 + edits: + - content: "\"\"\"\n Single quotes multiline function docstring\n \"\"\"" + location: + row: 26 + column: 8 + end_location: + row: 28 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap index 3b85426c844b0b..0c607a61843358 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 53 fix: - content: "\"\"\" Double quotes single line class docstring \"\"\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 53 + edits: + - content: "\"\"\" Double quotes single line class docstring \"\"\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 53 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "\"\"\" Double quotes single line method docstring\"\"\"" - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 57 + edits: + - content: "\"\"\" Double quotes single line method docstring\"\"\"" + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 52 fix: - content: "\"\"\" inline docstring \"\"\"" - location: - row: 9 - column: 28 - end_location: - row: 9 - column: 52 + edits: + - content: "\"\"\" inline docstring \"\"\"" + location: + row: 9 + column: 28 + end_location: + row: 9 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap index ad663e2cf09c89..6a115dddffed05 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 56 fix: - content: "\"\"\"function without params, single line docstring\"\"\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 56 + edits: + - content: "\"\"\"function without params, single line docstring\"\"\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 56 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 7 fix: - content: "\"\"\"\n function without params, multiline docstring\n \"\"\"" - location: - row: 8 - column: 4 - end_location: - row: 10 - column: 7 + edits: + - content: "\"\"\"\n function without params, multiline docstring\n \"\"\"" + location: + row: 8 + column: 4 + end_location: + row: 10 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 27 column: 27 fix: - content: "\"Single line docstring\"" - location: - row: 27 - column: 4 - end_location: - row: 27 - column: 27 + edits: + - content: "\"Single line docstring\"" + location: + row: 27 + column: 4 + end_location: + row: 27 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap index 4344c740c36573..0860f93ac08e4d 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_multiline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 3 fix: - content: "\"\"\"\nDouble quotes multiline module docstring\n\"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "\"\"\"\nDouble quotes multiline module docstring\n\"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap index d0f49b1f144a43..9dad49f9e891ac 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_doubles_over_docstring_singles_module_singleline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 49 fix: - content: "\"\"\" Double quotes singleline module docstring \"\"\"" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 49 + edits: + - content: "\"\"\" Double quotes singleline module docstring \"\"\"" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap index 9502deb17d2981..ff57203cfa87b8 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 3 fix: - content: "'''\nDouble quotes multiline module docstring\n'''" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "'''\nDouble quotes multiline module docstring\n'''" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 7 fix: - content: "'''\n Double quotes multiline class docstring\n '''" - location: - row: 12 - column: 4 - end_location: - row: 14 - column: 7 + edits: + - content: "'''\n Double quotes multiline class docstring\n '''" + location: + row: 12 + column: 4 + end_location: + row: 14 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 26 column: 11 fix: - content: "'''\n Double quotes multiline function docstring\n '''" - location: - row: 24 - column: 8 - end_location: - row: 26 - column: 11 + edits: + - content: "'''\n Double quotes multiline function docstring\n '''" + location: + row: 24 + column: 8 + end_location: + row: 26 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap index a67e8d7a3ac9e6..f99a0b955ec025 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 53 fix: - content: "''' Double quotes single line class docstring '''" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 53 + edits: + - content: "''' Double quotes single line class docstring '''" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 53 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 57 fix: - content: "''' Double quotes single line method docstring'''" - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 57 + edits: + - content: "''' Double quotes single line method docstring'''" + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 57 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 52 fix: - content: "''' inline docstring '''" - location: - row: 9 - column: 28 - end_location: - row: 9 - column: 52 + edits: + - content: "''' inline docstring '''" + location: + row: 9 + column: 28 + end_location: + row: 9 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap index 630ea19991e28a..e8b475b2f4594c 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 56 fix: - content: "'''function without params, single line docstring'''" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 56 + edits: + - content: "'''function without params, single line docstring'''" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 56 parent: ~ - kind: name: BadQuotesDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 7 fix: - content: "'''\n function without params, multiline docstring\n '''" - location: - row: 8 - column: 4 - end_location: - row: 10 - column: 7 + edits: + - content: "'''\n function without params, multiline docstring\n '''" + location: + row: 8 + column: 4 + end_location: + row: 10 + column: 7 parent: ~ - kind: name: BadQuotesDocstring @@ -54,12 +56,13 @@ expression: diagnostics row: 27 column: 27 fix: - content: "'Single line docstring'" - location: - row: 27 - column: 4 - end_location: - row: 27 - column: 27 + edits: + - content: "'Single line docstring'" + location: + row: 27 + column: 4 + end_location: + row: 27 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap index 04a51637226b01..ac80a14270eeee 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_multiline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 3 fix: - content: "'''\nDouble quotes multiline module docstring\n'''" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 3 + edits: + - content: "'''\nDouble quotes multiline module docstring\n'''" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap index 3d2746184b5643..fbe48eee7abf6a 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_doubles_module_singleline.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 49 fix: - content: "''' Double quotes singleline module docstring '''" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 49 + edits: + - content: "''' Double quotes singleline module docstring '''" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap index 5de2f20f876e21..a18c8c3178482a 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 3 fix: - content: "\"\"\"\n class params \\t not a docstring\n\"\"\"" - location: - row: 11 - column: 20 - end_location: - row: 13 - column: 3 + edits: + - content: "\"\"\"\n class params \\t not a docstring\n\"\"\"" + location: + row: 11 + column: 20 + end_location: + row: 13 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "\"\"\"\n this is not a docstring\n \"\"\"" - location: - row: 18 - column: 4 - end_location: - row: 20 - column: 7 + edits: + - content: "\"\"\"\n this is not a docstring\n \"\"\"" + location: + row: 18 + column: 4 + end_location: + row: 20 + column: 7 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 37 fix: - content: "\"\"\"\n definitely not a docstring\"\"\"" - location: - row: 23 - column: 20 - end_location: - row: 24 - column: 37 + edits: + - content: "\"\"\"\n definitely not a docstring\"\"\"" + location: + row: 23 + column: 20 + end_location: + row: 24 + column: 37 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,13 +98,14 @@ expression: diagnostics row: 34 column: 11 fix: - content: "\"\"\"\n this is not a docstring\n \"\"\"" - location: - row: 32 - column: 8 - end_location: - row: 34 - column: 11 + edits: + - content: "\"\"\"\n this is not a docstring\n \"\"\"" + location: + row: 32 + column: 8 + end_location: + row: 34 + column: 11 parent: ~ - kind: name: BadQuotesMultilineString @@ -114,12 +119,13 @@ expression: diagnostics row: 39 column: 15 fix: - content: "\"\"\"\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n \"\"\"" - location: - row: 37 - column: 12 - end_location: - row: 39 - column: 15 + edits: + - content: "\"\"\"\n Looks like a docstring, but in reality it isn't - only modules, classes and functions\n \"\"\"" + location: + row: 37 + column: 12 + end_location: + row: 39 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap index 7498c57b13178f..cae9374dde9c74 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_class.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 27 fix: - content: "\"\"\" Not a docstring \"\"\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 27 + edits: + - content: "\"\"\" Not a docstring \"\"\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 27 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 5 column: 43 fix: - content: "\"\"\"not a docstring\"\"\"" - location: - row: 5 - column: 22 - end_location: - row: 5 - column: 43 + edits: + - content: "\"\"\"not a docstring\"\"\"" + location: + row: 5 + column: 22 + end_location: + row: 5 + column: 43 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap index e545c2d4cf11a1..a1049c7a5f845b 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_function.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 26 fix: - content: "\"\"\" not a docstring\"\"\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 26 + edits: + - content: "\"\"\" not a docstring\"\"\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 26 fix: - content: "\"\"\" not a docstring\"\"\"" - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 26 + edits: + - content: "\"\"\" not a docstring\"\"\"" + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 26 parent: ~ - kind: name: BadQuotesMultilineString @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 3 fix: - content: "\"\"\"\n not a\n\"\"\"" - location: - row: 15 - column: 38 - end_location: - row: 17 - column: 3 + edits: + - content: "\"\"\"\n not a\n\"\"\"" + location: + row: 15 + column: 38 + end_location: + row: 17 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -74,13 +77,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "\"\"\"docstring\"\"\"" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 19 + edits: + - content: "\"\"\"docstring\"\"\"" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: BadQuotesMultilineString @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 27 fix: - content: "\"\"\" not a docstring \"\"\"" - location: - row: 22 - column: 4 - end_location: - row: 22 - column: 27 + edits: + - content: "\"\"\" not a docstring \"\"\"" + location: + row: 22 + column: 4 + end_location: + row: 22 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap index cf5f281c49d704..d65f4f9f5223d9 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_multiline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 3 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 11 column: 3 fix: - content: "\"\"\"\nthis is not a docstring\n\"\"\"" - location: - row: 9 - column: 0 - end_location: - row: 11 - column: 3 + edits: + - content: "\"\"\"\nthis is not a docstring\n\"\"\"" + location: + row: 9 + column: 0 + end_location: + row: 11 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap index 5ca4d42fa7f090..d135668736bea4 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_docstring_singles_over_docstring_singles_module_singleline.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: "\"\"\" this is not a docstring \"\"\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: "\"\"\" this is not a docstring \"\"\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: BadQuotesMultilineString @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 31 fix: - content: "\"\"\" this is not a docstring \"\"\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 31 + edits: + - content: "\"\"\" this is not a docstring \"\"\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap index 00ae770ba05006..ff88556343ff1c 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "\"single quote string\"" - location: - row: 1 - column: 24 - end_location: - row: 1 - column: 45 + edits: + - content: "\"single quote string\"" + location: + row: 1 + column: 24 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "u\"double quote string\"" - location: - row: 2 - column: 24 - end_location: - row: 2 - column: 46 + edits: + - content: "u\"double quote string\"" + location: + row: 2 + column: 24 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: BadQuotesInlineString @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 46 fix: - content: "f\"double quote string\"" - location: - row: 3 - column: 24 - end_location: - row: 3 - column: 46 + edits: + - content: "f\"double quote string\"" + location: + row: 3 + column: 24 + end_location: + row: 3 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap index 012d697ef2a1eb..0e970c50b1eca9 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_escaped.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 47 fix: - content: "'This is a \"string\"'" - location: - row: 1 - column: 25 - end_location: - row: 1 - column: 47 + edits: + - content: "'This is a \"string\"'" + location: + row: 1 + column: 25 + end_location: + row: 1 + column: 47 parent: ~ - kind: name: AvoidableEscapedQuote @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 16 fix: - content: "'\"string\"'" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 16 + edits: + - content: "'\"string\"'" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap index f78b3dcb0ed564..23350b818b1b98 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_implicit.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "\"This\"" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "\"This\"" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 8 fix: - content: "\"is\"" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 8 + edits: + - content: "\"is\"" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: "\"not\"" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 9 + edits: + - content: "\"not\"" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 10 fix: - content: "\"This\"" - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 10 + edits: + - content: "\"This\"" + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "\"is\"" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: "\"is\"" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: "\"not\"" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 9 + edits: + - content: "\"not\"" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -134,12 +140,13 @@ expression: diagnostics row: 27 column: 30 fix: - content: "\"But this needs to be changed\"" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 30 + edits: + - content: "\"But this needs to be changed\"" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap index d2396e06d7d630..3155333dfe3b0e 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_doubles_over_singles_multiline_string.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: "\"\"\" This 'should'\nbe\n'linted' \"\"\"" - location: - row: 1 - column: 4 - end_location: - row: 3 - column: 12 + edits: + - content: "\"\"\" This 'should'\nbe\n'linted' \"\"\"" + location: + row: 1 + column: 4 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap index 63190603674641..0d77a1e610e47f 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "'double quote string'" - location: - row: 1 - column: 24 - end_location: - row: 1 - column: 45 + edits: + - content: "'double quote string'" + location: + row: 1 + column: 24 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 46 fix: - content: "u'double quote string'" - location: - row: 2 - column: 24 - end_location: - row: 2 - column: 46 + edits: + - content: "u'double quote string'" + location: + row: 2 + column: 24 + end_location: + row: 2 + column: 46 parent: ~ - kind: name: BadQuotesInlineString @@ -54,12 +56,13 @@ expression: diagnostics row: 3 column: 46 fix: - content: "f'double quote string'" - location: - row: 3 - column: 24 - end_location: - row: 3 - column: 46 + edits: + - content: "f'double quote string'" + location: + row: 3 + column: 24 + end_location: + row: 3 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap index ae806159e02359..f44fa6b00dbb0c 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_escaped.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 47 fix: - content: "\"This is a 'string'\"" - location: - row: 1 - column: 25 - end_location: - row: 1 - column: 47 + edits: + - content: "\"This is a 'string'\"" + location: + row: 1 + column: 25 + end_location: + row: 1 + column: 47 parent: ~ - kind: name: AvoidableEscapedQuote @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 52 fix: - content: "\"This is \\\\ a \\\\'string'\"" - location: - row: 2 - column: 25 - end_location: - row: 2 - column: 52 + edits: + - content: "\"This is \\\\ a \\\\'string'\"" + location: + row: 2 + column: 25 + end_location: + row: 2 + column: 52 parent: ~ - kind: name: AvoidableEscapedQuote @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 16 fix: - content: "\"'string'\"" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 16 + edits: + - content: "\"'string'\"" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap index 5474a5733a7d41..acfe0c0172865c 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_implicit.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 10 fix: - content: "'This'" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 10 + edits: + - content: "'This'" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 8 fix: - content: "'is'" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 8 + edits: + - content: "'is'" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: "'not'" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 9 + edits: + - content: "'not'" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 10 fix: - content: "'This'" - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 10 + edits: + - content: "'This'" + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: BadQuotesInlineString @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 8 fix: - content: "'is'" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: "'is'" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ - kind: name: BadQuotesInlineString @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: "'not'" - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 9 + edits: + - content: "'not'" + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: BadQuotesInlineString @@ -134,12 +140,13 @@ expression: diagnostics row: 27 column: 30 fix: - content: "'But this needs to be changed'" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 30 + edits: + - content: "'But this needs to be changed'" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap index b0c1ffc4f57ec0..9adb597757196d 100644 --- a/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap +++ b/crates/ruff/src/rules/flake8_quotes/snapshots/ruff__rules__flake8_quotes__tests__require_singles_over_doubles_multiline_string.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 12 fix: - content: "''' This \"should\"\nbe\n\"linted\" '''" - location: - row: 1 - column: 4 - end_location: - row: 3 - column: 12 + edits: + - content: "''' This \"should\"\nbe\n\"linted\" '''" + location: + row: 1 + column: 4 + end_location: + row: 3 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap b/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap index 64701a4b17fa28..a6ff7c570c9c03 100644 --- a/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap +++ b/crates/ruff/src/rules/flake8_raise/snapshots/ruff__rules__flake8_raise__tests__unnecessary-paren-on-raise-exception_RSE102.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 22 fix: - content: "" - location: - row: 5 - column: 20 - end_location: - row: 5 - column: 22 + edits: + - content: "" + location: + row: 5 + column: 20 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 17 fix: - content: "" - location: - row: 13 - column: 15 - end_location: - row: 13 - column: 17 + edits: + - content: "" + location: + row: 13 + column: 15 + end_location: + row: 13 + column: 17 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: "" - location: - row: 16 - column: 15 - end_location: - row: 16 - column: 18 + edits: + - content: "" + location: + row: 16 + column: 15 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -74,13 +77,14 @@ expression: diagnostics row: 20 column: 6 fix: - content: "" - location: - row: 19 - column: 15 - end_location: - row: 20 - column: 6 + edits: + - content: "" + location: + row: 19 + column: 15 + end_location: + row: 20 + column: 6 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -94,13 +98,14 @@ expression: diagnostics row: 25 column: 1 fix: - content: "" - location: - row: 23 - column: 15 - end_location: - row: 25 - column: 1 + edits: + - content: "" + location: + row: 23 + column: 15 + end_location: + row: 25 + column: 1 parent: ~ - kind: name: UnnecessaryParenOnRaiseException @@ -114,12 +119,13 @@ expression: diagnostics row: 30 column: 1 fix: - content: "" - location: - row: 28 - column: 15 - end_location: - row: 30 - column: 1 + edits: + - content: "" + location: + row: 28 + column: 15 + end_location: + row: 30 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap index 08e0c586da4991..06f39cf580d2e2 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET501_RET501.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: return - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 15 + edits: + - content: return + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 15 parent: ~ - kind: name: UnnecessaryReturnNone @@ -34,12 +35,13 @@ expression: diagnostics row: 14 column: 19 fix: - content: return - location: - row: 14 - column: 8 - end_location: - row: 14 - column: 19 + edits: + - content: return + location: + row: 14 + column: 8 + end_location: + row: 14 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap index 1a92947f9fcfc5..eeab8c27ad2a9d 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET502_RET502.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 14 fix: - content: return None - location: - row: 3 - column: 8 - end_location: - row: 3 - column: 14 + edits: + - content: return None + location: + row: 3 + column: 8 + end_location: + row: 3 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap index 12f483d969eea5..2766a6f465ef54 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET503_RET503.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 21 column: 16 fix: - content: "\n return None" - location: - row: 21 - column: 16 - end_location: - row: 21 - column: 16 + edits: + - content: "\n return None" + location: + row: 21 + column: 16 + end_location: + row: 21 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 15 fix: - content: "\n return None" - location: - row: 27 - column: 24 - end_location: - row: 27 - column: 24 + edits: + - content: "\n return None" + location: + row: 27 + column: 24 + end_location: + row: 27 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -54,13 +56,14 @@ expression: diagnostics row: 36 column: 11 fix: - content: "\n return None" - location: - row: 36 - column: 20 - end_location: - row: 36 - column: 20 + edits: + - content: "\n return None" + location: + row: 36 + column: 20 + end_location: + row: 36 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -74,13 +77,14 @@ expression: diagnostics row: 43 column: 20 fix: - content: "\n return None" - location: - row: 43 - column: 20 - end_location: - row: 43 - column: 20 + edits: + - content: "\n return None" + location: + row: 43 + column: 20 + end_location: + row: 43 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -94,13 +98,14 @@ expression: diagnostics row: 52 column: 15 fix: - content: "\n return None" - location: - row: 52 - column: 24 - end_location: - row: 52 - column: 24 + edits: + - content: "\n return None" + location: + row: 52 + column: 24 + end_location: + row: 52 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -114,13 +119,14 @@ expression: diagnostics row: 59 column: 22 fix: - content: "\n return None" - location: - row: 59 - column: 31 - end_location: - row: 59 - column: 31 + edits: + - content: "\n return None" + location: + row: 59 + column: 31 + end_location: + row: 59 + column: 31 parent: ~ - kind: name: ImplicitReturn @@ -134,13 +140,14 @@ expression: diagnostics row: 66 column: 21 fix: - content: "\n return None" - location: - row: 66 - column: 30 - end_location: - row: 66 - column: 30 + edits: + - content: "\n return None" + location: + row: 66 + column: 30 + end_location: + row: 66 + column: 30 parent: ~ - kind: name: ImplicitReturn @@ -154,13 +161,14 @@ expression: diagnostics row: 85 column: 14 fix: - content: "\n return None" - location: - row: 85 - column: 14 - end_location: - row: 85 - column: 14 + edits: + - content: "\n return None" + location: + row: 85 + column: 14 + end_location: + row: 85 + column: 14 parent: ~ - kind: name: ImplicitReturn @@ -174,13 +182,14 @@ expression: diagnostics row: 116 column: 16 fix: - content: "\n return None" - location: - row: 116 - column: 16 - end_location: - row: 116 - column: 16 + edits: + - content: "\n return None" + location: + row: 116 + column: 16 + end_location: + row: 116 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -194,13 +203,14 @@ expression: diagnostics row: 126 column: 19 fix: - content: "\n return None" - location: - row: 126 - column: 19 - end_location: - row: 126 - column: 19 + edits: + - content: "\n return None" + location: + row: 126 + column: 19 + end_location: + row: 126 + column: 19 parent: ~ - kind: name: ImplicitReturn @@ -214,13 +224,14 @@ expression: diagnostics row: 133 column: 16 fix: - content: "\n return None" - location: - row: 133 - column: 16 - end_location: - row: 133 - column: 16 + edits: + - content: "\n return None" + location: + row: 133 + column: 16 + end_location: + row: 133 + column: 16 parent: ~ - kind: name: ImplicitReturn @@ -234,13 +245,14 @@ expression: diagnostics row: 143 column: 19 fix: - content: "\n return None" - location: - row: 143 - column: 19 - end_location: - row: 143 - column: 19 + edits: + - content: "\n return None" + location: + row: 143 + column: 19 + end_location: + row: 143 + column: 19 parent: ~ - kind: name: ImplicitReturn @@ -254,13 +266,14 @@ expression: diagnostics row: 275 column: 20 fix: - content: "\n return None" - location: - row: 275 - column: 20 - end_location: - row: 275 - column: 20 + edits: + - content: "\n return None" + location: + row: 275 + column: 20 + end_location: + row: 275 + column: 20 parent: ~ - kind: name: ImplicitReturn @@ -274,13 +287,14 @@ expression: diagnostics row: 291 column: 19 fix: - content: "\n return None" - location: - row: 291 - column: 28 - end_location: - row: 291 - column: 28 + edits: + - content: "\n return None" + location: + row: 291 + column: 28 + end_location: + row: 291 + column: 28 parent: ~ - kind: name: ImplicitReturn @@ -294,13 +308,14 @@ expression: diagnostics row: 301 column: 21 fix: - content: "\n return None" - location: - row: 301 - column: 21 - end_location: - row: 301 - column: 21 + edits: + - content: "\n return None" + location: + row: 301 + column: 21 + end_location: + row: 301 + column: 21 parent: ~ - kind: name: ImplicitReturn @@ -314,13 +329,14 @@ expression: diagnostics row: 306 column: 21 fix: - content: "\n return None" - location: - row: 306 - column: 21 - end_location: - row: 306 - column: 21 + edits: + - content: "\n return None" + location: + row: 306 + column: 21 + end_location: + row: 306 + column: 21 parent: ~ - kind: name: ImplicitReturn @@ -334,13 +350,14 @@ expression: diagnostics row: 311 column: 21 fix: - content: "\n return None" - location: - row: 311 - column: 37 - end_location: - row: 311 - column: 37 + edits: + - content: "\n return None" + location: + row: 311 + column: 37 + end_location: + row: 311 + column: 37 parent: ~ - kind: name: ImplicitReturn @@ -354,13 +371,14 @@ expression: diagnostics row: 316 column: 21 fix: - content: "\n return None" - location: - row: 316 - column: 24 - end_location: - row: 316 - column: 24 + edits: + - content: "\n return None" + location: + row: 316 + column: 24 + end_location: + row: 316 + column: 24 parent: ~ - kind: name: ImplicitReturn @@ -374,12 +392,13 @@ expression: diagnostics row: 321 column: 21 fix: - content: "\n return None" - location: - row: 322 - column: 33 - end_location: - row: 322 - column: 33 + edits: + - content: "\n return None" + location: + row: 322 + column: 33 + end_location: + row: 322 + column: 33 parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap index dfd279940a3886..d3f08206535156 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET504_RET504.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryAssign @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 249 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap index bbec7b4db8eb68..b78612a43acdde 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET505_RET505.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 53 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 64 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 79 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 89 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseReturn @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 99 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap index 17b6268fc28ab7..d3e5741be9ec46 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET506_RET506.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 34 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 45 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 60 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 70 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseRaise @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 80 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap index f873fa9b6251c6..7baf47364d6996 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET507_RET507.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 36 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 47 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 63 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 74 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseContinue @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 85 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap index 2922304d9c306f..870fcbcab1873c 100644 --- a/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap +++ b/crates/ruff/src/rules/flake8_return/snapshots/ruff__rules__flake8_return__tests__RET508_RET508.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 33 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 60 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 71 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuperfluousElseBreak @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 82 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap b/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap index 8c4abb26abdec0..8ced1949378f1f 100644 --- a/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap +++ b/crates/ruff/src/rules/flake8_self/snapshots/ruff__rules__flake8_self__tests__private-member-access_SLF001.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 34 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 36 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 38 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 43 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 59 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 61 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 62 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 63 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 64 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PrivateMemberAccess @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 65 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap index 3f8f7e3c8d52f1..1f51d4e3af28a8 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM101_SIM101.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 45 fix: - content: "isinstance(a, (int, float))" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 45 + edits: + - content: "isinstance(a, (int, float))" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 45 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 53 fix: - content: "isinstance(a, (int, float, bool))" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 53 + edits: + - content: "isinstance(a, (int, float, bool))" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 53 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 7 - column: 3 - end_location: - row: 7 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 7 + column: 3 + end_location: + row: 7 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 68 fix: - content: "isinstance(a, (int, float)) or isinstance(b, bool)" - location: - row: 13 - column: 3 - end_location: - row: 13 - column: 68 + edits: + - content: "isinstance(a, (int, float)) or isinstance(b, bool)" + location: + row: 13 + column: 3 + end_location: + row: 13 + column: 68 parent: ~ - kind: name: DuplicateIsinstanceCall @@ -114,12 +119,13 @@ expression: diagnostics row: 16 column: 46 fix: - content: "isinstance(a, (int, float))" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 46 + edits: + - content: "isinstance(a, (int, float))" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap index 6ddf06a8ec2e1c..847d7bd177a238 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM102_SIM102.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 9 fix: - content: "if a and b:\n c\n" - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "if a and b:\n c\n" + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 13 fix: - content: "if a and b:\n if c:\n d\n" - location: - row: 7 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "if a and b:\n if c:\n d\n" + location: + row: 7 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 9 fix: - content: "elif b and c:\n d\n" - location: - row: 15 - column: 0 - end_location: - row: 18 - column: 0 + edits: + - content: "elif b and c:\n d\n" + location: + row: 15 + column: 0 + end_location: + row: 18 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 22 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollapsibleIf @@ -87,13 +91,14 @@ expression: diagnostics row: 27 column: 9 fix: - content: "if a and b:\n # Fixable due to placement of this comment.\n c\n" - location: - row: 26 - column: 0 - end_location: - row: 30 - column: 0 + edits: + - content: "if a and b:\n # Fixable due to placement of this comment.\n c\n" + location: + row: 26 + column: 0 + end_location: + row: 30 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -107,13 +112,14 @@ expression: diagnostics row: 52 column: 16 fix: - content: " if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 51 - column: 0 - end_location: - row: 64 - column: 0 + edits: + - content: " if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 51 + column: 0 + end_location: + row: 64 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -127,13 +133,14 @@ expression: diagnostics row: 68 column: 12 fix: - content: "if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 67 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "if True and True:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 67 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -147,13 +154,14 @@ expression: diagnostics row: 86 column: 10 fix: - content: " if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n )):\n print(\"Bad module!\")\n" - location: - row: 83 - column: 0 - end_location: - row: 88 - column: 0 + edits: + - content: " if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n )):\n print(\"Bad module!\")\n" + location: + row: 83 + column: 0 + end_location: + row: 88 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -167,13 +175,14 @@ expression: diagnostics row: 93 column: 6 fix: - content: "if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n)):\n print(\"Bad module!\")\n" - location: - row: 90 - column: 0 - end_location: - row: 95 - column: 0 + edits: + - content: "if node.module and (node.module == \"multiprocessing\" or node.module.startswith(\n \"multiprocessing.\"\n)):\n print(\"Bad module!\")\n" + location: + row: 90 + column: 0 + end_location: + row: 95 + column: 0 parent: ~ - kind: name: CollapsibleIf @@ -187,12 +196,13 @@ expression: diagnostics row: 118 column: 13 fix: - content: " if b and c:\n print(\"foo\")\n" - location: - row: 117 - column: 0 - end_location: - row: 120 - column: 0 + edits: + - content: " if b and c:\n print(\"foo\")\n" + location: + row: 117 + column: 0 + end_location: + row: 120 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap index a3b45f234c8f12..9d5751d192747a 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM103_SIM103.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: return bool(a) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 20 + edits: + - content: return bool(a) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 20 fix: - content: return a == b - location: - row: 11 - column: 4 - end_location: - row: 14 - column: 20 + edits: + - content: return a == b + location: + row: 11 + column: 4 + end_location: + row: 14 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -54,13 +56,14 @@ expression: diagnostics row: 24 column: 20 fix: - content: return bool(b) - location: - row: 21 - column: 4 - end_location: - row: 24 - column: 20 + edits: + - content: return bool(b) + location: + row: 21 + column: 4 + end_location: + row: 24 + column: 20 parent: ~ - kind: name: NeedlessBool @@ -74,13 +77,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return bool(b) - location: - row: 32 - column: 8 - end_location: - row: 35 - column: 24 + edits: + - content: return bool(b) + location: + row: 32 + column: 8 + end_location: + row: 35 + column: 24 parent: ~ - kind: name: NeedlessBool @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 60 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NeedlessBool @@ -106,6 +111,7 @@ expression: diagnostics end_location: row: 86 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap index 9d4cbdaea37e8e..f5d9ac276b92ff 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM105_SIM105.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SuppressibleException @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap index e2b7b3beb90a15..69526ced2777ae 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM107_SIM107.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap index 382dad084073aa..79173f0dc055a9 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM108_SIM108.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 9 fix: - content: b = c if a else d - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 9 + edits: + - content: b = c if a else d + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 9 parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -33,7 +34,8 @@ expression: diagnostics end_location: row: 63 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -47,13 +49,14 @@ expression: diagnostics row: 85 column: 45 fix: - content: b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd - location: - row: 82 - column: 0 - end_location: - row: 85 - column: 45 + edits: + - content: b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd + location: + row: 82 + column: 0 + end_location: + row: 85 + column: 45 parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -66,7 +69,8 @@ expression: diagnostics end_location: row: 100 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 105 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfIfExp @@ -92,6 +97,7 @@ expression: diagnostics end_location: row: 112 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap index aa33b925aafe40..676286a4788277 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM109_SIM109.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 19 fix: - content: "a in (b, c)" - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 19 + edits: + - content: "a in (b, c)" + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 19 parent: ~ - kind: name: CompareWithTuple @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: "a in (b, c)" - location: - row: 6 - column: 4 - end_location: - row: 6 - column: 20 + edits: + - content: "a in (b, c)" + location: + row: 6 + column: 4 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: CompareWithTuple @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 27 fix: - content: "a in (b, c) or None" - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 27 + edits: + - content: "a in (b, c) or None" + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 27 parent: ~ - kind: name: CompareWithTuple @@ -74,12 +77,13 @@ expression: diagnostics row: 14 column: 27 fix: - content: "a in (b, c) or None" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 27 + edits: + - content: "a in (b, c) or None" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap index 684aa45103afa2..a40a0591fbb81e 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM110.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 25 - column: 4 - end_location: - row: 28 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 25 + column: 4 + end_location: + row: 28 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -54,13 +56,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return all(x.is_empty() for x in iterable) - location: - row: 33 - column: 4 - end_location: - row: 36 - column: 15 + edits: + - content: return all(x.is_empty() for x in iterable) + location: + row: 33 + column: 4 + end_location: + row: 36 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -74,13 +77,14 @@ expression: diagnostics row: 59 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 55 - column: 4 - end_location: - row: 59 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 55 + column: 4 + end_location: + row: 59 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -94,13 +98,14 @@ expression: diagnostics row: 68 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 64 - column: 4 - end_location: - row: 68 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 64 + column: 4 + end_location: + row: 68 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -114,13 +119,14 @@ expression: diagnostics row: 77 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 73 - column: 4 - end_location: - row: 77 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 73 + column: 4 + end_location: + row: 77 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 83 - column: 4 - end_location: - row: 87 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 83 + column: 4 + end_location: + row: 87 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -153,7 +160,8 @@ expression: diagnostics end_location: row: 126 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -166,7 +174,8 @@ expression: diagnostics end_location: row: 136 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -180,13 +189,14 @@ expression: diagnostics row: 146 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 144 - column: 4 - end_location: - row: 147 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 144 + column: 4 + end_location: + row: 147 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -200,12 +210,13 @@ expression: diagnostics row: 156 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 154 - column: 4 - end_location: - row: 157 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 154 + column: 4 + end_location: + row: 157 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap index 1123651c15d136..587ff091ac5fd9 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM110_SIM111.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 3 - column: 4 - end_location: - row: 6 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 3 + column: 4 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -34,13 +35,14 @@ expression: diagnostics row: 27 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 25 - column: 4 - end_location: - row: 28 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 25 + column: 4 + end_location: + row: 28 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -54,13 +56,14 @@ expression: diagnostics row: 35 column: 24 fix: - content: return all(x.is_empty() for x in iterable) - location: - row: 33 - column: 4 - end_location: - row: 36 - column: 15 + edits: + - content: return all(x.is_empty() for x in iterable) + location: + row: 33 + column: 4 + end_location: + row: 36 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -74,13 +77,14 @@ expression: diagnostics row: 59 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 55 - column: 4 - end_location: - row: 59 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 55 + column: 4 + end_location: + row: 59 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -94,13 +98,14 @@ expression: diagnostics row: 68 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 64 - column: 4 - end_location: - row: 68 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 64 + column: 4 + end_location: + row: 68 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -114,13 +119,14 @@ expression: diagnostics row: 77 column: 20 fix: - content: return any(check(x) for x in iterable) - location: - row: 73 - column: 4 - end_location: - row: 77 - column: 20 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 73 + column: 4 + end_location: + row: 77 + column: 20 parent: ~ - kind: name: ReimplementedBuiltin @@ -134,13 +140,14 @@ expression: diagnostics row: 87 column: 19 fix: - content: return all(not check(x) for x in iterable) - location: - row: 83 - column: 4 - end_location: - row: 87 - column: 19 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 83 + column: 4 + end_location: + row: 87 + column: 19 parent: ~ - kind: name: ReimplementedBuiltin @@ -153,7 +160,8 @@ expression: diagnostics end_location: row: 126 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -166,7 +174,8 @@ expression: diagnostics end_location: row: 136 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReimplementedBuiltin @@ -180,13 +189,14 @@ expression: diagnostics row: 146 column: 23 fix: - content: return any(check(x) for x in iterable) - location: - row: 144 - column: 4 - end_location: - row: 147 - column: 16 + edits: + - content: return any(check(x) for x in iterable) + location: + row: 144 + column: 4 + end_location: + row: 147 + column: 16 parent: ~ - kind: name: ReimplementedBuiltin @@ -200,13 +210,14 @@ expression: diagnostics row: 156 column: 24 fix: - content: return all(not check(x) for x in iterable) - location: - row: 154 - column: 4 - end_location: - row: 157 - column: 15 + edits: + - content: return all(not check(x) for x in iterable) + location: + row: 154 + column: 4 + end_location: + row: 157 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -220,13 +231,14 @@ expression: diagnostics row: 164 column: 24 fix: - content: return all(x in y for x in iterable) - location: - row: 162 - column: 4 - end_location: - row: 165 - column: 15 + edits: + - content: return all(x in y for x in iterable) + location: + row: 162 + column: 4 + end_location: + row: 165 + column: 15 parent: ~ - kind: name: ReimplementedBuiltin @@ -240,12 +252,13 @@ expression: diagnostics row: 172 column: 24 fix: - content: return all(x <= y for x in iterable) - location: - row: 170 - column: 4 - end_location: - row: 173 - column: 15 + edits: + - content: return all(x <= y for x in iterable) + location: + row: 170 + column: 4 + end_location: + row: 173 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap index 7d9847a56e37b6..107d61483c2010 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM112_SIM112.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 16 fix: - content: "'FOO'" - location: - row: 4 - column: 11 - end_location: - row: 4 - column: 16 + edits: + - content: "'FOO'" + location: + row: 4 + column: 11 + end_location: + row: 4 + column: 16 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 20 fix: - content: "'FOO'" - location: - row: 6 - column: 15 - end_location: - row: 6 - column: 20 + edits: + - content: "'FOO'" + location: + row: 6 + column: 15 + end_location: + row: 6 + column: 20 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: "'FOO'" - location: - row: 8 - column: 15 - end_location: - row: 8 - column: 20 + edits: + - content: "'FOO'" + location: + row: 8 + column: 15 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: UncapitalizedEnvironmentVariables @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 15 fix: - content: "'FOO'" - location: - row: 10 - column: 10 - end_location: - row: 10 - column: 15 + edits: + - content: "'FOO'" + location: + row: 10 + column: 10 + end_location: + row: 10 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap index 3185d28892bc58..024395540ab155 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM114_SIM114.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 36 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 36 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 56 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfWithSameArms @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 65 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap index 682bbc990e5d0f..b7122bccd042a0 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM115_SIM115.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OpenFileWithContextHandler @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 31 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap index 59a6aa66ef2ad1..6a65452e206341 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM116_SIM116.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 22 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 48 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 58 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfElseBlockInsteadOfDictLookup @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 86 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap index fb6a3e4d08d6ab..336801bae8e602 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM117_SIM117.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "with A() as a, B() as b:\n print(\"hello\")\n" - location: - row: 2 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "with A() as a, B() as b:\n print(\"hello\")\n" + location: + row: 2 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -34,13 +35,14 @@ expression: diagnostics row: 9 column: 17 fix: - content: "with A(), B():\n with C():\n print(\"hello\")\n" - location: - row: 7 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "with A(), B():\n with C():\n print(\"hello\")\n" + location: + row: 7 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleWithStatements @@ -67,13 +70,14 @@ expression: diagnostics row: 20 column: 18 fix: - content: "with A() as a, B() as b:\n # Fixable due to placement of this comment.\n print(\"hello\")\n" - location: - row: 19 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "with A() as a, B() as b:\n # Fixable due to placement of this comment.\n print(\"hello\")\n" + location: + row: 19 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -87,13 +91,14 @@ expression: diagnostics row: 54 column: 22 fix: - content: " with A() as a, B() as b:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" - location: - row: 53 - column: 0 - end_location: - row: 66 - column: 0 + edits: + - content: " with A() as a, B() as b:\n \"\"\"this\nis valid\"\"\"\n\n \"\"\"the indentation on\n this line is significant\"\"\"\n\n \"this is\" \\\n\"allowed too\"\n\n (\"so is\"\n\"this for some reason\")\n" + location: + row: 53 + column: 0 + end_location: + row: 66 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -107,13 +112,14 @@ expression: diagnostics row: 72 column: 18 fix: - content: "with (\n A() as a,\n B() as b,C() as c\n):\n print(\"hello\")\n" - location: - row: 68 - column: 0 - end_location: - row: 74 - column: 0 + edits: + - content: "with (\n A() as a,\n B() as b,C() as c\n):\n print(\"hello\")\n" + location: + row: 68 + column: 0 + end_location: + row: 74 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -127,13 +133,14 @@ expression: diagnostics row: 80 column: 6 fix: - content: "with (\n A() as a, B() as b,\n C() as c,\n):\n print(\"hello\")\n" - location: - row: 76 - column: 0 - end_location: - row: 82 - column: 0 + edits: + - content: "with (\n A() as a, B() as b,\n C() as c,\n):\n print(\"hello\")\n" + location: + row: 76 + column: 0 + end_location: + row: 82 + column: 0 parent: ~ - kind: name: MultipleWithStatements @@ -147,12 +154,13 @@ expression: diagnostics row: 91 column: 6 fix: - content: "with (\n A() as a,\n B() as b,C() as c,\n D() as d,\n):\n print(\"hello\")\n" - location: - row: 84 - column: 0 - end_location: - row: 93 - column: 0 + edits: + - content: "with (\n A() as a,\n B() as b,C() as c,\n D() as d,\n):\n print(\"hello\")\n" + location: + row: 84 + column: 0 + end_location: + row: 93 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap index c7029bcbc0de90..794eab0c493f9f 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM118_SIM118.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 17 fix: - content: obj - location: - row: 1 - column: 7 - end_location: - row: 1 - column: 17 + edits: + - content: obj + location: + row: 1 + column: 7 + end_location: + row: 1 + column: 17 parent: ~ - kind: name: InDictKeys @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 24 fix: - content: obj - location: - row: 3 - column: 14 - end_location: - row: 3 - column: 24 + edits: + - content: obj + location: + row: 3 + column: 14 + end_location: + row: 3 + column: 24 parent: ~ - kind: name: InDictKeys @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 24 fix: - content: obj - location: - row: 5 - column: 14 - end_location: - row: 5 - column: 24 + edits: + - content: obj + location: + row: 5 + column: 14 + end_location: + row: 5 + column: 24 parent: ~ - kind: name: InDictKeys @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 19 fix: - content: obj - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 19 + edits: + - content: obj + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 19 parent: ~ - kind: name: InDictKeys @@ -94,13 +98,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: obj - location: - row: 9 - column: 11 - end_location: - row: 9 - column: 21 + edits: + - content: obj + location: + row: 9 + column: 11 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: InDictKeys @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: obj - location: - row: 16 - column: 12 - end_location: - row: 16 - column: 22 + edits: + - content: obj + location: + row: 16 + column: 12 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: InDictKeys @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 22 fix: - content: obj - location: - row: 18 - column: 12 - end_location: - row: 18 - column: 22 + edits: + - content: obj + location: + row: 18 + column: 12 + end_location: + row: 18 + column: 22 parent: ~ - kind: name: InDictKeys @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 25 fix: - content: obj - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 25 + edits: + - content: obj + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 25 parent: ~ - kind: name: InDictKeys @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 22 fix: - content: obj - location: - row: 22 - column: 12 - end_location: - row: 22 - column: 22 + edits: + - content: obj + location: + row: 22 + column: 12 + end_location: + row: 22 + column: 22 parent: ~ - kind: name: InDictKeys @@ -194,12 +203,13 @@ expression: diagnostics row: 24 column: 25 fix: - content: "(obj or {})" - location: - row: 24 - column: 7 - end_location: - row: 24 - column: 25 + edits: + - content: "(obj or {})" + location: + row: 24 + column: 7 + end_location: + row: 24 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap index 13993db58015a5..ffc40d3fa05023 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM201_SIM201.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: a != b - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: a != b + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NegateEqualOp @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: a != b + c - location: - row: 6 - column: 3 - end_location: - row: 6 - column: 19 + edits: + - content: a != b + c + location: + row: 6 + column: 3 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: NegateEqualOp @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 19 fix: - content: a + b != c - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 19 + edits: + - content: a + b != c + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap index 132abb3c5c1eab..ca53b50a65ad74 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM202_SIM202.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: a == b - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: a == b + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NegateNotEqualOp @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: a == b + c - location: - row: 6 - column: 3 - end_location: - row: 6 - column: 19 + edits: + - content: a == b + c + location: + row: 6 + column: 3 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: NegateNotEqualOp @@ -54,12 +56,13 @@ expression: diagnostics row: 10 column: 19 fix: - content: a + b == c - location: - row: 10 - column: 3 - end_location: - row: 10 - column: 19 + edits: + - content: a + b == c + location: + row: 10 + column: 3 + end_location: + row: 10 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap index 6c40fa40f8f8b1..d3dc8db76819c7 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM208_SIM208.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: a - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: a + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: DoubleNegation @@ -34,12 +35,13 @@ expression: diagnostics row: 4 column: 21 fix: - content: a == b - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 21 + edits: + - content: a == b + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap index 1dbb45fa2e4991..2595c3d73ea8c6 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 24 fix: - content: bool(b) - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 24 + edits: + - content: bool(b) + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 24 parent: ~ - kind: name: IfExprWithTrueFalse @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 29 fix: - content: b != c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 29 + edits: + - content: b != c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 29 parent: ~ - kind: name: IfExprWithTrueFalse @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 28 fix: - content: bool(b + c) - location: - row: 5 - column: 4 - end_location: - row: 5 - column: 28 + edits: + - content: bool(b + c) + location: + row: 5 + column: 4 + end_location: + row: 5 + column: 28 parent: ~ - kind: name: IfExprWithTrueFalse @@ -73,6 +76,7 @@ expression: diagnostics end_location: row: 14 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap index 19e0cb3bc3a8d8..076839027c98f4 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM211_SIM211.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 24 fix: - content: not b - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 24 + edits: + - content: not b + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 24 parent: ~ - kind: name: IfExprWithFalseTrue @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 29 fix: - content: not b != c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 29 + edits: + - content: not b != c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 29 parent: ~ - kind: name: IfExprWithFalseTrue @@ -54,12 +56,13 @@ expression: diagnostics row: 5 column: 28 fix: - content: not b + c - location: - row: 5 - column: 4 - end_location: - row: 5 - column: 28 + edits: + - content: not b + c + location: + row: 5 + column: 4 + end_location: + row: 5 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap index 3401515663cf10..a3ce0cff029e26 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM212_SIM212.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 21 fix: - content: a if a else b - location: - row: 1 - column: 4 - end_location: - row: 1 - column: 21 + edits: + - content: a if a else b + location: + row: 1 + column: 4 + end_location: + row: 1 + column: 21 parent: ~ - kind: name: IfExprWithTwistedArms @@ -34,12 +35,13 @@ expression: diagnostics row: 3 column: 25 fix: - content: a if a else b + c - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 25 + edits: + - content: a if a else b + c + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap index f239a4139a98cf..2286c43d504275 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM220_SIM220.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: "False" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: "False" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: ExprAndNotExpr @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "False" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 15 + edits: + - content: "False" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 15 parent: ~ - kind: name: ExprAndNotExpr @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 15 fix: - content: "False" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 15 + edits: + - content: "False" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap index acf65022e6ad4d..52fe0d4a8cb4f8 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM221_SIM221.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 13 fix: - content: "True" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 13 + edits: + - content: "True" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 13 parent: ~ - kind: name: ExprOrNotExpr @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: "True" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 14 + edits: + - content: "True" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: ExprOrNotExpr @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 14 fix: - content: "True" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 14 + edits: + - content: "True" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap index 10949848004a39..df4f601a9ad926 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM222_SIM222.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 12 fix: - content: "True" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 12 + edits: + - content: "True" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 12 parent: ~ - kind: name: ExprOrTrue @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "True" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 19 + edits: + - content: "True" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: ExprOrTrue @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 18 fix: - content: "True" - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 18 + edits: + - content: "True" + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 18 parent: ~ - kind: name: ExprOrTrue @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 31 fix: - content: "True" - location: - row: 24 - column: 15 - end_location: - row: 24 - column: 31 + edits: + - content: "True" + location: + row: 24 + column: 15 + end_location: + row: 24 + column: 31 parent: ~ - kind: name: ExprOrTrue @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 31 fix: - content: "True" - location: - row: 27 - column: 3 - end_location: - row: 27 - column: 31 + edits: + - content: "True" + location: + row: 27 + column: 3 + end_location: + row: 27 + column: 31 parent: ~ - kind: name: ExprOrTrue @@ -114,12 +119,13 @@ expression: diagnostics row: 30 column: 31 fix: - content: "True" - location: - row: 30 - column: 3 - end_location: - row: 30 - column: 31 + edits: + - content: "True" + location: + row: 30 + column: 3 + end_location: + row: 30 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap index 182d25f84aa621..987539f19d7e03 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM223_SIM223.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 14 fix: - content: "False" - location: - row: 1 - column: 3 - end_location: - row: 1 - column: 14 + edits: + - content: "False" + location: + row: 1 + column: 3 + end_location: + row: 1 + column: 14 parent: ~ - kind: name: ExprAndFalse @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 21 fix: - content: "False" - location: - row: 4 - column: 3 - end_location: - row: 4 - column: 21 + edits: + - content: "False" + location: + row: 4 + column: 3 + end_location: + row: 4 + column: 21 parent: ~ - kind: name: ExprAndFalse @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 20 fix: - content: "False" - location: - row: 7 - column: 9 - end_location: - row: 7 - column: 20 + edits: + - content: "False" + location: + row: 7 + column: 9 + end_location: + row: 7 + column: 20 parent: ~ - kind: name: ExprAndFalse @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 36 fix: - content: "False" - location: - row: 19 - column: 17 - end_location: - row: 19 - column: 36 + edits: + - content: "False" + location: + row: 19 + column: 17 + end_location: + row: 19 + column: 36 parent: ~ - kind: name: ExprAndFalse @@ -94,13 +98,14 @@ expression: diagnostics row: 22 column: 36 fix: - content: "False" - location: - row: 22 - column: 3 - end_location: - row: 22 - column: 36 + edits: + - content: "False" + location: + row: 22 + column: 3 + end_location: + row: 22 + column: 36 parent: ~ - kind: name: ExprAndFalse @@ -114,12 +119,13 @@ expression: diagnostics row: 25 column: 36 fix: - content: "False" - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 36 + edits: + - content: "False" + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap index 81a84330380018..27aa0dd4e56c13 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM300_SIM300.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "compare == \"yoda\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 17 + edits: + - content: "compare == \"yoda\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 17 parent: ~ - kind: name: YodaConditions @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 17 fix: - content: "compare == \"yoda\"" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 17 + edits: + - content: "compare == \"yoda\"" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 17 parent: ~ - kind: name: YodaConditions @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: age == 42 - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 9 + edits: + - content: age == 42 + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: YodaConditions @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 21 fix: - content: "compare == (\"a\", \"b\")" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 21 + edits: + - content: "compare == (\"a\", \"b\")" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 21 parent: ~ - kind: name: YodaConditions @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 17 fix: - content: "compare >= \"yoda\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 17 + edits: + - content: "compare >= \"yoda\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 17 parent: ~ - kind: name: YodaConditions @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 16 fix: - content: "compare > \"yoda\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 16 + edits: + - content: "compare > \"yoda\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 16 parent: ~ - kind: name: YodaConditions @@ -134,13 +140,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: age < 42 - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 8 + edits: + - content: age < 42 + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: YodaConditions @@ -154,13 +161,14 @@ expression: diagnostics row: 9 column: 9 fix: - content: age < -42 - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 9 + edits: + - content: age < -42 + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 9 parent: ~ - kind: name: YodaConditions @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 9 fix: - content: age < +42 - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 9 + edits: + - content: age < +42 + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 9 parent: ~ - kind: name: YodaConditions @@ -194,13 +203,14 @@ expression: diagnostics row: 11 column: 11 fix: - content: age == YODA - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 11 + edits: + - content: age == YODA + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 11 parent: ~ - kind: name: YodaConditions @@ -214,13 +224,14 @@ expression: diagnostics row: 12 column: 10 fix: - content: age < YODA - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 10 + edits: + - content: age < YODA + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 10 parent: ~ - kind: name: YodaConditions @@ -234,13 +245,14 @@ expression: diagnostics row: 13 column: 11 fix: - content: age <= YODA - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 11 + edits: + - content: age <= YODA + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 11 parent: ~ - kind: name: YodaConditions @@ -254,13 +266,14 @@ expression: diagnostics row: 14 column: 21 fix: - content: age == JediOrder.YODA - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 21 + edits: + - content: age == JediOrder.YODA + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 21 parent: ~ - kind: name: YodaConditions @@ -274,13 +287,14 @@ expression: diagnostics row: 15 column: 18 fix: - content: (number - 100) > 0 - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 18 + edits: + - content: (number - 100) > 0 + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 18 parent: ~ - kind: name: YodaConditions @@ -294,12 +308,13 @@ expression: diagnostics row: 16 column: 52 fix: - content: (60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE - location: - row: 16 - column: 0 - end_location: - row: 16 - column: 52 + edits: + - content: (60 * 60) < SomeClass().settings.SOME_CONSTANT_VALUE + location: + row: 16 + column: 0 + end_location: + row: 16 + column: 52 parent: ~ diff --git a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap index a45d24262534e5..55eba391ffae8f 100644 --- a/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap +++ b/crates/ruff/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM401_SIM401.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 20 fix: - content: "var = a_dict.get(key, \"default1\")" - location: - row: 6 - column: 0 - end_location: - row: 9 - column: 20 + edits: + - content: "var = a_dict.get(key, \"default1\")" + location: + row: 6 + column: 0 + end_location: + row: 9 + column: 20 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -34,13 +35,14 @@ expression: diagnostics row: 15 column: 21 fix: - content: "var = a_dict.get(key, \"default2\")" - location: - row: 12 - column: 0 - end_location: - row: 15 - column: 21 + edits: + - content: "var = a_dict.get(key, \"default2\")" + location: + row: 12 + column: 0 + end_location: + row: 15 + column: 21 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -54,13 +56,14 @@ expression: diagnostics row: 27 column: 19 fix: - content: "var = a_dict.get(keys[idx], \"default\")" - location: - row: 24 - column: 0 - end_location: - row: 27 - column: 19 + edits: + - content: "var = a_dict.get(keys[idx], \"default\")" + location: + row: 24 + column: 0 + end_location: + row: 27 + column: 19 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -74,13 +77,14 @@ expression: diagnostics row: 33 column: 19 fix: - content: "var = dicts[idx].get(key, \"default\")" - location: - row: 30 - column: 0 - end_location: - row: 33 - column: 19 + edits: + - content: "var = dicts[idx].get(key, \"default\")" + location: + row: 30 + column: 0 + end_location: + row: 33 + column: 19 parent: ~ - kind: name: IfElseBlockInsteadOfDictGet @@ -94,12 +98,13 @@ expression: diagnostics row: 39 column: 25 fix: - content: "vars[idx] = a_dict.get(key, \"default\")" - location: - row: 36 - column: 0 - end_location: - row: 39 - column: 25 + edits: + - content: "vars[idx] = a_dict.get(key, \"default\")" + location: + row: 36 + column: 0 + end_location: + row: 39 + column: 25 parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap index 5880eccea68301..8f8e1d76219112 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__banned_api__tests__banned_api_true_positives.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 17 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 22 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 27 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 29 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BannedApi @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 33 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap index 398d7fb0a03a66..74c13e6b1da015 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_all_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 16 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 21 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 22 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 23 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 24 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 25 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 26 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 27 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -221,6 +237,7 @@ expression: diagnostics end_location: row: 28 column: 62 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap index c8173563141c7a..1f1321e6f9466e 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 12 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 21 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 25 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 27 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 28 column: 62 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap index 868124bf766e87..0b208b812ed51c 100644 --- a/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap +++ b/crates/ruff/src/rules/flake8_tidy_imports/snapshots/ruff__rules__flake8_tidy_imports__relative_imports__tests__ban_parent_imports_package.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RelativeImports @@ -27,13 +28,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -47,13 +49,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -67,13 +70,14 @@ expression: diagnostics row: 6 column: 55 fix: - content: "from my_package.sublib.protocol import commands, definitions, responses" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 55 + edits: + - content: "from my_package.sublib.protocol import commands, definitions, responses" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 55 parent: ~ - kind: name: RelativeImports @@ -87,13 +91,14 @@ expression: diagnostics row: 7 column: 28 fix: - content: from my_package.sublib.server import example - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 28 + edits: + - content: from my_package.sublib.server import example + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 28 parent: ~ - kind: name: RelativeImports @@ -107,12 +112,13 @@ expression: diagnostics row: 8 column: 21 fix: - content: from my_package.sublib import server - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 21 + edits: + - content: from my_package.sublib import server + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap index 878759b61ddbaa..4c6f5068031981 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__empty-type-checking-block_TCH005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 9 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 9 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 8 fix: - content: "" - location: - row: 10 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "" + location: + row: 10 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 16 column: 12 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: EmptyTypeCheckingBlock @@ -94,12 +98,13 @@ expression: diagnostics row: 22 column: 12 fix: - content: "" - location: - row: 21 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "" + location: + row: 21 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap index aba8f65b1b1a5a..0b3fc16c2781e3 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__exempt_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap index 307476d0d9c520..4d91db02fb4b6d 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap index 0dfb363fd0fd60..a71a830108d35a 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_11.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap index d009a67ad7deb1..547d59cb901472 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_12.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap index 34456223b4e9c7..e844ea1d668022 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap index 17075ce3eb1014..e5ea5576aa6f9b 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_4.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap index 86762da70f0147..2acf36e0355aba 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_5.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 4 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap index b7ab69ac2241aa..94f69a4cd09f51 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_TCH004_9.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 4 column: 34 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap index a559c4d5fa4a46..cbc65d31d5d7b5 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_base_classes_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap index ffff6d8db94c12..70a0c332e0bbbf 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__runtime-import-in-type-checking-block_runtime_evaluated_decorators_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 13 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RuntimeImportInTypeCheckingBlock @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap index 0851e7d6b56093..4242e565ac6fcf 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__strict.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 24 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 32 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 51 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap index 741a9def50c1b0..95be55c3ff7b74 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-first-party-import_TCH001.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 20 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap index ac3db1ea808226..453734413783b4 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_TCH003.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap index cd98cae8e145dc..ab8e72c1c4aeb6 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_base_classes_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap index ef65e746bd3b88..7d2956dc20799c 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-standard-library-import_runtime_evaluated_decorators_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap index 0384b0d2d7cea3..08e60a76635c61 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_TCH002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 17 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 35 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 41 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 47 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap index 4ce589f1e6f71c..6985e900787c6f 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_base_classes_2.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypingOnlyThirdPartyImport @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap index 10d5bf0a8bcdc4..5551bb35bf5ff7 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_runtime_evaluated_decorators_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap index c2e9668c68e5b9..8bcb99af8e83f2 100644 --- a/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap +++ b/crates/ruff/src/rules/flake8_type_checking/snapshots/ruff__rules__flake8_type_checking__tests__typing-only-third-party-import_strict.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 51 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap index 218dbd1b3b2a51..4433fb9233cbe7 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG001_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 21 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap index 1ea9777e08fd42..05816d60fbe45b 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG002_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 35 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 190 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap index eadbaeaad7bae0..96075842ad9eca 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG003_ARG.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 45 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap index 1eea3ea6e4ceda..78eadc12b049a8 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG004_ARG.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 49 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedStaticMethodArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 49 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedStaticMethodArgument @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 53 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap index afd9bf361761d3..d795017088bcf1 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ARG005_ARG.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 28 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap index 703553a4ace5ba..045f6d00c0288f 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__enforce_variadic_names.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 13 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 13 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -156,6 +167,7 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap index 3f6885aad08881..1abfd373c9b7eb 100644 --- a/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap +++ b/crates/ruff/src/rules/flake8_unused_arguments/snapshots/ruff__rules__flake8_unused_arguments__tests__ignore_variadic_names.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 1 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedFunctionArgument @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedMethodArgument @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 13 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap index 539bfe428418c6..2d0f3cde749086 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap index 9f887cff404cb6..cce144ebaa31c4 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__PTH124_py_path_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap index 0f472abf8f42e8..93ffcd688eafdd 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__full_name.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 15 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 16 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 18 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 19 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 20 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 21 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 23 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 28 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 29 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 31 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -338,6 +363,7 @@ expression: diagnostics end_location: row: 32 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap index 53ffbb4d751747..6313259df83ec3 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_as.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 10 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 12 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 13 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 14 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 15 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 16 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 17 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 19 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 20 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 21 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 24 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 25 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 26 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 27 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 28 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap index 51d1698e324d3c..c1111f5cfcc2cf 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 12 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 15 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 16 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 17 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 18 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 19 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 20 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 21 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 22 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 24 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 25 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 26 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 27 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 28 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 29 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 30 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 31 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BuiltinOpen @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 33 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap index 27a7f29dc4f1f2..dce97d04b185be 100644 --- a/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap +++ b/crates/ruff/src/rules/flake8_use_pathlib/snapshots/ruff__rules__flake8_use_pathlib__tests__import_from_as.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsChmod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMkdir @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsMakedirs @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRename @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PathlibReplace @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRmdir @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsRemove @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsUnlink @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsGetcwd @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExists @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathExpanduser @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 24 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsdir @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsfile @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIslink @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsReadlink @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsStat @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathIsabs @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 30 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathJoin @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 31 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathBasename @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 32 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathDirname @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 33 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSamefile @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 34 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OsPathSplitext @@ -299,6 +321,7 @@ expression: diagnostics end_location: row: 35 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap index a1b39e4471397f..f590626255667b 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__add_newline_before_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 0 fix: - content: "import os\n\n# This is a comment in the same section, so we need to add one newline.\nimport sys\n\nimport numpy as np\n\n# This is a comment, but it starts a new section, so we don't need to add a newline\n# before it.\nimport leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 8 - column: 0 + edits: + - content: "import os\n\n# This is a comment in the same section, so we need to add one newline.\nimport sys\n\nimport numpy as np\n\n# This is a comment, but it starts a new section, so we don't need to add a newline\n# before it.\nimport leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 8 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap index f4353cf7724440..a770a696c332a7 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__as_imports_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 16 column: 0 fix: - content: "from bar import ( # Comment on `bar`\n Member, # Comment on `Member`\n)\nfrom baz import Member as Alias # Comment on `Alias` # Comment on `baz`\nfrom bop import Member # Comment on `Member` # Comment on `bop`\nfrom foo import ( # Comment on `foo`\n Member as Alias, # Comment on `Alias`\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "from bar import ( # Comment on `bar`\n Member, # Comment on `Member`\n)\nfrom baz import Member as Alias # Comment on `Alias` # Comment on `baz`\nfrom bop import Member # Comment on `Member` # Comment on `bop`\nfrom foo import ( # Comment on `foo`\n Member as Alias, # Comment on `Alias`\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap index 98464f291b8fc4..0a99a98a6ecd15 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__closest_to_furthest_relative_imports_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from . import c\nfrom .. import b\nfrom ... import a\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from . import c\nfrom .. import b\nfrom ... import a\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap index f1caf4b9833db8..bedce6687af1c4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from module import CONSTANT, function\nfrom module import Class as C\nfrom module import function as f\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from module import CONSTANT, function\nfrom module import Class as C\nfrom module import function as f\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap index 4dc45aee49c711..4f49b148741ea1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_as_imports_combine_as_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from module import CONSTANT, Class as C, function, function as f\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from module import CONSTANT, Class as C, function, function as f\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap index e13ed1c74b507d..8c725f32167f43 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combine_import_from.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "from collections import (\n AsyncIterable,\n Awaitable,\n ChainMap,\n Collection,\n MutableMapping,\n MutableSequence,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "from collections import (\n AsyncIterable,\n Awaitable,\n ChainMap,\n Collection,\n MutableMapping,\n MutableSequence,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap index 6a5287e9869aec..3939bf238013e3 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__combined_required_imports_docstring.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: MissingRequiredImport @@ -34,12 +35,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import generator_stop" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import generator_stop" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap index 39308e98063f34..9063cb2c88cf59 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 0 fix: - content: "import B # Comment 4\n\n# Comment 3a\n# Comment 3b\nimport C\nimport D\n\n# Comment 5\n# Comment 6\nfrom A import (\n a, # Comment 7 # Comment 9\n b, # Comment 10\n c, # Comment 8 # Comment 11\n)\nfrom D import (\n a_long_name_to_force_multiple_lines, # Comment 12\n another_long_name_to_force_multiple_lines, # Comment 13\n)\nfrom E import a # Comment 1\nfrom F import (\n a, # Comment 1\n b,\n)\n" - location: - row: 3 - column: 0 - end_location: - row: 34 - column: 0 + edits: + - content: "import B # Comment 4\n\n# Comment 3a\n# Comment 3b\nimport C\nimport D\n\n# Comment 5\n# Comment 6\nfrom A import (\n a, # Comment 7 # Comment 9\n b, # Comment 10\n c, # Comment 8 # Comment 11\n)\nfrom D import (\n a_long_name_to_force_multiple_lines, # Comment 12\n another_long_name_to_force_multiple_lines, # Comment 13\n)\nfrom E import a # Comment 1\nfrom F import (\n a, # Comment 1\n b,\n)\n" + location: + row: 3 + column: 0 + end_location: + row: 34 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap index 852b7f6a85ce5f..d877604ca57853 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__deduplicate_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import os\nimport os as os1\nimport os as os2\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import os\nimport os as os1\nimport os as os2\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap index a541b88fd53b08..979154e2c5edba 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 15 column: 0 fix: - content: " from line_with_88 import aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n from line_with_89 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_90 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_91 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_92 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_93 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n" - location: - row: 7 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: " from line_with_88 import aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n from line_with_89 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_90 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_91 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_92 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n from line_with_93 import (\n aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n )\n" + location: + row: 7 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap index 1bc356bea00298..5f913aba25b293 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__fit_line_length_comment.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import a\n\n# Don't take this comment into account when determining whether the next import can fit on one line.\nfrom b import c\nfrom d import (\n e, # Do take this comment into account when determining whether the next import can fit on one line.\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import a\n\n# Don't take this comment into account when determining whether the next import can fit on one line.\nfrom b import c\nfrom d import (\n e, # Do take this comment into account when determining whether the next import can fit on one line.\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap index d846e63bbadc92..18cdca23d3d933 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_single_line_force_single_line.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 25 column: 0 fix: - content: "import math\nimport sys\nfrom json import detect_encoding\nfrom json import dump\nfrom json import dumps as json_dumps\nfrom json import load\nfrom json import loads as json_loads\nfrom logging.handlers import FileHandler, StreamHandler\nfrom os import path, uname\n\n# comment 6\nfrom bar import a # comment 7\nfrom bar import b # comment 8\nfrom foo import bar # comment 3\nfrom foo2 import bar2 # comment 4\nfrom foo3 import bar3 # comment 5\nfrom foo3 import baz3 # comment 5\n\n# comment 1\n# comment 2\nfrom third_party import lib1\nfrom third_party import lib2\nfrom third_party import lib3\nfrom third_party import lib4\nfrom third_party import lib5\nfrom third_party import lib6\nfrom third_party import lib7\n" - location: - row: 1 - column: 0 - end_location: - row: 25 - column: 0 + edits: + - content: "import math\nimport sys\nfrom json import detect_encoding\nfrom json import dump\nfrom json import dumps as json_dumps\nfrom json import load\nfrom json import loads as json_loads\nfrom logging.handlers import FileHandler, StreamHandler\nfrom os import path, uname\n\n# comment 6\nfrom bar import a # comment 7\nfrom bar import b # comment 8\nfrom foo import bar # comment 3\nfrom foo2 import bar2 # comment 4\nfrom foo3 import bar3 # comment 5\nfrom foo3 import baz3 # comment 5\n\n# comment 1\n# comment 2\nfrom third_party import lib1\nfrom third_party import lib2\nfrom third_party import lib3\nfrom third_party import lib4\nfrom third_party import lib5\nfrom third_party import lib6\nfrom third_party import lib7\n" + location: + row: 1 + column: 0 + end_location: + row: 25 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap index b0242e3d44232f..a82eab4d96cd66 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 14 column: 0 fix: - content: "import a # import\nimport b as b1 # import_as\nimport c.d\nimport z\nfrom a import a1 # import_from\nfrom c import * # import_from_star\nfrom z import z1\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" - location: - row: 1 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "import a # import\nimport b as b1 # import_as\nimport c.d\nimport z\nfrom a import a1 # import_from\nfrom c import * # import_from_star\nfrom z import z1\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" + location: + row: 1 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap index 057676a9519f71..99ad16981e8925 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_sort_within_sections_force_sort_within_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 14 column: 0 fix: - content: "import z\nfrom z import z1\nimport a # import\nfrom a import a1 # import_from\nimport b as b1 # import_as\nfrom c import * # import_from_star\nimport c.d\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" - location: - row: 1 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "import z\nfrom z import z1\nimport a # import\nfrom a import a1 # import_from\nimport b as b1 # import_as\nfrom c import * # import_from_star\nimport c.d\n\nfrom ...grandparent import fn3\nfrom ..parent import *\nfrom . import my\nfrom .my import fn\nfrom .my.nested import fn2\n" + location: + row: 1 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap index b2b2f90eef5f5c..691cfa0aa94006 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 24 column: 0 fix: - content: "import foo\nimport lib1\nimport lib2\nimport lib3\nimport lib3.lib4\nimport lib3.lib4.lib5\nimport lib4\nimport lib5\nimport lib6\nimport z\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1 import foo\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\nfrom lib5 import lib1, lib2\n" - location: - row: 1 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "import foo\nimport lib1\nimport lib2\nimport lib3\nimport lib3.lib4\nimport lib3.lib4.lib5\nimport lib4\nimport lib5\nimport lib6\nimport z\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1 import foo\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\nfrom lib5 import lib1, lib2\n" + location: + row: 1 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap index 4d72a109e9af7a..c466034f593f1e 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_to_top_force_to_top.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 24 column: 0 fix: - content: "import lib1\nimport lib3\nimport lib3.lib4\nimport lib5\nimport z\nimport foo\nimport lib2\nimport lib3.lib4.lib5\nimport lib4\nimport lib6\nfrom lib1 import foo\nfrom lib3.lib4 import foo\nfrom lib5 import lib1, lib2\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\n" - location: - row: 1 - column: 0 - end_location: - row: 24 - column: 0 + edits: + - content: "import lib1\nimport lib3\nimport lib3.lib4\nimport lib5\nimport z\nimport foo\nimport lib2\nimport lib3.lib4.lib5\nimport lib4\nimport lib6\nfrom lib1 import foo\nfrom lib3.lib4 import foo\nfrom lib5 import lib1, lib2\nfrom foo import bar\nfrom foo.lib1.bar import baz\nfrom lib1.lib2 import foo\nfrom lib2 import foo\nfrom lib3.lib4.lib5 import foo\nfrom lib4 import lib1, lib2\n" + location: + row: 1 + column: 0 + end_location: + row: 24 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap index 4f03dec774f06c..01727586035e13 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .a import a1 as a1\nfrom .a import a2 as a2\nfrom .b import b1 as b1\nfrom .c import c1\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .a import a1 as a1\nfrom .a import a2 as a2\nfrom .b import b1 as b1\nfrom .c import c1\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap index dd5abaf5b3fe55..1b30971c068524 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__force_wrap_aliases_force_wrap_aliases.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .a import (\n a1 as a1,\n a2 as a2,\n)\nfrom .b import b1 as b1\nfrom .c import c1\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .a import (\n a1 as a1,\n a2 as a2,\n)\nfrom .b import b1 as b1\nfrom .c import c1\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap index 38b34ae88688b1..17806e4c97537c 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__forced_separate.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 9 column: 0 fix: - content: "from office_helper.assistants import entity_registry as er\nfrom office_helper.core import CoreState\n\nimport tests.common.foo as tcf\nfrom tests.common import async_mock_service\n\nfrom experiments.starry import *\nfrom experiments.weird import varieties\n" - location: - row: 3 - column: 0 - end_location: - row: 9 - column: 0 + edits: + - content: "from office_helper.assistants import entity_registry as er\nfrom office_helper.core import CoreState\n\nimport tests.common.foo as tcf\nfrom tests.common import async_mock_service\n\nfrom experiments.starry import *\nfrom experiments.weird import varieties\n" + location: + row: 3 + column: 0 + end_location: + row: 9 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap index 98bc17023569e0..4d12f1bdc622be 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__import_from_after_import.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import os\nfrom collections import Collection\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import os\nfrom collections import Collection\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap index 154c67dc3bce68..8054eb66a82d4c 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__inline_comments.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 12 column: 0 fix: - content: "from a.prometheus.metrics import ( # type:ignore[attr-defined]\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\nfrom b.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom c.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom d.prometheus.metrics import ( # type:ignore[attr-defined]\n OTHER_RUNNING_TOTAL,\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "from a.prometheus.metrics import ( # type:ignore[attr-defined]\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\nfrom b.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom c.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom d.prometheus.metrics import ( # type:ignore[attr-defined]\n OTHER_RUNNING_TOTAL,\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap index a1a964fc7dcf1e..c95dd9bef07c04 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import a\nimport b\n\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import a\nimport b\n\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\n\n" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\n\n" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -74,12 +77,13 @@ expression: diagnostics row: 54 column: 0 fix: - content: "import os\n\n\n" - location: - row: 52 - column: 0 - end_location: - row: 54 - column: 0 + edits: + - content: "import os\n\n\n" + location: + row: 52 + column: 0 + end_location: + row: 54 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap index a327a66c49fde6..0210699f53d10a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__insert_empty_lines.pyi.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import a\nimport b\n\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import a\nimport b\n\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 4 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 4 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -54,12 +56,13 @@ expression: diagnostics row: 16 column: 0 fix: - content: "import os\nimport sys\n\n" - location: - row: 14 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "import os\nimport sys\n\n" + location: + row: 14 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap index 7a9ac9f80157b2..c8584b0f7c9551 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__known_local_folder_separate_local_folder_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport leading_prefix\n\nimport ruff\nfrom . import leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport leading_prefix\n\nimport ruff\nfrom . import leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap index 27d02ea78c679d..4d10794228d338 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__leading_prefix.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap index 6e6ef0d25a5932..f4aa76e0e380d1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_class_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap index 1498413113f1fb..6882f9ff025e67 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_func_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 21 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" - location: - row: 1 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n\n\n\n" + location: + row: 1 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap index 0404d02bcedcfc..ec3bdc6cced920 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_after_imports_lines_after_imports_nothing_after.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap index fea0aaedc4dcbf..7995e464e064dc 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__lines_between_typeslines_between_types.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 0 fix: - content: "from __future__ import annotations\n\nimport datetime\nimport json\n\n\nfrom binascii import hexlify\n\nimport requests\n\n\nfrom loguru import Logger\nfrom sanic import Sanic\n\nfrom . import config\nfrom .data import Data\n" - location: - row: 1 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "from __future__ import annotations\n\nimport datetime\nimport json\n\n\nfrom binascii import hexlify\n\nimport requests\n\n\nfrom loguru import Logger\nfrom sanic import Sanic\n\nfrom . import config\nfrom .data import Data\n" + location: + row: 1 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap index aca8152f77e70e..1b9bc4b8cb99d1 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__magic_trailing_comma.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 39 column: 0 fix: - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import (\n argv,\n exit,\n stderr,\n stdout,\n)\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import (\n member1,\n member2,\n member3,\n)\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import (\n member1,\n member2,\n member3,\n)\n" - location: - row: 2 - column: 0 - end_location: - row: 39 - column: 0 + edits: + - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import (\n argv,\n exit,\n stderr,\n stdout,\n)\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import (\n member1,\n member2,\n member3,\n)\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import (\n member1,\n member2,\n member3,\n)\n" + location: + row: 2 + column: 0 + end_location: + row: 39 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap index d33c2710f61386..72861a0739cd41 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__natural_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 17 column: 0 fix: - content: "import numpy1\nimport numpy2\nimport numpy10\nfrom numpy import (\n cos,\n int8,\n int16,\n int32,\n int64,\n sin,\n tan,\n uint8,\n uint16,\n uint32,\n uint64,\n)\n" - location: - row: 1 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "import numpy1\nimport numpy2\nimport numpy10\nfrom numpy import (\n cos,\n int8,\n int16,\n int32,\n int64,\n sin,\n tan,\n uint8,\n uint16,\n uint32,\n uint64,\n)\n" + location: + row: 1 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap index 0404d02bcedcfc..ec3bdc6cced920 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\n\nfrom typing import Any\n\nfrom my_first_party import my_first_party_object\nfrom requests import Session\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap index 77417890bdc6f8..ce920262bcbc03 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before.py_no_lines_before.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 10 column: 0 fix: - content: "from __future__ import annotations\nfrom typing import Any\nfrom my_first_party import my_first_party_object\nfrom requests import Session\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "from __future__ import annotations\nfrom typing import Any\nfrom my_first_party import my_first_party_object\nfrom requests import Session\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap index 30a906989062ea..f781a912840eb6 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_lines_before_with_empty_sections.py_no_lines_before_with_empty_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from __future__ import annotations\nfrom typing import Any\n\nfrom . import my_local_folder_object\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from __future__ import annotations\nfrom typing import Any\n\nfrom . import my_local_folder_object\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap index a7b4c8bb227efd..12caf31e52e401 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__no_wrap_star.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 0 fix: - content: "from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore\n" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "from .subscription import * # type: ignore # some very long comment explaining why this needs a type ignore\n" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap index 1cf89cf57098d0..8ddda904c1c978 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 13 column: 0 fix: - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, STDOUT, Popen\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import BASIC, CONSTANT, Apple, Class, function\n" - location: - row: 1 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, STDOUT, Popen\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import BASIC, CONSTANT, Apple, Class, function\n" + location: + row: 1 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap index abd8a9e191530a..6718bb7915ce57 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_false_order_by_type.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 13 column: 0 fix: - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, Popen, STDOUT\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import Apple, BASIC, Class, CONSTANT, function\n" - location: - row: 1 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "import glob\nimport os\nimport shutil\nimport tempfile\nimport time\nfrom subprocess import PIPE, Popen, STDOUT\n\nimport BAR\nimport bar\nimport FOO\nimport foo\nimport StringIO\nfrom module import Apple, BASIC, Class, CONSTANT, function\n" + location: + row: 1 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap index 0cd678ee64d3a1..cebc0e3c133d44 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from subprocess import N_CLASS, PIPE, STDOUT, Popen\n\nfrom module import BASIC, CLASS, CONSTANT, Apple, Class, function\nfrom sklearn.svm import CONST, SVC, Klass, func\nfrom torch.nn import A_CONSTANT, SELU, AClass\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from subprocess import N_CLASS, PIPE, STDOUT, Popen\n\nfrom module import BASIC, CLASS, CONSTANT, Apple, Class, function\nfrom sklearn.svm import CONST, SVC, Klass, func\nfrom torch.nn import A_CONSTANT, SELU, AClass\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap index b3d0b144d5cddf..a3908a043257b0 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_classes_order_by_type_with_custom_classes.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from subprocess import PIPE, STDOUT, N_CLASS, Popen\n\nfrom module import BASIC, CONSTANT, Apple, CLASS, Class, function\nfrom sklearn.svm import CONST, Klass, SVC, func\nfrom torch.nn import A_CONSTANT, AClass, SELU\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from subprocess import PIPE, STDOUT, N_CLASS, Popen\n\nfrom module import BASIC, CONSTANT, Apple, CLASS, Class, function\nfrom sklearn.svm import CONST, Klass, SVC, func\nfrom torch.nn import A_CONSTANT, AClass, SELU\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap index 6175ce33329fc3..39d26e58a45601 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import STDOUT, A_constant, Class, First, Last, func, konst, var\n\nfrom sklearn.svm import XYZ, Const, Klass, constant, func, variable\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import STDOUT, A_constant, Class, First, Last, func, konst, var\n\nfrom sklearn.svm import XYZ, Const, Klass, constant, func, variable\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap index 40c754134e9f40..994a1a87813256 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_constants_order_by_type_with_custom_constants.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import A_constant, First, konst, Last, STDOUT, Class, func, var\n\nfrom sklearn.svm import Const, constant, XYZ, Klass, func, variable\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import A_constant, First, konst, Last, STDOUT, Class, func, var\n\nfrom sklearn.svm import Const, constant, XYZ, Klass, func, variable\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap index c10a7709413f6c..e21447e032eddd 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import CONSTANT, Klass, Variable, exe, utils, var_ABC\n\nfrom sklearn.svm import CONST, VAR, Class, MyVar, abc\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import CONSTANT, Klass, Variable, exe, utils, var_ABC\n\nfrom sklearn.svm import CONST, VAR, Class, MyVar, abc\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap index d2648d75c7df4c..1554fde3e80808 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_by_type_with_custom_variables_order_by_type_with_custom_variables.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "from subprocess import CONSTANT, Klass, exe, utils, var_ABC, Variable\n\nfrom sklearn.svm import CONST, Class, abc, MyVar, VAR\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "from subprocess import CONSTANT, Klass, exe, utils, var_ABC, Variable\n\nfrom sklearn.svm import CONST, Class, abc, MyVar, VAR\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap index aab70a9a82e277..788096196ca1f7 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__order_relative_imports_by_level.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "from ..a import a\nfrom ..b import a\nfrom .a import a\nfrom .b import a\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "from ..a import a\nfrom ..b import a\nfrom .a import a\nfrom .b import a\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap index e0f1dc9635a194..ba190c656e2d4e 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_comment_order.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 12 column: 0 fix: - content: "import abc\nimport io\n\n# Old MacDonald had a farm,\n# EIEIO\n# And on his farm he had a cow,\n# EIEIO\n# With a moo-moo here and a moo-moo there\n# Here a moo, there a moo, everywhere moo-moo\n# Old MacDonald had a farm,\n# EIEIO\nfrom errno import EIO\n" - location: - row: 1 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "import abc\nimport io\n\n# Old MacDonald had a farm,\n# EIEIO\n# And on his farm he had a cow,\n# EIEIO\n# With a moo-moo here and a moo-moo there\n# Here a moo, there a moo, everywhere moo-moo\n# Old MacDonald had a farm,\n# EIEIO\nfrom errno import EIO\n" + location: + row: 1 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap index 6b5939cb1eebe6..5d40280359c964 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_import_star.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 7 column: 0 fix: - content: "# Above\nfrom some_module import * # Aside\n\n# Above\nfrom some_module import some_class # Aside\nfrom some_other_module import *\nfrom some_other_module import some_class\n" - location: - row: 1 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "# Above\nfrom some_module import * # Aside\n\n# Above\nfrom some_module import some_class # Aside\nfrom some_other_module import *\nfrom some_other_module import some_class\n" + location: + row: 1 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap index 029088a601af9c..3f3012dc9d1428 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__preserve_indentation.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 0 fix: - content: " import os\n import sys\n" - location: - row: 2 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: " import os\n import sys\n" + location: + row: 2 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,12 +35,13 @@ expression: diagnostics row: 7 column: 0 fix: - content: " import os\n import sys\n" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: " import os\n import sys\n" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap index b74879c500dad0..25fb1c529e787a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__reorder_within_section.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "import os\nimport sys\n" - location: - row: 1 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "import os\nimport sys\n" + location: + row: 1 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap index fe04b11b2d6d99..ec50107c104f2e 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap index 96d0fd49d85377..70ff9a5c994a56 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_import_multiline_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 3 - column: 3 - end_location: - row: 3 - column: 3 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 3 + column: 3 + end_location: + row: 3 + column: 3 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap index 6a5287e9869aec..3939bf238013e3 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__required_imports_docstring.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import annotations" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import annotations" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ - kind: name: MissingRequiredImport @@ -34,12 +35,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nfrom __future__ import generator_stop" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nfrom __future__ import generator_stop" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap index f1ba2170cef0cd..7c541f58ae0133 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_first_party_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport numpy as np\n\nimport leading_prefix\nfrom leading_prefix import Class\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport numpy as np\n\nimport leading_prefix\nfrom leading_prefix import Class\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap index 3a80b84e273d32..d35ddfbd0479f4 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_future_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from __future__ import annotations\n\nimport os\nimport sys\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from __future__ import annotations\n\nimport os\nimport sys\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap index fcaae105385dea..5d139e0ad5d37a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_local_folder_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 6 column: 0 fix: - content: "import os\nimport sys\n\nimport ruff\n\nimport leading_prefix\n\nfrom . import leading_prefix\n" - location: - row: 1 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport ruff\n\nimport leading_prefix\n\nfrom . import leading_prefix\n" + location: + row: 1 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap index 46f078ffe12b7c..352b464e3a2d17 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__separate_third_party_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 5 column: 0 fix: - content: "import os\nimport sys\n\nimport numpy as np\nimport pandas as pd\n" - location: - row: 1 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "import os\nimport sys\n\nimport numpy as np\nimport pandas as pd\n" + location: + row: 1 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap index 98ba47763bc6fc..db8160e0028e46 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__skip.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 22 column: 0 fix: - content: " import abc\n import collections\n" - location: - row: 20 - column: 0 - end_location: - row: 22 - column: 0 + edits: + - content: " import abc\n import collections\n" + location: + row: 20 + column: 0 + end_location: + row: 22 + column: 0 parent: ~ - kind: name: UnsortedImports @@ -34,12 +35,13 @@ expression: diagnostics row: 29 column: 0 fix: - content: " import abc\n import collections\n" - location: - row: 27 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: " import abc\n import collections\n" + location: + row: 27 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap index b41a82c0414f1a..9c830de83f2c2d 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__sort_similar_imports.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 27 column: 0 fix: - content: "import A\nimport a\nimport B\nimport b\nimport x\nimport x as A\nimport x as Y\nimport x as a\nimport x as y\nfrom a import BAD as DEF\nfrom a import B, b\nfrom a import B as A\nfrom a import B as Abc\nfrom a import B as DEF\nfrom a import Boo as DEF\nfrom a import b as a\nfrom a import b as c\nfrom a import b as d\nfrom a import b as x\nfrom a import b as y\nfrom b import C, c\nfrom b import c as d\n" - location: - row: 1 - column: 0 - end_location: - row: 27 - column: 0 + edits: + - content: "import A\nimport a\nimport B\nimport b\nimport x\nimport x as A\nimport x as Y\nimport x as a\nimport x as y\nfrom a import BAD as DEF\nfrom a import B, b\nfrom a import B as A\nfrom a import B as Abc\nfrom a import B as DEF\nfrom a import Boo as DEF\nfrom a import b as a\nfrom a import b as c\nfrom a import b as d\nfrom a import b as x\nfrom a import b as y\nfrom b import C, c\nfrom b import c as d\n" + location: + row: 1 + column: 0 + end_location: + row: 27 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap index c5ea1a0b6f8ec1..c0856c709d943a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__split_on_trailing_comma_magic_trailing_comma.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 39 column: 0 fix: - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import argv, exit, stderr, stdout\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import member1, member2, member3\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import member1, member2, member3\n" - location: - row: 2 - column: 0 - end_location: - row: 39 - column: 0 + edits: + - content: "from glob import (\n escape, # Ends with a comment, should still treat as magic trailing comma.\n glob,\n iglob,\n)\n\n# No magic comma, this will be rolled into one line.\nfrom os import environ, execl, execv, path\nfrom sys import argv, exit, stderr, stdout\n\n# These will be combined, but without a trailing comma.\nfrom foo import bar, baz\n\n# These will be combined, _with_ a trailing comma.\nfrom module1 import member1, member2, member3\n\n# These will be combined, _with_ a trailing comma.\nfrom module2 import member1, member2, member3\n" + location: + row: 2 + column: 0 + end_location: + row: 39 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap index b431fa88aa9dcd..86392c6985c68a 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__star_before_others.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 0 fix: - content: "from .logging import config_logging\nfrom .settings import *\nfrom .settings import ENV\n" - location: - row: 1 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "from .logging import config_logging\nfrom .settings import *\nfrom .settings import ENV\n" + location: + row: 1 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap index b6da84cc164738..2dd53274525e79 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__straight_required_import_docstring.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 0 fix: - content: "\nimport os" - location: - row: 1 - column: 19 - end_location: - row: 1 - column: 19 + edits: + - content: "\nimport os" + location: + row: 1 + column: 19 + end_location: + row: 1 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap index 23615f0bf6e248..eb4bd65a8c8b54 100644 --- a/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap +++ b/crates/ruff/src/rules/isort/snapshots/ruff__rules__isort__tests__trailing_suffix.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnsortedImports @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap index 9a1351878d41f9..27876b80e31f60 100644 --- a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap +++ b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_0.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 46 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 54 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 62 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 63 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 64 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 73 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 85 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 96 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 107 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 118 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 121 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 126 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 129 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 132 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -286,6 +307,7 @@ expression: diagnostics end_location: row: 135 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap index 5bcea57845be26..a59e600c5ed82c 100644 --- a/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap +++ b/crates/ruff/src/rules/mccabe/snapshots/ruff__rules__mccabe__tests__max_complexity_3.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 73 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComplexStructure @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap index 4252601d2fc195..4cde67e62762a0 100644 --- a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap +++ b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-deprecated-type-alias_NPY001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 8 fix: - content: bool - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 8 + edits: + - content: bool + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 8 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 7 fix: - content: int - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 7 + edits: + - content: int + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 7 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: object - location: - row: 9 - column: 12 - end_location: - row: 9 - column: 21 + edits: + - content: object + location: + row: 9 + column: 12 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 12 column: 77 fix: - content: int - location: - row: 12 - column: 71 - end_location: - row: 12 - column: 77 + edits: + - content: int + location: + row: 12 + column: 71 + end_location: + row: 12 + column: 77 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 86 fix: - content: int - location: - row: 12 - column: 79 - end_location: - row: 12 - column: 86 + edits: + - content: int + location: + row: 12 + column: 79 + end_location: + row: 12 + column: 86 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 22 fix: - content: object - location: - row: 17 - column: 10 - end_location: - row: 17 - column: 22 + edits: + - content: object + location: + row: 17 + column: 10 + end_location: + row: 17 + column: 22 parent: ~ - kind: name: NumpyDeprecatedTypeAlias @@ -134,12 +140,13 @@ expression: diagnostics row: 20 column: 21 fix: - content: int - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 21 + edits: + - content: int + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap index 02dce193cf3fb7..3ca6852f0841be 100644 --- a/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap +++ b/crates/ruff/src/rules/numpy/snapshots/ruff__rules__numpy__tests__numpy-legacy-random_NPY002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 15 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 18 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 20 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 22 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 23 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 25 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 27 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 28 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 29 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 30 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 31 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 32 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 33 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 34 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 35 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 37 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 38 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 39 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 40 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 41 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 42 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 43 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 44 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 45 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 46 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 47 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 48 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 49 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -494,7 +531,8 @@ expression: diagnostics end_location: row: 50 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -507,7 +545,8 @@ expression: diagnostics end_location: row: 51 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -520,7 +559,8 @@ expression: diagnostics end_location: row: 52 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -533,7 +573,8 @@ expression: diagnostics end_location: row: 53 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -546,7 +587,8 @@ expression: diagnostics end_location: row: 54 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -559,7 +601,8 @@ expression: diagnostics end_location: row: 55 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -572,7 +615,8 @@ expression: diagnostics end_location: row: 56 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -585,7 +629,8 @@ expression: diagnostics end_location: row: 57 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -598,7 +643,8 @@ expression: diagnostics end_location: row: 58 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -611,7 +657,8 @@ expression: diagnostics end_location: row: 59 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -624,7 +671,8 @@ expression: diagnostics end_location: row: 60 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -637,7 +685,8 @@ expression: diagnostics end_location: row: 61 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NumpyLegacyRandom @@ -650,6 +699,7 @@ expression: diagnostics end_location: row: 62 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap b/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap index 1ba2ac2ce8e552..6d1127a1b6d5dc 100644 --- a/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap +++ b/crates/ruff/src/rules/pandas_vet/snapshots/ruff__rules__pandas_vet__tests__PD002_PD002.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 34 fix: - content: "x = x.drop([\"a\"], axis=1)" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 35 + edits: + - content: "x = x.drop([\"a\"], axis=1)" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 35 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 34 fix: - content: "x = x.drop([\"a\"], axis=1)" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 35 + edits: + - content: "x = x.drop([\"a\"], axis=1)" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 35 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 16 fix: - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n)" - location: - row: 9 - column: 0 - end_location: - row: 13 - column: 1 + edits: + - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n)" + location: + row: 9 + column: 0 + end_location: + row: 13 + column: 1 parent: ~ - kind: name: PandasUseOfInplaceArgument @@ -74,12 +77,13 @@ expression: diagnostics row: 17 column: 20 fix: - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n )" - location: - row: 16 - column: 4 - end_location: - row: 20 - column: 5 + edits: + - content: "x = x.drop(\n columns=[\"a\"],\n axis=1,\n )" + location: + row: 16 + column: 4 + end_location: + row: 20 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap index b81323f63f6605..8498a48843beeb 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N801_N801.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidClassName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 17 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap index 0cb9d70798937d..edc21dcfa29b56 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N802_N802.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFunctionName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 40 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap index dca9c0dba27dda..763f418e2f17ad 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N803_N803.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidArgumentName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 28 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap index cfc39d50be0c4b..1c0981c064ccd6 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N804_N804.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForClassMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 59 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForClassMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 43 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap index 5c569e6bb1e44f..d5f89b70d19bad 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N805_N805.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 31 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap index 844bb5cc0fc41b..5eb6425be2b158 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N806_N806.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonLowercaseVariableInFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap index d2b2e970f0dfd4..60ad5bab269630 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N807_N807.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DunderFunctionName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap index 598c691a65fca2..c20280827536bd 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N811_N811.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ConstantImportedAsNonConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ConstantImportedAsNonConstant @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 52 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap index 7296925d90247d..eed257a4afac10 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N812_N812.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LowercaseImportedAsNonLowercase @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LowercaseImportedAsNonLowercase @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap index e23b791b05dd16..8c19c8b4c6702b 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N813_N813.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsLowercase @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsLowercase @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap index 1ac4bea0c97def..ac2413f5c34f9b 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N814_N814.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsConstant @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap index d0b4bf17717708..558a27fd1c0a8a 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N815_N815.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInClassScope @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInClassScope @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap index 150e631192ef33..ac02f3ebb5846b 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N816_N816.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInGlobalScope @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedCaseVariableInGlobalScope @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap index 4827db12bbf080..29baed9731d045 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N817_N817.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CamelcaseImportedAsAcronym @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap index 73180ac59313d6..0dbb67843253bc 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N818_N818.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorSuffixOnExceptionName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap index b01f97f813e2b0..12fe045062b759 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__MODULE____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap index 95ca07921596ea..04c786f808dd6f 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod with spaces____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap index d495bdd3bde334..81846ae5fd0ac4 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__mod-with-dashes____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap index 7fa347eafebeec..0338a2a1e463f8 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__N999_N999__module__valid_name__file-with-dashes.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap index eab4d724723466..52d12ecda893ec 100644 --- a/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap +++ b/crates/ruff/src/rules/pep8_naming/snapshots/ruff__rules__pep8_naming__tests__classmethod_decorators.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidFirstArgumentNameForMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 60 column: 32 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/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 16bb87d985a499..f7b54ab0671730 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E101_E101.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedSpacesAndTabs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MixedSpacesAndTabs @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap index 79062d249e14d8..9a5bdabc68e6d8 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E401_E40.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 2 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap index 68a149557733fc..d1af30ac08f3e2 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E40.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 55 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ModuleImportNotAtTopOfFile @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 57 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ModuleImportNotAtTopOfFile @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 61 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap index f1b375520c82ac..f9eec771905f51 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E402_E402.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 24 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap index 16aa92307df2fe..865efb2e05acde 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E501_E501.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 123 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 88 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 127 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 40 column: 132 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 43 column: 105 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 83 column: 147 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap index 92078afc95a6a6..b4f71d76104760 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E701_E70.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 27 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 31 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 32 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 33 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 35 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 37 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 39 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 54 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 56 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineColon @@ -182,6 +195,7 @@ expression: diagnostics end_location: row: 59 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap index 90c9d6187c6c3a..8eb4f5d20fc47c 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E702_E70.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 25 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 54 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultipleStatementsOnOneLineSemicolon @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 56 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap index 0875111d2f84f2..d78b3a3911025a 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E703_E70.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 13 fix: - content: "" - location: - row: 10 - column: 12 - end_location: - row: 10 - column: 13 + edits: + - content: "" + location: + row: 10 + column: 12 + end_location: + row: 10 + column: 13 parent: ~ - kind: name: UselessSemicolon @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "" - location: - row: 12 - column: 22 - end_location: - row: 12 - column: 23 + edits: + - content: "" + location: + row: 12 + column: 22 + end_location: + row: 12 + column: 23 parent: ~ - kind: name: UselessSemicolon @@ -54,12 +56,13 @@ expression: diagnostics row: 25 column: 14 fix: - content: "" - location: - row: 25 - column: 13 - end_location: - row: 25 - column: 14 + edits: + - content: "" + location: + row: 25 + column: 13 + end_location: + row: 25 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap index 669846981b9959..c65df8a2444f56 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E711_E711.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 14 fix: - content: res is None - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 14 + edits: + - content: res is None + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 14 parent: ~ - kind: name: NoneComparison @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 14 fix: - content: res is not None - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 14 + edits: + - content: res is not None + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 14 parent: ~ - kind: name: NoneComparison @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: None is res - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 14 + edits: + - content: None is res + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: NoneComparison @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: None is not res - location: - row: 11 - column: 3 - end_location: - row: 11 - column: 14 + edits: + - content: None is not res + location: + row: 11 + column: 3 + end_location: + row: 11 + column: 14 parent: ~ - kind: name: NoneComparison @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "res[1] is None" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 17 + edits: + - content: "res[1] is None" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: NoneComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 17 fix: - content: "res[1] is not None" - location: - row: 17 - column: 3 - end_location: - row: 17 - column: 17 + edits: + - content: "res[1] is not None" + location: + row: 17 + column: 3 + end_location: + row: 17 + column: 17 parent: ~ - kind: name: NoneComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "None is not res[1]" - location: - row: 20 - column: 3 - end_location: - row: 20 - column: 17 + edits: + - content: "None is not res[1]" + location: + row: 20 + column: 3 + end_location: + row: 20 + column: 17 parent: ~ - kind: name: NoneComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: "None is res[1]" - location: - row: 23 - column: 3 - end_location: - row: 23 - column: 17 + edits: + - content: "None is res[1]" + location: + row: 23 + column: 3 + end_location: + row: 23 + column: 17 parent: ~ - kind: name: NoneComparison @@ -174,13 +182,14 @@ expression: diagnostics row: 26 column: 12 fix: - content: x is None is not None - location: - row: 26 - column: 3 - end_location: - row: 26 - column: 20 + edits: + - content: x is None is not None + location: + row: 26 + column: 3 + end_location: + row: 26 + column: 20 parent: ~ - kind: name: NoneComparison @@ -194,12 +203,13 @@ expression: diagnostics row: 26 column: 20 fix: - content: x is None is not None - location: - row: 26 - column: 3 - end_location: - row: 26 - column: 20 + edits: + - content: x is None is not None + location: + row: 26 + column: 3 + end_location: + row: 26 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap index c7315385fc55b7..458086ca588202 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E712_E712.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 14 fix: - content: res is True - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 14 + edits: + - content: res is True + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 14 parent: ~ - kind: name: TrueFalseComparison @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: res is not False - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: res is not False + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: TrueFalseComparison @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: True is not res - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 14 + edits: + - content: True is not res + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: TrueFalseComparison @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 8 fix: - content: False is res - location: - row: 11 - column: 3 - end_location: - row: 11 - column: 15 + edits: + - content: False is res + location: + row: 11 + column: 3 + end_location: + row: 11 + column: 15 parent: ~ - kind: name: TrueFalseComparison @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 17 fix: - content: "res[1] is True" - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 17 + edits: + - content: "res[1] is True" + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 17 parent: ~ - kind: name: TrueFalseComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 18 fix: - content: "res[1] is not False" - location: - row: 17 - column: 3 - end_location: - row: 17 - column: 18 + edits: + - content: "res[1] is not False" + location: + row: 17 + column: 3 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: TrueFalseComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 20 column: 23 fix: - content: cond is True - location: - row: 20 - column: 11 - end_location: - row: 20 - column: 23 + edits: + - content: cond is True + location: + row: 20 + column: 11 + end_location: + row: 20 + column: 23 parent: ~ - kind: name: TrueFalseComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 48 fix: - content: cond is False - location: - row: 20 - column: 35 - end_location: - row: 20 - column: 48 + edits: + - content: cond is False + location: + row: 20 + column: 35 + end_location: + row: 20 + column: 48 parent: ~ - kind: name: TrueFalseComparison @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 8 fix: - content: True is TrueElement - location: - row: 22 - column: 3 - end_location: - row: 22 - column: 24 + edits: + - content: True is TrueElement + location: + row: 22 + column: 3 + end_location: + row: 22 + column: 24 parent: ~ - kind: name: TrueFalseComparison @@ -194,13 +203,14 @@ expression: diagnostics row: 25 column: 14 fix: - content: res is True is not False - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 23 + edits: + - content: res is True is not False + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 23 parent: ~ - kind: name: TrueFalseComparison @@ -214,12 +224,13 @@ expression: diagnostics row: 25 column: 23 fix: - content: res is True is not False - location: - row: 25 - column: 3 - end_location: - row: 25 - column: 23 + edits: + - content: res is True is not False + location: + row: 25 + column: 3 + end_location: + row: 25 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap index bb8b35b7bdfd56..ba6da40d57a170 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E713_E713.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: X not in Y - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: X not in Y + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NotInTest @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: X.B not in Y - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: X.B not in Y + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: NotInTest @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: X not in Y - location: - row: 8 - column: 3 - end_location: - row: 8 - column: 13 + edits: + - content: X not in Y + location: + row: 8 + column: 3 + end_location: + row: 8 + column: 13 parent: ~ - kind: name: NotInTest @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 28 fix: - content: Y not in Z - location: - row: 11 - column: 18 - end_location: - row: 11 - column: 28 + edits: + - content: Y not in Z + location: + row: 11 + column: 18 + end_location: + row: 11 + column: 28 parent: ~ - kind: name: NotInTest @@ -94,12 +98,13 @@ expression: diagnostics row: 14 column: 14 fix: - content: X not in Y - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 15 + edits: + - content: X not in Y + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 15 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap index e9243cd78d6ba8..14601a65d4a717 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E714_E714.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: X is not Y - location: - row: 2 - column: 3 - end_location: - row: 2 - column: 13 + edits: + - content: X is not Y + location: + row: 2 + column: 3 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: NotIsTest @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: X.B is not Y - location: - row: 5 - column: 3 - end_location: - row: 5 - column: 15 + edits: + - content: X.B is not Y + location: + row: 5 + column: 3 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: NotIsTest @@ -53,6 +55,7 @@ expression: diagnostics end_location: row: 8 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap index 76acba3c0a0c21..af8b6d18352678 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E721_E721.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 15 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 18 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 20 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 26 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 28 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 32 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 38 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 40 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeComparison @@ -195,6 +209,7 @@ expression: diagnostics end_location: row: 42 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap index 8fcc439ef739a6..a1ababf167344d 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E722_E722.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BareExcept @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BareExcept @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 16 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap index a19ce0c7ab7d0d..221244cb1861dd 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E731_E731.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 19 fix: - content: "def f(x):\n return 2 * x" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 19 + edits: + - content: "def f(x):\n return 2 * x" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 19 parent: ~ - kind: name: LambdaAssignment @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 19 fix: - content: "def f(x):\n return 2 * x" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 19 + edits: + - content: "def f(x):\n return 2 * x" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 19 parent: ~ - kind: name: LambdaAssignment @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 29 fix: - content: "def this(y, z):\n return 2 * x" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 29 + edits: + - content: "def this(y, z):\n return 2 * x" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 29 parent: ~ - kind: name: LambdaAssignment @@ -74,13 +77,14 @@ expression: diagnostics row: 9 column: 21 fix: - content: "def f():\n return (yield 1)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 21 + edits: + - content: "def f():\n return (yield 1)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 21 parent: ~ - kind: name: LambdaAssignment @@ -94,13 +98,14 @@ expression: diagnostics row: 11 column: 28 fix: - content: "def f():\n return (yield from g())" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 28 + edits: + - content: "def f():\n return (yield from g())" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 28 parent: ~ - kind: name: LambdaAssignment @@ -113,6 +118,7 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap index 0dd1d1ba295010..d1f0b99579414a 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E741_E741.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 6 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 11 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 16 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 20 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 25 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 26 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 30 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 33 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 34 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 40 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 40 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 44 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 44 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 48 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 48 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 57 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 66 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 71 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousVariableName @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 74 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap index e73bcfe6c8a2ba..56fff72f597c75 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E742_E742.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousClassName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousClassName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap index 39eb0714deb25b..bf643a870019a7 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E743_E743.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousFunctionName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AmbiguousFunctionName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 10 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap index ba2b5f9fd3d05e..1da67f29a6b31f 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__E999_E999.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap index 524dbc0fb57225..d999c03c35f92e 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W191_W19.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 26 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 32 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 38 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 44 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 45 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 54 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 58 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 61 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 62 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 63 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 64 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 66 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 73 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 78 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 83 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 88 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 91 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 92 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 98 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 99 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 102 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 105 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 110 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 125 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 131 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 132 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 133 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 136 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -442,7 +475,8 @@ expression: diagnostics end_location: row: 137 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -455,7 +489,8 @@ expression: diagnostics end_location: row: 138 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -468,7 +503,8 @@ expression: diagnostics end_location: row: 139 column: 2 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -481,7 +517,8 @@ expression: diagnostics end_location: row: 140 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TabIndentation @@ -494,6 +531,7 @@ expression: diagnostics end_location: row: 143 column: 1 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap index 613528f7933708..a4c665169a0dc2 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W291_W29.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 6 fix: - content: "" - location: - row: 4 - column: 5 - end_location: - row: 4 - column: 6 + edits: + - content: "" + location: + row: 4 + column: 5 + end_location: + row: 4 + column: 6 parent: ~ - kind: name: TrailingWhitespace @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 37 fix: - content: "" - location: - row: 11 - column: 34 - end_location: - row: 11 - column: 37 + edits: + - content: "" + location: + row: 11 + column: 34 + end_location: + row: 11 + column: 37 parent: ~ - kind: name: TrailingWhitespace @@ -54,12 +56,13 @@ expression: diagnostics row: 13 column: 8 fix: - content: "" - location: - row: 13 - column: 5 - end_location: - row: 13 - column: 8 + edits: + - content: "" + location: + row: 13 + column: 5 + end_location: + row: 13 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap index 5ac46f45168a26..d79b420fc023fa 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W292_W292_0.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 8 fix: - content: "\n" - location: - row: 2 - column: 8 - end_location: - row: 2 - column: 8 + edits: + - content: "\n" + location: + row: 2 + column: 8 + end_location: + row: 2 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap index d24458869ae85f..a723fbc1fbbfbc 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W293_W29.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 7 column: 4 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 4 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap index 4fff97739d53d6..145b44be43bf64 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "\\" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 10 + edits: + - content: "\\" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: InvalidEscapeSequence @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 2 fix: - content: "\\" - location: - row: 6 - column: 1 - end_location: - row: 6 - column: 1 + edits: + - content: "\\" + location: + row: 6 + column: 1 + end_location: + row: 6 + column: 1 parent: ~ - kind: name: InvalidEscapeSequence @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: "\\" - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 6 + edits: + - content: "\\" + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 6 parent: ~ - kind: name: InvalidEscapeSequence @@ -74,12 +77,13 @@ expression: diagnostics row: 18 column: 7 fix: - content: "\\" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 6 + edits: + - content: "\\" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap index 4fff97739d53d6..145b44be43bf64 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__W605_W605_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 11 fix: - content: "\\" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 10 + edits: + - content: "\\" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 10 parent: ~ - kind: name: InvalidEscapeSequence @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 2 fix: - content: "\\" - location: - row: 6 - column: 1 - end_location: - row: 6 - column: 1 + edits: + - content: "\\" + location: + row: 6 + column: 1 + end_location: + row: 6 + column: 1 parent: ~ - kind: name: InvalidEscapeSequence @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 7 fix: - content: "\\" - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 6 + edits: + - content: "\\" + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 6 parent: ~ - kind: name: InvalidEscapeSequence @@ -74,12 +77,13 @@ expression: diagnostics row: 18 column: 7 fix: - content: "\\" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 6 + edits: + - content: "\\" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap index 10aa6714e39f00..de0207b8ec6b2d 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__constant_literals.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 17 fix: - content: "==" - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 11 + edits: + - content: "==" + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 11 parent: ~ - kind: name: IsLiteral @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 16 fix: - content: "==" - location: - row: 6 - column: 9 - end_location: - row: 6 - column: 11 + edits: + - content: "==" + location: + row: 6 + column: 9 + end_location: + row: 6 + column: 11 parent: ~ - kind: name: IsLiteral @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 16 fix: - content: "==" - location: - row: 8 - column: 8 - end_location: - row: 8 - column: 10 + edits: + - content: "==" + location: + row: 8 + column: 8 + end_location: + row: 8 + column: 10 parent: ~ - kind: name: IsLiteral @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 17 fix: - content: "==" - location: - row: 10 - column: 9 - end_location: - row: 10 - column: 11 + edits: + - content: "==" + location: + row: 10 + column: 9 + end_location: + row: 10 + column: 11 parent: ~ - kind: name: IsLiteral @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 17 fix: - content: "==" - location: - row: 12 - column: 9 - end_location: - row: 12 - column: 11 + edits: + - content: "==" + location: + row: 12 + column: 9 + end_location: + row: 12 + column: 11 parent: ~ - kind: name: TrueFalseComparison @@ -114,13 +119,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: False is None - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 16 + edits: + - content: False is None + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: NoneComparison @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: False is None - location: - row: 14 - column: 3 - end_location: - row: 14 - column: 16 + edits: + - content: False is None + location: + row: 14 + column: 3 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: NoneComparison @@ -154,13 +161,14 @@ expression: diagnostics row: 16 column: 7 fix: - content: None is False - location: - row: 16 - column: 3 - end_location: - row: 16 - column: 16 + edits: + - content: None is False + location: + row: 16 + column: 3 + end_location: + row: 16 + column: 16 parent: ~ - kind: name: TrueFalseComparison @@ -174,12 +182,13 @@ expression: diagnostics row: 16 column: 16 fix: - content: None is False - location: - row: 16 - column: 3 - end_location: - row: 16 - column: 16 + edits: + - content: None is False + location: + row: 16 + column: 3 + end_location: + row: 16 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap index 872113aac2c4a1..9e23d50b478e72 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__max_doc_length.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 57 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 56 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocLineTooLong @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 61 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap index 49025e4cd68ebb..c29b37c5b80d3c 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__task_tags_false.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 149 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 148 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 155 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 150 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 149 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LineTooLong @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 156 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap index 88cb6966394af7..c4bacb75fdb016 100644 --- a/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap +++ b/crates/ruff/src/rules/pycodestyle/snapshots/ruff__rules__pycodestyle__tests__w292_4.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 1 fix: - content: "" - location: - row: 1 - column: 1 - end_location: - row: 1 - column: 1 + edits: + - content: "\n" + location: + row: 1 + column: 1 + end_location: + row: 1 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap index b9d4dd79b06aa3..e506aa4ef8f124 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D100_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap index b4a19961a2f2a9..b97e075a07b19b 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D101_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 15 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap index f466079ec0290d..23962f01d0b5c3 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 23 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicMethod @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 56 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicMethod @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 68 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap index 1c7173840014bb..76a66f9f8a8f8e 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D102_setter.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 16 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap index 3a1c0fea2f5e17..b5b360d9e5cc48 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D103_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 400 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap index 5b959b2fbbe0ed..33231a97c2e218 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D104_D104____init__.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap index e134d4f8f2aed4..8b4c8016b9cdb6 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D105_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 64 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap index 59cc37f39c904f..3e85fce662f31b 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D107_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 60 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedPublicInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 534 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap index 3e4d58a38679c6..6f942d153a5fb3 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D200_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 131 column: 7 fix: - content: "\"\"\"Wrong.\"\"\"" - location: - row: 129 - column: 4 - end_location: - row: 131 - column: 7 + edits: + - content: "\"\"\"Wrong.\"\"\"" + location: + row: 129 + column: 4 + end_location: + row: 131 + column: 7 parent: ~ - kind: name: FitsOnOneLine @@ -34,13 +35,14 @@ expression: diagnostics row: 599 column: 13 fix: - content: "\"\"\"Wrong.\"\"\"" - location: - row: 597 - column: 4 - end_location: - row: 599 - column: 13 + edits: + - content: "\"\"\"Wrong.\"\"\"" + location: + row: 597 + column: 4 + end_location: + row: 599 + column: 13 parent: ~ - kind: name: FitsOnOneLine @@ -54,13 +56,14 @@ expression: diagnostics row: 608 column: 7 fix: - content: "r\"\"\"Wrong.\"\"\"" - location: - row: 606 - column: 4 - end_location: - row: 608 - column: 7 + edits: + - content: "r\"\"\"Wrong.\"\"\"" + location: + row: 606 + column: 4 + end_location: + row: 608 + column: 7 parent: ~ - kind: name: FitsOnOneLine @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 617 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FitsOnOneLine @@ -86,6 +90,7 @@ expression: diagnostics end_location: row: 626 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap index bc09e4cc2f59d5..8ce6a8ea923f82 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D201_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 137 column: 24 fix: - content: "" - location: - row: 136 - column: 0 - end_location: - row: 137 - column: 0 + edits: + - content: "" + location: + row: 136 + column: 0 + end_location: + row: 137 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 151 column: 37 fix: - content: "" - location: - row: 150 - column: 0 - end_location: - row: 151 - column: 0 + edits: + - content: "" + location: + row: 150 + column: 0 + end_location: + row: 151 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 549 column: 7 fix: - content: "" - location: - row: 545 - column: 0 - end_location: - row: 546 - column: 0 + edits: + - content: "" + location: + row: 545 + column: 0 + end_location: + row: 546 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeFunction @@ -74,12 +77,13 @@ expression: diagnostics row: 571 column: 7 fix: - content: "" - location: - row: 567 - column: 0 - end_location: - row: 568 - column: 0 + edits: + - content: "" + location: + row: 567 + column: 0 + end_location: + row: 568 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap index ca7fae4133af29..879e859bdb4197 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 142 column: 24 fix: - content: "" - location: - row: 143 - column: 0 - end_location: - row: 144 - column: 0 + edits: + - content: "" + location: + row: 143 + column: 0 + end_location: + row: 144 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 151 column: 37 fix: - content: "" - location: - row: 152 - column: 0 - end_location: - row: 153 - column: 0 + edits: + - content: "" + location: + row: 152 + column: 0 + end_location: + row: 153 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -54,13 +56,14 @@ expression: diagnostics row: 558 column: 7 fix: - content: "" - location: - row: 559 - column: 0 - end_location: - row: 560 - column: 0 + edits: + - content: "" + location: + row: 559 + column: 0 + end_location: + row: 560 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -74,12 +77,13 @@ expression: diagnostics row: 571 column: 7 fix: - content: "" - location: - row: 572 - column: 0 - end_location: - row: 573 - column: 0 + edits: + - content: "" + location: + row: 572 + column: 0 + end_location: + row: 573 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap index 645410db17cc8b..c36b03f8defd49 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D202_D202.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 57 column: 30 fix: - content: "" - location: - row: 58 - column: 0 - end_location: - row: 60 - column: 0 + edits: + - content: "" + location: + row: 58 + column: 0 + end_location: + row: 60 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -34,13 +35,14 @@ expression: diagnostics row: 68 column: 30 fix: - content: "" - location: - row: 69 - column: 0 - end_location: - row: 71 - column: 0 + edits: + - content: "" + location: + row: 69 + column: 0 + end_location: + row: 71 + column: 0 parent: ~ - kind: name: NoBlankLineAfterFunction @@ -54,12 +56,13 @@ expression: diagnostics row: 80 column: 30 fix: - content: "" - location: - row: 81 - column: 0 - end_location: - row: 82 - column: 0 + edits: + - content: "" + location: + row: 81 + column: 0 + end_location: + row: 82 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap index 0de8a25b741c5e..3dd4a8a8e17af6 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D203_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 161 column: 32 fix: - content: "\n" - location: - row: 161 - column: 0 - end_location: - row: 161 - column: 0 + edits: + - content: "\n" + location: + row: 161 + column: 0 + end_location: + row: 161 + column: 0 parent: ~ - kind: name: OneBlankLineBeforeClass @@ -34,13 +35,14 @@ expression: diagnostics row: 192 column: 45 fix: - content: "\n" - location: - row: 192 - column: 0 - end_location: - row: 192 - column: 0 + edits: + - content: "\n" + location: + row: 192 + column: 0 + end_location: + row: 192 + column: 0 parent: ~ - kind: name: OneBlankLineBeforeClass @@ -54,12 +56,13 @@ expression: diagnostics row: 532 column: 7 fix: - content: "\n" - location: - row: 526 - column: 0 - end_location: - row: 526 - column: 0 + edits: + - content: "\n" + location: + row: 526 + column: 0 + end_location: + row: 526 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap index 2723279843b42b..b63bfd83e12fa4 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D204_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 181 column: 24 fix: - content: "\n" - location: - row: 182 - column: 0 - end_location: - row: 182 - column: 0 + edits: + - content: "\n" + location: + row: 182 + column: 0 + end_location: + row: 182 + column: 0 parent: ~ - kind: name: OneBlankLineAfterClass @@ -34,12 +35,13 @@ expression: diagnostics row: 192 column: 45 fix: - content: "\n" - location: - row: 193 - column: 0 - end_location: - row: 193 - column: 0 + edits: + - content: "\n" + location: + row: 193 + column: 0 + end_location: + row: 193 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap index c643c7bff9a432..0aa25e96dcacea 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D205_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 203 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlankLineAfterSummary @@ -27,12 +28,13 @@ expression: diagnostics row: 215 column: 7 fix: - content: "\n" - location: - row: 211 - column: 0 - end_location: - row: 213 - column: 0 + edits: + - content: "\n" + location: + row: 211 + column: 0 + end_location: + row: 213 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap index dbcb6f849a50ab..263860e0ab135f 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D207_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 232 column: 0 fix: - content: " " - location: - row: 232 - column: 0 - end_location: - row: 232 - column: 0 + edits: + - content: " " + location: + row: 232 + column: 0 + end_location: + row: 232 + column: 0 parent: ~ - kind: name: UnderIndentation @@ -34,13 +35,14 @@ expression: diagnostics row: 244 column: 0 fix: - content: " " - location: - row: 244 - column: 0 - end_location: - row: 244 - column: 0 + edits: + - content: " " + location: + row: 244 + column: 0 + end_location: + row: 244 + column: 0 parent: ~ - kind: name: UnderIndentation @@ -54,13 +56,14 @@ expression: diagnostics row: 440 column: 0 fix: - content: " " - location: - row: 440 - column: 0 - end_location: - row: 440 - column: 4 + edits: + - content: " " + location: + row: 440 + column: 0 + end_location: + row: 440 + column: 4 parent: ~ - kind: name: UnderIndentation @@ -74,12 +77,13 @@ expression: diagnostics row: 441 column: 0 fix: - content: " " - location: - row: 441 - column: 0 - end_location: - row: 441 - column: 4 + edits: + - content: " " + location: + row: 441 + column: 0 + end_location: + row: 441 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap index 847741752f124f..083f64bd58f97c 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D208_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 252 column: 0 fix: - content: " " - location: - row: 252 - column: 0 - end_location: - row: 252 - column: 7 + edits: + - content: " " + location: + row: 252 + column: 0 + end_location: + row: 252 + column: 7 parent: ~ - kind: name: OverIndentation @@ -34,13 +35,14 @@ expression: diagnostics row: 264 column: 0 fix: - content: " " - location: - row: 264 - column: 0 - end_location: - row: 264 - column: 8 + edits: + - content: " " + location: + row: 264 + column: 0 + end_location: + row: 264 + column: 8 parent: ~ - kind: name: OverIndentation @@ -54,12 +56,13 @@ expression: diagnostics row: 272 column: 0 fix: - content: " " - location: - row: 272 - column: 0 - end_location: - row: 272 - column: 8 + edits: + - content: " " + location: + row: 272 + column: 0 + end_location: + row: 272 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap index e33af346c321f9..d38f971bad9729 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D209_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 283 column: 19 fix: - content: "\n " - location: - row: 283 - column: 16 - end_location: - row: 283 - column: 16 + edits: + - content: "\n " + location: + row: 283 + column: 16 + end_location: + row: 283 + column: 16 parent: ~ - kind: name: NewLineAfterLastParagraph @@ -34,12 +35,13 @@ expression: diagnostics row: 590 column: 21 fix: - content: "\n " - location: - row: 590 - column: 16 - end_location: - row: 590 - column: 18 + edits: + - content: "\n " + location: + row: 590 + column: 16 + end_location: + row: 590 + column: 18 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap index e198b3ca538f77..eab9721852aef7 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D210_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 288 column: 33 fix: - content: Whitespace at the end. - location: - row: 288 - column: 7 - end_location: - row: 288 - column: 30 + edits: + - content: Whitespace at the end. + location: + row: 288 + column: 7 + end_location: + row: 288 + column: 30 parent: ~ - kind: name: SurroundingWhitespace @@ -34,13 +35,14 @@ expression: diagnostics row: 293 column: 37 fix: - content: Whitespace at everywhere. - location: - row: 293 - column: 7 - end_location: - row: 293 - column: 34 + edits: + - content: Whitespace at everywhere. + location: + row: 293 + column: 7 + end_location: + row: 293 + column: 34 parent: ~ - kind: name: SurroundingWhitespace @@ -54,13 +56,14 @@ expression: diagnostics row: 302 column: 7 fix: - content: Whitespace at the beginning. - location: - row: 299 - column: 7 - end_location: - row: 299 - column: 36 + edits: + - content: Whitespace at the beginning. + location: + row: 299 + column: 7 + end_location: + row: 299 + column: 36 parent: ~ - kind: name: SurroundingWhitespace @@ -73,6 +76,7 @@ expression: diagnostics end_location: row: 581 column: 51 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap index 5808fb0885f91f..31d5d4137d598e 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D211_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 170 column: 29 fix: - content: "" - location: - row: 169 - column: 0 - end_location: - row: 170 - column: 0 + edits: + - content: "" + location: + row: 169 + column: 0 + end_location: + row: 170 + column: 0 parent: ~ - kind: name: BlankLineBeforeClass @@ -34,12 +35,13 @@ expression: diagnostics row: 181 column: 24 fix: - content: "" - location: - row: 180 - column: 0 - end_location: - row: 181 - column: 0 + edits: + - content: "" + location: + row: 180 + column: 0 + end_location: + row: 181 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap index 9c70c0e88fdab4..789cdd23094286 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D212_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 131 column: 7 fix: - content: "" - location: - row: 129 - column: 7 - end_location: - row: 130 - column: 4 + edits: + - content: "" + location: + row: 129 + column: 7 + end_location: + row: 130 + column: 4 parent: ~ - kind: name: MultiLineSummaryFirstLine @@ -34,13 +35,14 @@ expression: diagnostics row: 599 column: 13 fix: - content: "" - location: - row: 597 - column: 7 - end_location: - row: 599 - column: 4 + edits: + - content: "" + location: + row: 597 + column: 7 + end_location: + row: 599 + column: 4 parent: ~ - kind: name: MultiLineSummaryFirstLine @@ -54,12 +56,13 @@ expression: diagnostics row: 626 column: 14 fix: - content: "" - location: - row: 624 - column: 7 - end_location: - row: 626 - column: 4 + edits: + - content: "" + location: + row: 624 + column: 7 + end_location: + row: 626 + column: 4 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap index f2db70d3655623..d4d482a633156f 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D213_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 203 column: 7 fix: - content: "\n Summary." - location: - row: 200 - column: 7 - end_location: - row: 200 - column: 15 + edits: + - content: "\n Summary." + location: + row: 200 + column: 7 + end_location: + row: 200 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -34,13 +35,14 @@ expression: diagnostics row: 215 column: 7 fix: - content: "\n Summary." - location: - row: 210 - column: 7 - end_location: - row: 210 - column: 15 + edits: + - content: "\n Summary." + location: + row: 210 + column: 7 + end_location: + row: 210 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -54,13 +56,14 @@ expression: diagnostics row: 224 column: 7 fix: - content: "\n Summary." - location: - row: 220 - column: 7 - end_location: - row: 220 - column: 15 + edits: + - content: "\n Summary." + location: + row: 220 + column: 7 + end_location: + row: 220 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -74,13 +77,14 @@ expression: diagnostics row: 234 column: 7 fix: - content: "\n Summary." - location: - row: 230 - column: 7 - end_location: - row: 230 - column: 15 + edits: + - content: "\n Summary." + location: + row: 230 + column: 7 + end_location: + row: 230 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -94,13 +98,14 @@ expression: diagnostics row: 244 column: 3 fix: - content: "\n Summary." - location: - row: 240 - column: 7 - end_location: - row: 240 - column: 15 + edits: + - content: "\n Summary." + location: + row: 240 + column: 7 + end_location: + row: 240 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -114,13 +119,14 @@ expression: diagnostics row: 254 column: 7 fix: - content: "\n Summary." - location: - row: 250 - column: 7 - end_location: - row: 250 - column: 15 + edits: + - content: "\n Summary." + location: + row: 250 + column: 7 + end_location: + row: 250 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -134,13 +140,14 @@ expression: diagnostics row: 264 column: 11 fix: - content: "\n Summary." - location: - row: 260 - column: 7 - end_location: - row: 260 - column: 15 + edits: + - content: "\n Summary." + location: + row: 260 + column: 7 + end_location: + row: 260 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -154,13 +161,14 @@ expression: diagnostics row: 274 column: 7 fix: - content: "\n Summary." - location: - row: 270 - column: 7 - end_location: - row: 270 - column: 15 + edits: + - content: "\n Summary." + location: + row: 270 + column: 7 + end_location: + row: 270 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -174,13 +182,14 @@ expression: diagnostics row: 283 column: 19 fix: - content: "\n Summary." - location: - row: 281 - column: 7 - end_location: - row: 281 - column: 15 + edits: + - content: "\n Summary." + location: + row: 281 + column: 7 + end_location: + row: 281 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -194,13 +203,14 @@ expression: diagnostics row: 302 column: 7 fix: - content: "\n Whitespace at the beginning." - location: - row: 299 - column: 7 - end_location: - row: 299 - column: 36 + edits: + - content: "\n Whitespace at the beginning." + location: + row: 299 + column: 7 + end_location: + row: 299 + column: 36 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -214,13 +224,14 @@ expression: diagnostics row: 348 column: 7 fix: - content: "\n Exclude some backslashes from D301." - location: - row: 343 - column: 7 - end_location: - row: 343 - column: 42 + edits: + - content: "\n Exclude some backslashes from D301." + location: + row: 343 + column: 7 + end_location: + row: 343 + column: 42 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -234,13 +245,14 @@ expression: diagnostics row: 386 column: 7 fix: - content: "\n First line." - location: - row: 383 - column: 7 - end_location: - row: 383 - column: 18 + edits: + - content: "\n First line." + location: + row: 383 + column: 7 + end_location: + row: 383 + column: 18 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -254,13 +266,14 @@ expression: diagnostics row: 396 column: 7 fix: - content: "\n One liner." - location: - row: 392 - column: 7 - end_location: - row: 392 - column: 17 + edits: + - content: "\n One liner." + location: + row: 392 + column: 7 + end_location: + row: 392 + column: 17 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -274,13 +287,14 @@ expression: diagnostics row: 441 column: 7 fix: - content: "\n First Line." - location: - row: 438 - column: 39 - end_location: - row: 438 - column: 50 + edits: + - content: "\n First Line." + location: + row: 438 + column: 39 + end_location: + row: 438 + column: 50 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -294,13 +308,14 @@ expression: diagnostics row: 454 column: 7 fix: - content: "\n Check for a bug where the previous function caused an assertion." - location: - row: 450 - column: 7 - end_location: - row: 450 - column: 71 + edits: + - content: "\n Check for a bug where the previous function caused an assertion." + location: + row: 450 + column: 7 + end_location: + row: 450 + column: 71 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -314,13 +329,14 @@ expression: diagnostics row: 532 column: 7 fix: - content: "\n A Blah." - location: - row: 526 - column: 7 - end_location: - row: 526 - column: 14 + edits: + - content: "\n A Blah." + location: + row: 526 + column: 7 + end_location: + row: 526 + column: 14 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -334,13 +350,14 @@ expression: diagnostics row: 549 column: 7 fix: - content: "\n Leading space." - location: - row: 546 - column: 7 - end_location: - row: 546 - column: 21 + edits: + - content: "\n Leading space." + location: + row: 546 + column: 7 + end_location: + row: 546 + column: 21 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -354,13 +371,14 @@ expression: diagnostics row: 558 column: 7 fix: - content: "\n Leading space." - location: - row: 555 - column: 7 - end_location: - row: 555 - column: 21 + edits: + - content: "\n Leading space." + location: + row: 555 + column: 7 + end_location: + row: 555 + column: 21 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -374,13 +392,14 @@ expression: diagnostics row: 571 column: 7 fix: - content: "\n Trailing and leading space." - location: - row: 568 - column: 7 - end_location: - row: 568 - column: 34 + edits: + - content: "\n Trailing and leading space." + location: + row: 568 + column: 7 + end_location: + row: 568 + column: 34 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -394,13 +413,14 @@ expression: diagnostics row: 590 column: 21 fix: - content: "\n Summary." - location: - row: 588 - column: 7 - end_location: - row: 588 - column: 15 + edits: + - content: "\n Summary." + location: + row: 588 + column: 7 + end_location: + row: 588 + column: 15 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -414,13 +434,14 @@ expression: diagnostics row: 608 column: 7 fix: - content: "\n Wrong." - location: - row: 606 - column: 8 - end_location: - row: 606 - column: 14 + edits: + - content: "\n Wrong." + location: + row: 606 + column: 8 + end_location: + row: 606 + column: 14 parent: ~ - kind: name: MultiLineSummarySecondLine @@ -434,12 +455,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "\n Wrong.\"" - location: - row: 615 - column: 7 - end_location: - row: 615 - column: 14 + edits: + - content: "\n Wrong.\"" + location: + row: 615 + column: 7 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap index 3012cf86b25700..66130faabac6a1 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D214_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 150 column: 7 fix: - content: " " - location: - row: 146 - column: 0 - end_location: - row: 146 - column: 8 + edits: + - content: " " + location: + row: 146 + column: 0 + end_location: + row: 146 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap index 3a6759ec23bd79..20497f6f989653 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D215_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 162 column: 7 fix: - content: " " - location: - row: 159 - column: 0 - end_location: - row: 159 - column: 9 + edits: + - content: " " + location: + row: 159 + column: 0 + end_location: + row: 159 + column: 9 parent: ~ - kind: name: SectionUnderlineNotOverIndented @@ -34,12 +35,13 @@ expression: diagnostics row: 174 column: 7 fix: - content: " " - location: - row: 173 - column: 0 - end_location: - row: 173 - column: 9 + edits: + - content: " " + location: + row: 173 + column: 0 + end_location: + row: 173 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap index 4dc287cba5a3b4..3407809594c6db 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D300_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 307 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 312 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 317 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 322 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TripleSingleQuotes @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 328 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap index e6f3d1a621373f..7d6c5515eb79ab 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D301_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 328 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EscapeSequenceInDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 333 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EscapeSequenceInDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 338 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap index bd473c0ef6b524..63a893f6c42232 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 355 column: 17 fix: - content: "." - location: - row: 355 - column: 14 - end_location: - row: 355 - column: 14 + edits: + - content: "." + location: + row: 355 + column: 14 + end_location: + row: 355 + column: 14 parent: ~ - kind: name: EndsInPeriod @@ -34,13 +35,14 @@ expression: diagnostics row: 406 column: 39 fix: - content: "." - location: - row: 406 - column: 36 - end_location: - row: 406 - column: 36 + edits: + - content: "." + location: + row: 406 + column: 36 + end_location: + row: 406 + column: 36 parent: ~ - kind: name: EndsInPeriod @@ -54,13 +56,14 @@ expression: diagnostics row: 410 column: 24 fix: - content: "." - location: - row: 410 - column: 21 - end_location: - row: 410 - column: 21 + edits: + - content: "." + location: + row: 410 + column: 21 + end_location: + row: 410 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -74,13 +77,14 @@ expression: diagnostics row: 416 column: 24 fix: - content: "." - location: - row: 416 - column: 21 - end_location: - row: 416 - column: 21 + edits: + - content: "." + location: + row: 416 + column: 21 + end_location: + row: 416 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -94,13 +98,14 @@ expression: diagnostics row: 422 column: 49 fix: - content: "." - location: - row: 422 - column: 46 - end_location: - row: 422 - column: 46 + edits: + - content: "." + location: + row: 422 + column: 46 + end_location: + row: 422 + column: 46 parent: ~ - kind: name: EndsInPeriod @@ -114,13 +119,14 @@ expression: diagnostics row: 429 column: 63 fix: - content: "." - location: - row: 429 - column: 60 - end_location: - row: 429 - column: 60 + edits: + - content: "." + location: + row: 429 + column: 60 + end_location: + row: 429 + column: 60 parent: ~ - kind: name: EndsInPeriod @@ -134,13 +140,14 @@ expression: diagnostics row: 470 column: 24 fix: - content: "." - location: - row: 470 - column: 21 - end_location: - row: 470 - column: 21 + edits: + - content: "." + location: + row: 470 + column: 21 + end_location: + row: 470 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -154,13 +161,14 @@ expression: diagnostics row: 475 column: 24 fix: - content: "." - location: - row: 475 - column: 21 - end_location: - row: 475 - column: 21 + edits: + - content: "." + location: + row: 475 + column: 21 + end_location: + row: 475 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -174,13 +182,14 @@ expression: diagnostics row: 480 column: 24 fix: - content: "." - location: - row: 480 - column: 21 - end_location: - row: 480 - column: 21 + edits: + - content: "." + location: + row: 480 + column: 21 + end_location: + row: 480 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -194,13 +203,14 @@ expression: diagnostics row: 487 column: 24 fix: - content: "." - location: - row: 487 - column: 21 - end_location: - row: 487 - column: 21 + edits: + - content: "." + location: + row: 487 + column: 21 + end_location: + row: 487 + column: 21 parent: ~ - kind: name: EndsInPeriod @@ -214,13 +224,14 @@ expression: diagnostics row: 514 column: 33 fix: - content: "." - location: - row: 514 - column: 30 - end_location: - row: 514 - column: 30 + edits: + - content: "." + location: + row: 514 + column: 30 + end_location: + row: 514 + column: 30 parent: ~ - kind: name: EndsInPeriod @@ -234,13 +245,14 @@ expression: diagnostics row: 520 column: 32 fix: - content: "." - location: - row: 520 - column: 29 - end_location: - row: 520 - column: 29 + edits: + - content: "." + location: + row: 520 + column: 29 + end_location: + row: 520 + column: 29 parent: ~ - kind: name: EndsInPeriod @@ -254,13 +266,14 @@ expression: diagnostics row: 581 column: 51 fix: - content: "." - location: - row: 581 - column: 47 - end_location: - row: 581 - column: 47 + edits: + - content: "." + location: + row: 581 + column: 47 + end_location: + row: 581 + column: 47 parent: ~ - kind: name: EndsInPeriod @@ -274,12 +287,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "." - location: - row: 615 - column: 14 - end_location: - row: 615 - column: 14 + edits: + - content: "." + location: + row: 615 + column: 14 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap index 008ea1efa6bdc1..fc1450240859a9 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D400_D400.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 36 fix: - content: "." - location: - row: 2 - column: 35 - end_location: - row: 2 - column: 35 + edits: + - content: "." + location: + row: 2 + column: 35 + end_location: + row: 2 + column: 35 parent: ~ - kind: name: EndsInPeriod @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: "." - location: - row: 7 - column: 37 - end_location: - row: 7 - column: 37 + edits: + - content: "." + location: + row: 7 + column: 37 + end_location: + row: 7 + column: 37 parent: ~ - kind: name: EndsInPeriod @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 7 fix: - content: "." - location: - row: 14 - column: 28 - end_location: - row: 14 - column: 28 + edits: + - content: "." + location: + row: 14 + column: 28 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -74,13 +77,14 @@ expression: diagnostics row: 20 column: 40 fix: - content: "." - location: - row: 20 - column: 37 - end_location: - row: 20 - column: 37 + edits: + - content: "." + location: + row: 20 + column: 37 + end_location: + row: 20 + column: 37 parent: ~ - kind: name: EndsInPeriod @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 31 fix: - content: "." - location: - row: 27 - column: 28 - end_location: - row: 27 - column: 28 + edits: + - content: "." + location: + row: 27 + column: 28 + end_location: + row: 27 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -114,13 +119,14 @@ expression: diagnostics row: 34 column: 52 fix: - content: "." - location: - row: 34 - column: 48 - end_location: - row: 34 - column: 48 + edits: + - content: "." + location: + row: 34 + column: 48 + end_location: + row: 34 + column: 48 parent: ~ - kind: name: EndsInPeriod @@ -134,13 +140,14 @@ expression: diagnostics row: 39 column: 37 fix: - content: "." - location: - row: 39 - column: 36 - end_location: - row: 39 - column: 36 + edits: + - content: "." + location: + row: 39 + column: 36 + end_location: + row: 39 + column: 36 parent: ~ - kind: name: EndsInPeriod @@ -154,13 +161,14 @@ expression: diagnostics row: 44 column: 41 fix: - content: "." - location: - row: 44 - column: 38 - end_location: - row: 44 - column: 38 + edits: + - content: "." + location: + row: 44 + column: 38 + end_location: + row: 44 + column: 38 parent: ~ - kind: name: EndsInPeriod @@ -174,13 +182,14 @@ expression: diagnostics row: 52 column: 7 fix: - content: "." - location: - row: 51 - column: 28 - end_location: - row: 51 - column: 28 + edits: + - content: "." + location: + row: 51 + column: 28 + end_location: + row: 51 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 41 fix: - content: "." - location: - row: 57 - column: 38 - end_location: - row: 57 - column: 38 + edits: + - content: "." + location: + row: 57 + column: 38 + end_location: + row: 57 + column: 38 parent: ~ - kind: name: EndsInPeriod @@ -214,13 +224,14 @@ expression: diagnostics row: 64 column: 31 fix: - content: "." - location: - row: 64 - column: 28 - end_location: - row: 64 - column: 28 + edits: + - content: "." + location: + row: 64 + column: 28 + end_location: + row: 64 + column: 28 parent: ~ - kind: name: EndsInPeriod @@ -234,12 +245,13 @@ expression: diagnostics row: 71 column: 52 fix: - content: "." - location: - row: 71 - column: 48 - end_location: - row: 71 - column: 48 + edits: + - content: "." + location: + row: 71 + column: 48 + end_location: + row: 71 + column: 48 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap index 909f9a8459f331..47e4da6b7a3bea 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D401_D401.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 10 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 22 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 37 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonImperativeMood @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 74 column: 73 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap index 05afd64c732dfe..bc87d94f94a6e3 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D402_D.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 378 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap index 10775349f4a115..eebb18a5fb5953 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D403_D403.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 43 fix: - content: This - location: - row: 2 - column: 7 - end_location: - row: 2 - column: 11 + edits: + - content: This + location: + row: 2 + column: 7 + end_location: + row: 2 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap index c59cd817b7e4b5..c4904667b75ea9 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D404_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 631 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DocstringStartsWithThis @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 636 column: 56 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap index 253d2154bbbaa9..e029b60b67db0c 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D405_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: Returns - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 11 + edits: + - content: Returns + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 11 parent: ~ - kind: name: CapitalizeSectionName @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: Short Summary - location: - row: 218 - column: 4 - end_location: - row: 218 - column: 17 + edits: + - content: Short Summary + location: + row: 218 + column: 4 + end_location: + row: 218 + column: 17 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap index 7eabee0ae83be6..7540367892d11f 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D406_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 36 column: 7 fix: - content: "" - location: - row: 32 - column: 11 - end_location: - row: 32 - column: 12 + edits: + - content: "" + location: + row: 32 + column: 11 + end_location: + row: 32 + column: 12 parent: ~ - kind: name: NewLineAfterSectionName @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "" - location: - row: 227 - column: 10 - end_location: - row: 227 - column: 11 + edits: + - content: "" + location: + row: 227 + column: 10 + end_location: + row: 227 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap index 3068e5c7436fd6..079d39677e0741 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D407_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 47 column: 7 fix: - content: "\n -------" - location: - row: 44 - column: 11 - end_location: - row: 44 - column: 11 + edits: + - content: "\n -------" + location: + row: 44 + column: 11 + end_location: + row: 44 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -34,13 +35,14 @@ expression: diagnostics row: 58 column: 7 fix: - content: "\n -------" - location: - row: 56 - column: 11 - end_location: - row: 56 - column: 11 + edits: + - content: "\n -------" + location: + row: 56 + column: 11 + end_location: + row: 56 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -54,13 +56,14 @@ expression: diagnostics row: 67 column: 14 fix: - content: "\n -------" - location: - row: 67 - column: 11 - end_location: - row: 67 - column: 11 + edits: + - content: "\n -------" + location: + row: 67 + column: 11 + end_location: + row: 67 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -74,13 +77,14 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n ------" - location: - row: 227 - column: 11 - end_location: - row: 227 - column: 11 + edits: + - content: "\n ------" + location: + row: 227 + column: 11 + end_location: + row: 227 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -94,13 +98,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n ----" - location: - row: 263 - column: 9 - end_location: - row: 263 - column: 9 + edits: + - content: "\n ----" + location: + row: 263 + column: 9 + end_location: + row: 263 + column: 9 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -114,13 +119,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n -------" - location: - row: 266 - column: 12 - end_location: - row: 266 - column: 12 + edits: + - content: "\n -------" + location: + row: 266 + column: 12 + end_location: + row: 266 + column: 12 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -134,13 +140,14 @@ expression: diagnostics row: 271 column: 7 fix: - content: "\n ------" - location: - row: 268 - column: 11 - end_location: - row: 268 - column: 11 + edits: + - content: "\n ------" + location: + row: 268 + column: 11 + end_location: + row: 268 + column: 11 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -154,13 +161,14 @@ expression: diagnostics row: 283 column: 7 fix: - content: "\n ----" - location: - row: 280 - column: 8 - end_location: - row: 280 - column: 8 + edits: + - content: "\n ----" + location: + row: 280 + column: 8 + end_location: + row: 280 + column: 8 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -174,13 +182,14 @@ expression: diagnostics row: 301 column: 11 fix: - content: "\n ----" - location: - row: 297 - column: 13 - end_location: - row: 297 - column: 13 + edits: + - content: "\n ----" + location: + row: 297 + column: 13 + end_location: + row: 297 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -194,13 +203,14 @@ expression: diagnostics row: 315 column: 7 fix: - content: "\n ----" - location: - row: 312 - column: 9 - end_location: - row: 312 - column: 9 + edits: + - content: "\n ----" + location: + row: 312 + column: 9 + end_location: + row: 312 + column: 9 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -214,13 +224,14 @@ expression: diagnostics row: 328 column: 11 fix: - content: "\n ----" - location: - row: 324 - column: 13 - end_location: - row: 324 - column: 13 + edits: + - content: "\n ----" + location: + row: 324 + column: 13 + end_location: + row: 324 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -234,13 +245,14 @@ expression: diagnostics row: 339 column: 11 fix: - content: "\n ----" - location: - row: 336 - column: 13 - end_location: - row: 336 - column: 13 + edits: + - content: "\n ----" + location: + row: 336 + column: 13 + end_location: + row: 336 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -254,13 +266,14 @@ expression: diagnostics row: 352 column: 11 fix: - content: "\n ----" - location: - row: 348 - column: 13 - end_location: - row: 348 - column: 13 + edits: + - content: "\n ----" + location: + row: 348 + column: 13 + end_location: + row: 348 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -274,13 +287,14 @@ expression: diagnostics row: 364 column: 11 fix: - content: "\n ----" - location: - row: 361 - column: 13 - end_location: - row: 361 - column: 13 + edits: + - content: "\n ----" + location: + row: 361 + column: 13 + end_location: + row: 361 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -294,13 +308,14 @@ expression: diagnostics row: 376 column: 11 fix: - content: "\n ----" - location: - row: 373 - column: 13 - end_location: - row: 373 - column: 13 + edits: + - content: "\n ----" + location: + row: 373 + column: 13 + end_location: + row: 373 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -314,13 +329,14 @@ expression: diagnostics row: 391 column: 11 fix: - content: "\n ----" - location: - row: 382 - column: 13 - end_location: - row: 382 - column: 13 + edits: + - content: "\n ----" + location: + row: 382 + column: 13 + end_location: + row: 382 + column: 13 parent: ~ - kind: name: DashedUnderlineAfterSection @@ -334,12 +350,13 @@ expression: diagnostics row: 506 column: 11 fix: - content: "\n ----" - location: - row: 503 - column: 13 - end_location: - row: 503 - column: 13 + edits: + - content: "\n ----" + location: + row: 503 + column: 13 + end_location: + row: 503 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap index 9cfc4904360ab4..b6bca24b8b0322 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D408_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 101 column: 7 fix: - content: "" - location: - row: 97 - column: 0 - end_location: - row: 98 - column: 0 + edits: + - content: "" + location: + row: 97 + column: 0 + end_location: + row: 98 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap index 5e5cb0560c02b2..3fffe00c0c3502 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D409_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 114 column: 7 fix: - content: " -------\n" - location: - row: 111 - column: 0 - end_location: - row: 112 - column: 0 + edits: + - content: " -------\n" + location: + row: 111 + column: 0 + end_location: + row: 112 + column: 0 parent: ~ - kind: name: SectionUnderlineMatchesSectionLength @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: " -------\n" - location: - row: 225 - column: 0 - end_location: - row: 226 - column: 0 + edits: + - content: " -------\n" + location: + row: 225 + column: 0 + end_location: + row: 226 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap index e43d165ab66115..40663326f6a7b2 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D410_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 87 column: 7 fix: - content: "\n" - location: - row: 79 - column: 11 - end_location: - row: 79 - column: 11 + edits: + - content: "\n" + location: + row: 79 + column: 11 + end_location: + row: 79 + column: 11 parent: ~ - kind: name: NoBlankLineAfterSection @@ -34,12 +35,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n" - location: - row: 226 - column: 31 - end_location: - row: 226 - column: 31 + edits: + - content: "\n" + location: + row: 226 + column: 31 + end_location: + row: 226 + column: 31 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap index b9f8cf5a872998..5b7d2666550462 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D411_sections.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 87 column: 7 fix: - content: "\n" - location: - row: 80 - column: 0 - end_location: - row: 80 - column: 0 + edits: + - content: "\n" + location: + row: 80 + column: 0 + end_location: + row: 80 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeSection @@ -34,13 +35,14 @@ expression: diagnostics row: 138 column: 7 fix: - content: "\n" - location: - row: 134 - column: 0 - end_location: - row: 134 - column: 0 + edits: + - content: "\n" + location: + row: 134 + column: 0 + end_location: + row: 134 + column: 0 parent: ~ - kind: name: NoBlankLineBeforeSection @@ -54,12 +56,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "\n" - location: - row: 227 - column: 0 - end_location: - row: 227 - column: 0 + edits: + - content: "\n" + location: + row: 227 + column: 0 + end_location: + row: 227 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap index 1d9436d0e16b56..f51bbd73568df5 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D412_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 230 column: 7 fix: - content: "" - location: - row: 220 - column: 0 - end_location: - row: 221 - column: 0 + edits: + - content: "" + location: + row: 220 + column: 0 + end_location: + row: 221 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap index 58a097f3a94422..48a72b711f2551 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D413_sections.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 67 column: 14 fix: - content: "\n " - location: - row: 67 - column: 11 - end_location: - row: 67 - column: 11 + edits: + - content: "\n " + location: + row: 67 + column: 11 + end_location: + row: 67 + column: 11 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap index 069412293a53c3..cd9ee5e575170b 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D414_sections.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 67 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 87 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 87 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 174 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstringSection @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 271 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap index ae9b6e13301c42..6ae1d9d5b7a70c 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D415_D.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 355 column: 17 fix: - content: "." - location: - row: 355 - column: 14 - end_location: - row: 355 - column: 14 + edits: + - content: "." + location: + row: 355 + column: 14 + end_location: + row: 355 + column: 14 parent: ~ - kind: name: EndsInPunctuation @@ -34,13 +35,14 @@ expression: diagnostics row: 406 column: 39 fix: - content: "." - location: - row: 406 - column: 36 - end_location: - row: 406 - column: 36 + edits: + - content: "." + location: + row: 406 + column: 36 + end_location: + row: 406 + column: 36 parent: ~ - kind: name: EndsInPunctuation @@ -54,13 +56,14 @@ expression: diagnostics row: 410 column: 24 fix: - content: "." - location: - row: 410 - column: 21 - end_location: - row: 410 - column: 21 + edits: + - content: "." + location: + row: 410 + column: 21 + end_location: + row: 410 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -74,13 +77,14 @@ expression: diagnostics row: 416 column: 24 fix: - content: "." - location: - row: 416 - column: 21 - end_location: - row: 416 - column: 21 + edits: + - content: "." + location: + row: 416 + column: 21 + end_location: + row: 416 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -94,13 +98,14 @@ expression: diagnostics row: 422 column: 49 fix: - content: "." - location: - row: 422 - column: 46 - end_location: - row: 422 - column: 46 + edits: + - content: "." + location: + row: 422 + column: 46 + end_location: + row: 422 + column: 46 parent: ~ - kind: name: EndsInPunctuation @@ -114,13 +119,14 @@ expression: diagnostics row: 429 column: 63 fix: - content: "." - location: - row: 429 - column: 60 - end_location: - row: 429 - column: 60 + edits: + - content: "." + location: + row: 429 + column: 60 + end_location: + row: 429 + column: 60 parent: ~ - kind: name: EndsInPunctuation @@ -134,13 +140,14 @@ expression: diagnostics row: 470 column: 24 fix: - content: "." - location: - row: 470 - column: 21 - end_location: - row: 470 - column: 21 + edits: + - content: "." + location: + row: 470 + column: 21 + end_location: + row: 470 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -154,13 +161,14 @@ expression: diagnostics row: 475 column: 24 fix: - content: "." - location: - row: 475 - column: 21 - end_location: - row: 475 - column: 21 + edits: + - content: "." + location: + row: 475 + column: 21 + end_location: + row: 475 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -174,13 +182,14 @@ expression: diagnostics row: 480 column: 24 fix: - content: "." - location: - row: 480 - column: 21 - end_location: - row: 480 - column: 21 + edits: + - content: "." + location: + row: 480 + column: 21 + end_location: + row: 480 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -194,13 +203,14 @@ expression: diagnostics row: 487 column: 24 fix: - content: "." - location: - row: 487 - column: 21 - end_location: - row: 487 - column: 21 + edits: + - content: "." + location: + row: 487 + column: 21 + end_location: + row: 487 + column: 21 parent: ~ - kind: name: EndsInPunctuation @@ -214,13 +224,14 @@ expression: diagnostics row: 520 column: 32 fix: - content: "." - location: - row: 520 - column: 29 - end_location: - row: 520 - column: 29 + edits: + - content: "." + location: + row: 520 + column: 29 + end_location: + row: 520 + column: 29 parent: ~ - kind: name: EndsInPunctuation @@ -234,13 +245,14 @@ expression: diagnostics row: 581 column: 51 fix: - content: "." - location: - row: 581 - column: 47 - end_location: - row: 581 - column: 47 + edits: + - content: "." + location: + row: 581 + column: 47 + end_location: + row: 581 + column: 47 parent: ~ - kind: name: EndsInPunctuation @@ -254,12 +266,13 @@ expression: diagnostics row: 617 column: 7 fix: - content: "." - location: - row: 615 - column: 14 - end_location: - row: 615 - column: 14 + edits: + - content: "." + location: + row: 615 + column: 14 + end_location: + row: 615 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap index 73c343dbf0aa91..227c6bde89b5aa 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D417_sections.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 292 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 309 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 333 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 345 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 358 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 370 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 398 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 434 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 449 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 468 column: 39 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 498 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap index 574d074691e214..1f36cc53d4b992 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D418_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 34 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverloadWithDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 90 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: OverloadWithDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 110 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap index 3904d446a908fa..f677c308cd6522 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__D419_D.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstring @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 74 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: EmptyDocstring @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 80 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap index 87dedbc2c4190b..ee557fe9286f70 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__bom.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap index 01db548f2ac7c0..11a73d0c9fdb38 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d209_d400.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 72 fix: - content: "\n " - location: - row: 3 - column: 69 - end_location: - row: 3 - column: 69 + edits: + - content: "\n " + location: + row: 3 + column: 69 + end_location: + row: 3 + column: 69 parent: ~ - kind: name: EndsInPeriod @@ -34,12 +35,13 @@ expression: diagnostics row: 3 column: 72 fix: - content: "." - location: - row: 3 - column: 69 - end_location: - row: 3 - column: 69 + edits: + - content: "." + location: + row: 3 + column: 69 + end_location: + row: 3 + column: 69 parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap index 092c96dde8a487..40ea741fcf0cd8 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_google.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 77 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 98 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 108 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap index 092c96dde8a487..40ea741fcf0cd8 100644 --- a/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap +++ b/crates/ruff/src/rules/pydocstyle/snapshots/ruff__rules__pydocstyle__tests__d417_unspecified.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 14 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 52 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 65 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 77 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 98 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndocumentedParam @@ -117,6 +125,7 @@ expression: diagnostics end_location: row: 108 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap index bf44e0e586158a..c22ff2be05cd13 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 16 fix: - content: import os - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 20 + edits: + - content: import os + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 20 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "from collections import (\n Counter,\n namedtuple,\n)" - location: - row: 4 - column: 0 - end_location: - row: 8 - column: 1 + edits: + - content: "from collections import (\n Counter,\n namedtuple,\n)" + location: + row: 4 + column: 0 + end_location: + row: 8 + column: 1 parent: row: 4 column: 0 @@ -56,13 +58,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ - kind: name: UnusedImport @@ -76,13 +79,14 @@ expression: diagnostics row: 32 column: 17 fix: - content: "" - location: - row: 32 - column: 0 - end_location: - row: 33 - column: 0 + edits: + - content: "" + location: + row: 32 + column: 0 + end_location: + row: 33 + column: 0 parent: ~ - kind: name: UnusedImport @@ -96,13 +100,14 @@ expression: diagnostics row: 33 column: 20 fix: - content: pass - location: - row: 33 - column: 4 - end_location: - row: 33 - column: 20 + edits: + - content: pass + location: + row: 33 + column: 4 + end_location: + row: 33 + column: 20 parent: ~ - kind: name: UnusedImport @@ -116,13 +121,14 @@ expression: diagnostics row: 37 column: 18 fix: - content: "" - location: - row: 37 - column: 0 - end_location: - row: 38 - column: 0 + edits: + - content: "" + location: + row: 37 + column: 0 + end_location: + row: 38 + column: 0 parent: ~ - kind: name: UnusedImport @@ -136,13 +142,14 @@ expression: diagnostics row: 52 column: 21 fix: - content: pass - location: - row: 52 - column: 8 - end_location: - row: 52 - column: 21 + edits: + - content: pass + location: + row: 52 + column: 8 + end_location: + row: 52 + column: 21 parent: ~ - kind: name: UnusedImport @@ -156,13 +163,14 @@ expression: diagnostics row: 93 column: 16 fix: - content: "" - location: - row: 93 - column: 0 - end_location: - row: 94 - column: 0 + edits: + - content: "" + location: + row: 93 + column: 0 + end_location: + row: 94 + column: 0 parent: ~ - kind: name: UnusedImport @@ -176,12 +184,13 @@ expression: diagnostics row: 94 column: 16 fix: - content: pass - location: - row: 94 - column: 8 - end_location: - row: 94 - column: 16 + edits: + - content: pass + location: + row: 94 + column: 8 + end_location: + row: 94 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap index 4cbd0ed01205a1..fe57883496d94a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_10.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedImport @@ -27,12 +28,13 @@ expression: diagnostics row: 15 column: 21 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 0 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap index a5c6b1c42ea9a9..c751046a6f1811 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_11.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 34 fix: - content: from pathlib import Path - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 34 + edits: + - content: from pathlib import Path + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap index 996cba05d72aa2..fdc93c86fa3285 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_5.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 10 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,12 +77,13 @@ expression: diagnostics row: 5 column: 15 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap index 05cc93ce009492..4cdc05670dfae6 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_6.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 39 fix: - content: "" - location: - row: 7 - column: 0 - end_location: - row: 8 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 0 + end_location: + row: 8 + column: 0 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 52 fix: - content: "" - location: - row: 10 - column: 0 - end_location: - row: 11 - column: 0 + edits: + - content: "" + location: + row: 10 + column: 0 + end_location: + row: 11 + column: 0 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 17 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,12 +77,13 @@ expression: diagnostics row: 19 column: 35 fix: - content: "" - location: - row: 19 - column: 0 - end_location: - row: 20 - column: 0 + edits: + - content: "" + location: + row: 19 + column: 0 + end_location: + row: 20 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap index d37c97c8d6b312..26c761165fbf9d 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_7.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 30 column: 9 fix: - content: "from typing import (\n Mapping, # noqa: F401\n )" - location: - row: 28 - column: 0 - end_location: - row: 31 - column: 1 + edits: + - content: "from typing import (\n Mapping, # noqa: F401\n )" + location: + row: 28 + column: 0 + end_location: + row: 31 + column: 1 parent: row: 28 column: 0 @@ -36,13 +37,14 @@ expression: diagnostics row: 66 column: 28 fix: - content: "" - location: - row: 66 - column: 0 - end_location: - row: 67 - column: 0 + edits: + - content: "" + location: + row: 66 + column: 0 + end_location: + row: 67 + column: 0 parent: ~ - kind: name: UnusedImport @@ -56,12 +58,13 @@ expression: diagnostics row: 66 column: 48 fix: - content: "" - location: - row: 66 - column: 0 - end_location: - row: 67 - column: 0 + edits: + - content: "" + location: + row: 66 + column: 0 + end_location: + row: 67 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap index 67906f90eaf753..d982dcdd7b0b8a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F401_F401_9.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 4 column: 24 fix: - content: from foo import bar - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 24 + edits: + - content: from foo import bar + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap index 46f5f7e9d0303a..3bbd7f34192c5b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F402_F402.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ImportShadowedByLoopVar @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap index 9c0e4b471474ac..4c1b2e55f4438c 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F403_F403.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithImportStar @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap index 00540ae80beaa3..7d99889c0e61ff 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F404_F404.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LateFutureImport @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap index 8198af8529214f..fbd55761262538 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F405_F405.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithImportStarUsage @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap index c101ddb0045054..602346a919cb27 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F406_F406.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedLocalWithNestedImportStarUsage @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap index b09a80f9cce76a..c63e5b852ab83e 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F407_F407.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 2 column: 43 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap index db23c4bbbf95de..be184831cb8932 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F501_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap index 6a234ce4d6bd73..77d85cc0f63b93 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F502.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 9 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 11 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 12 column: 37 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedMapping @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 13 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap index 5fbe4c9b6fcc22..43137e94f10c15 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F502_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap index 8d90f66e443fb2..0c9ea1242db11f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F503.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedSequence @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatExpectedSequence @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 23 column: 42 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap index eb9482cd86e614..7ed8501d3f4b21 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F503_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap index 4ce003bf45f3f8..ca3c771a41d447 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F504.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 34 fix: - content: "{a: \"?\", }" - location: - row: 3 - column: 16 - end_location: - row: 3 - column: 34 + edits: + - content: "{a: \"?\", }" + location: + row: 3 + column: 16 + end_location: + row: 3 + column: 34 parent: ~ - kind: name: PercentFormatExtraNamedArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 29 fix: - content: "{\"a\": 1, }" - location: - row: 8 - column: 10 - end_location: - row: 8 - column: 29 + edits: + - content: "{\"a\": 1, }" + location: + row: 8 + column: 10 + end_location: + row: 8 + column: 29 parent: ~ - kind: name: PercentFormatExtraNamedArguments @@ -54,12 +56,13 @@ expression: diagnostics row: 9 column: 29 fix: - content: "{'a': 1, }" - location: - row: 9 - column: 10 - end_location: - row: 9 - column: 29 + edits: + - content: "{'a': 1, }" + location: + row: 9 + column: 10 + end_location: + row: 9 + column: 29 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap index 478a4b27582315..47b9def7ab724d 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F504_F50x.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 32 fix: - content: "{'bar': 1, }" - location: - row: 8 - column: 12 - end_location: - row: 8 - column: 32 + edits: + - content: "{'bar': 1, }" + location: + row: 8 + column: 12 + end_location: + row: 8 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap index c17bd63ad361ab..1920eefef12601 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F505_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap index c0b03a36b927a3..c65ec7342b296e 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F506_F50x.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatMixedPositionalAndNamed @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatMixedPositionalAndNamed @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap index 850e30d4344c9f..c92b4f2762ca5c 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F507_F50x.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PercentFormatPositionalCountMismatch @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 6 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap index 7ec0566b8c3715..f99993fae8a7f4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F508_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 11 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap index 119a6f27630080..7d4cb81e071745 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F509_F50x.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap index 9cc98456441d7c..c08df9397b4377 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F521_F521.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 5 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 7 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 8 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatInvalidFormat @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 9 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap index 3a5f720fceda06..9d67298fc913f6 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F522_F522.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 21 fix: - content: "\"{}\".format(1, )" - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 21 + edits: + - content: "\"{}\".format(1, )" + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 21 parent: ~ - kind: name: StringDotFormatExtraNamedArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 34 fix: - content: "\"{bar}{}\".format(1, bar=2, )" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 34 + edits: + - content: "\"{bar}{}\".format(1, bar=2, )" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 34 parent: ~ - kind: name: StringDotFormatExtraNamedArguments @@ -54,12 +56,13 @@ expression: diagnostics row: 4 column: 51 fix: - content: "\"{bar:{spam}}\".format(bar=2, spam=3, )" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 51 + edits: + - content: "\"{bar:{spam}}\".format(bar=2, spam=3, )" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 51 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap index 1d691a0df0bfef..b2d110a1a61bd5 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F523_F523.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 18 fix: - content: "\"{0}\".format(1, )" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 18 + edits: + - content: "\"{0}\".format(1, )" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 18 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 21 fix: - content: "\"{0}\".format(2, )" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 21 + edits: + - content: "\"{0}\".format(2, )" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 21 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -54,13 +56,14 @@ expression: diagnostics row: 5 column: 25 fix: - content: "\"{1:{0}}\".format(1, 2, )" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 25 + edits: + - content: "\"{1:{0}}\".format(1, 2, )" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 25 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -74,13 +77,14 @@ expression: diagnostics row: 6 column: 21 fix: - content: "\"{0}{2}\".format(1, )" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 21 + edits: + - content: "\"{0}{2}\".format(1, )" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 21 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -94,13 +98,14 @@ expression: diagnostics row: 7 column: 48 fix: - content: "\"{0.arg[1]!r:0{1['arg']}{0}}\".format(2, 3, )" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 48 + edits: + - content: "\"{0.arg[1]!r:0{1['arg']}{0}}\".format(2, 3, )" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 48 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -114,13 +119,14 @@ expression: diagnostics row: 10 column: 17 fix: - content: "\"{}\".format(1, )" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 17 + edits: + - content: "\"{}\".format(1, )" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 17 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -134,13 +140,14 @@ expression: diagnostics row: 11 column: 20 fix: - content: "\"{}\".format(1, )" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 20 + edits: + - content: "\"{}\".format(1, )" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 20 parent: ~ - kind: name: StringDotFormatExtraPositionalArguments @@ -154,12 +161,13 @@ expression: diagnostics row: 13 column: 23 fix: - content: "\"{:{}}\".format(1, 2, )" - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 23 + edits: + - content: "\"{:{}}\".format(1, 2, )" + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap index 223e944fa4f06d..daa2284d21a1a4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F524_F524.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMissingArguments @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap index 174646994ae849..9a33fce1a73adf 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F525_F525.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: StringDotFormatMixingAutomatic @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap index 2b6686884f8442..eb367fd3a379a1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F541_F541.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 10 fix: - content: "\"def\"" - location: - row: 6 - column: 4 - end_location: - row: 6 - column: 10 + edits: + - content: "\"def\"" + location: + row: 6 + column: 4 + end_location: + row: 6 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 10 fix: - content: "\"def\"" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 10 + edits: + - content: "\"def\"" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 10 fix: - content: "\"def\"" - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 10 + edits: + - content: "\"def\"" + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 10 parent: ~ - kind: name: FStringMissingPlaceholders @@ -74,13 +77,14 @@ expression: diagnostics row: 13 column: 8 fix: - content: "\"a\"" - location: - row: 13 - column: 4 - end_location: - row: 13 - column: 8 + edits: + - content: "\"a\"" + location: + row: 13 + column: 4 + end_location: + row: 13 + column: 8 parent: ~ - kind: name: FStringMissingPlaceholders @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 8 fix: - content: "\"b\"" - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 8 + edits: + - content: "\"b\"" + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 8 parent: ~ - kind: name: FStringMissingPlaceholders @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 9 fix: - content: "\"d\"" - location: - row: 16 - column: 5 - end_location: - row: 16 - column: 9 + edits: + - content: "\"d\"" + location: + row: 16 + column: 5 + end_location: + row: 16 + column: 9 parent: ~ - kind: name: FStringMissingPlaceholders @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 9 fix: - content: "r\"e\"" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 9 + edits: + - content: "r\"e\"" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 9 parent: ~ - kind: name: FStringMissingPlaceholders @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 7 fix: - content: "\"\"" - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 7 + edits: + - content: "\"\"" + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 7 parent: ~ - kind: name: FStringMissingPlaceholders @@ -174,13 +182,14 @@ expression: diagnostics row: 25 column: 16 fix: - content: "\"z\"" - location: - row: 25 - column: 12 - end_location: - row: 25 - column: 16 + edits: + - content: "\"z\"" + location: + row: 25 + column: 12 + end_location: + row: 25 + column: 16 parent: ~ - kind: name: FStringMissingPlaceholders @@ -194,13 +203,14 @@ expression: diagnostics row: 34 column: 13 fix: - content: "'0.2f'" - location: - row: 34 - column: 6 - end_location: - row: 34 - column: 13 + edits: + - content: "'0.2f'" + location: + row: 34 + column: 6 + end_location: + row: 34 + column: 13 parent: ~ - kind: name: FStringMissingPlaceholders @@ -214,13 +224,14 @@ expression: diagnostics row: 35 column: 6 fix: - content: "''" - location: - row: 35 - column: 3 - end_location: - row: 35 - column: 6 + edits: + - content: "''" + location: + row: 35 + column: 3 + end_location: + row: 35 + column: 6 parent: ~ - kind: name: FStringMissingPlaceholders @@ -234,13 +245,14 @@ expression: diagnostics row: 36 column: 11 fix: - content: "\"{test}\"" - location: - row: 36 - column: 0 - end_location: - row: 36 - column: 11 + edits: + - content: "\"{test}\"" + location: + row: 36 + column: 0 + end_location: + row: 36 + column: 11 parent: ~ - kind: name: FStringMissingPlaceholders @@ -254,13 +266,14 @@ expression: diagnostics row: 37 column: 11 fix: - content: "'{ 40 }'" - location: - row: 37 - column: 0 - end_location: - row: 37 - column: 11 + edits: + - content: "'{ 40 }'" + location: + row: 37 + column: 0 + end_location: + row: 37 + column: 11 parent: ~ - kind: name: FStringMissingPlaceholders @@ -274,13 +287,14 @@ expression: diagnostics row: 38 column: 12 fix: - content: "\"{a {x}\"" - location: - row: 38 - column: 0 - end_location: - row: 38 - column: 12 + edits: + - content: "\"{a {x}\"" + location: + row: 38 + column: 0 + end_location: + row: 38 + column: 12 parent: ~ - kind: name: FStringMissingPlaceholders @@ -294,12 +308,13 @@ expression: diagnostics row: 39 column: 12 fix: - content: "\"{{x}}\"" - location: - row: 39 - column: 0 - end_location: - row: 39 - column: 12 + edits: + - content: "\"{{x}}\"" + location: + row: 39 + column: 0 + end_location: + row: 39 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap index f47ed6f68a164e..9a946aed81a431 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F601_F601.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 11 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 16 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 17 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -79,13 +84,14 @@ expression: diagnostics row: 18 column: 7 fix: - content: "" - location: - row: 17 - column: 10 - end_location: - row: 18 - column: 10 + edits: + - content: "" + location: + row: 17 + column: 10 + end_location: + row: 18 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -98,7 +104,8 @@ expression: diagnostics end_location: row: 23 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -111,7 +118,8 @@ expression: diagnostics end_location: row: 24 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -125,13 +133,14 @@ expression: diagnostics row: 25 column: 7 fix: - content: "" - location: - row: 24 - column: 10 - end_location: - row: 25 - column: 10 + edits: + - content: "" + location: + row: 24 + column: 10 + end_location: + row: 25 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -144,7 +153,8 @@ expression: diagnostics end_location: row: 26 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -158,13 +168,14 @@ expression: diagnostics row: 31 column: 7 fix: - content: "" - location: - row: 30 - column: 10 - end_location: - row: 31 - column: 10 + edits: + - content: "" + location: + row: 30 + column: 10 + end_location: + row: 31 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -177,7 +188,8 @@ expression: diagnostics end_location: row: 32 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -190,7 +202,8 @@ expression: diagnostics end_location: row: 33 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -203,7 +216,8 @@ expression: diagnostics end_location: row: 34 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -216,7 +230,8 @@ expression: diagnostics end_location: row: 41 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -229,7 +244,8 @@ expression: diagnostics end_location: row: 43 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -243,13 +259,14 @@ expression: diagnostics row: 45 column: 7 fix: - content: "" - location: - row: 44 - column: 8 - end_location: - row: 45 - column: 10 + edits: + - content: "" + location: + row: 44 + column: 8 + end_location: + row: 45 + column: 10 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -263,13 +280,14 @@ expression: diagnostics row: 49 column: 16 fix: - content: "" - location: - row: 49 - column: 11 - end_location: - row: 49 - column: 19 + edits: + - content: "" + location: + row: 49 + column: 11 + end_location: + row: 49 + column: 19 parent: ~ - kind: name: MultiValueRepeatedKeyLiteral @@ -283,12 +301,13 @@ expression: diagnostics row: 50 column: 24 fix: - content: "" - location: - row: 50 - column: 19 - end_location: - row: 50 - column: 27 + edits: + - content: "" + location: + row: 50 + column: 19 + end_location: + row: 50 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap index 305cdf4132fa2c..208fecf663b95b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F602_F602.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 12 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -53,13 +56,14 @@ expression: diagnostics row: 13 column: 5 fix: - content: "" - location: - row: 12 - column: 8 - end_location: - row: 13 - column: 8 + edits: + - content: "" + location: + row: 12 + column: 8 + end_location: + row: 13 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -72,7 +76,8 @@ expression: diagnostics end_location: row: 18 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -85,7 +90,8 @@ expression: diagnostics end_location: row: 19 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -99,13 +105,14 @@ expression: diagnostics row: 20 column: 5 fix: - content: "" - location: - row: 19 - column: 8 - end_location: - row: 20 - column: 8 + edits: + - content: "" + location: + row: 19 + column: 8 + end_location: + row: 20 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -118,7 +125,8 @@ expression: diagnostics end_location: row: 21 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -132,13 +140,14 @@ expression: diagnostics row: 26 column: 5 fix: - content: "" - location: - row: 25 - column: 8 - end_location: - row: 26 - column: 8 + edits: + - content: "" + location: + row: 25 + column: 8 + end_location: + row: 26 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -151,7 +160,8 @@ expression: diagnostics end_location: row: 27 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -164,7 +174,8 @@ expression: diagnostics end_location: row: 28 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -177,7 +188,8 @@ expression: diagnostics end_location: row: 29 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -191,13 +203,14 @@ expression: diagnostics row: 35 column: 5 fix: - content: "" - location: - row: 34 - column: 10 - end_location: - row: 35 - column: 8 + edits: + - content: "" + location: + row: 34 + column: 10 + end_location: + row: 35 + column: 8 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -210,7 +223,8 @@ expression: diagnostics end_location: row: 37 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -223,7 +237,8 @@ expression: diagnostics end_location: row: 39 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -236,7 +251,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -250,13 +266,14 @@ expression: diagnostics row: 44 column: 12 fix: - content: "" - location: - row: 44 - column: 9 - end_location: - row: 44 - column: 15 + edits: + - content: "" + location: + row: 44 + column: 9 + end_location: + row: 44 + column: 15 parent: ~ - kind: name: MultiValueRepeatedKeyVariable @@ -270,12 +287,13 @@ expression: diagnostics row: 45 column: 18 fix: - content: "" - location: - row: 45 - column: 15 - end_location: - row: 45 - column: 21 + edits: + - content: "" + location: + row: 45 + column: 15 + end_location: + row: 45 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap index 60d21ceeb57b57..82fcc60c9ef687 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F622_F622.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap index 658a30b929bdb0..0888401cd7694a 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F631_F631.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap index ca090efb58787f..978f797d1de5c1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F632_F632.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 13 fix: - content: "==" - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 7 + edits: + - content: "==" + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 7 parent: ~ - kind: name: IsLiteral @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "!=" - location: - row: 4 - column: 7 - end_location: - row: 4 - column: 13 + edits: + - content: "!=" + location: + row: 4 + column: 7 + end_location: + row: 4 + column: 13 parent: ~ - kind: name: IsLiteral @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 13 fix: - content: "!=" - location: - row: 7 - column: 7 - end_location: - row: 8 - column: 11 + edits: + - content: "!=" + location: + row: 7 + column: 7 + end_location: + row: 8 + column: 11 parent: ~ - kind: name: IsLiteral @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 17 fix: - content: "==" - location: - row: 11 - column: 9 - end_location: - row: 11 - column: 11 + edits: + - content: "==" + location: + row: 11 + column: 9 + end_location: + row: 11 + column: 11 parent: ~ - kind: name: IsLiteral @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: "==" - location: - row: 14 - column: 14 - end_location: - row: 14 - column: 16 + edits: + - content: "==" + location: + row: 14 + column: 14 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: IsLiteral @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 20 fix: - content: "==" - location: - row: 17 - column: 16 - end_location: - row: 17 - column: 18 + edits: + - content: "==" + location: + row: 17 + column: 16 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: IsLiteral @@ -134,12 +140,13 @@ expression: diagnostics row: 20 column: 19 fix: - content: "==" - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 17 + edits: + - content: "==" + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 17 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap index 143a1ece5752e8..699f6670fedc7e 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F633_F633.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap index d8b5f883fc9b7d..c7933656000a8c 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F634_F634.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: IfTuple @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap index b34152f0905edb..63778de5a09893 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F701_F701.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BreakOutsideLoop @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 23 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap index a99dcce3ea127f..4af49916b297ff 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F702_F702.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 20 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueOutsideLoop @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 23 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap index 19c160ef6c01ca..3fed848e212dcd 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F704_F704.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldOutsideFunction @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 11 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap index 1623807514744a..380245e2ed5b82 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F706_F706.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReturnOutsideFunction @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap index 839fe65c1b7c79..815fb029a9153b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F707_F707.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DefaultExceptNotLast @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 10 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DefaultExceptNotLast @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap index 57bed07018a2d1..f24632e9a6b885 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F722_F722.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ForwardAnnotationSyntaxError @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 13 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap index dcbae234d05ae7..691386a334dea0 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_0.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 10 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap index a25bc30b53c9ce..c8b9cb596ff6f2 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap index 1e4ef1d35f390f..348cf335aaa9be 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_12.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap index bc9a8d525569b3..1f649021dd71a4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_15.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap index fd70244356f9e0..f6e51ff0fd9ebe 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_16.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap index 5ae127d83d75d6..bd17c803fd0cc7 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_17.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedWhileUnused @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap index b521c2d22ba57f..8523de0f76e0b9 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 35 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap index 7f0942c349300d..f378435df7e37d 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_21.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 32 column: 12 - fix: ~ + fix: + edits: [] parent: row: 30 column: 0 diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap index d10e460688256b..81a8a458337e11 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_3.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap index d10e460688256b..81a8a458337e11 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_4.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap index f215f9172a9026..8f882bdbeed40b 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_5.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap index f9ca75790e2175..f35c794fee2848 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_6.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap index ec4d243b9f9910..125bb01955eedf 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F811_F811_8.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 13 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap index 8150eed9051bd6..0e181509d761ac 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 83 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 87 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 90 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 92 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 93 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 115 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 123 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 123 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap index 3169f1650924a7..ba54d1f3a996d7 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 30 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap index 6d7f4ef38f7354..184f2d8ccc2385 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_11.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 18 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 23 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap index 70434005f759ee..6ab5739fb17d15 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_12.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 25 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap index e00249d624a882..044856c82498fd 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_13.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 8 column: 22 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap index 95a0495a9ad9b9..eb0342e45fb8de 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_2.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 17 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap index e7e78cce896a17..ad54e16231bb40 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_3.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap index b67025ac82f721..9f35ed9acab747 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_4.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 24 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap index 1c6d725376822b..6bafbd2fa07fb5 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_5.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap index d6b13983e1ca67..4b97359b43c748 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_7.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 13 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap index 6becc38817e8f6..43b8563d18fe89 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F821_F821_9.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 22 column: 27 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap index c1de83dff06210..cd0f3e6eb4cf43 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_0.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap index c1de83dff06210..cd0f3e6eb4cf43 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F822_F822_1.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap index d03ab14a1833d3..26fc5cd7d055fc 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F823_F823.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap index 8d4deac77ee9b2..b21516447a9dd4 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 17 - end_location: - row: 3 - column: 22 + edits: + - content: "" + location: + row: 3 + column: 17 + end_location: + row: 3 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 8 + edits: + - content: "" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -73,7 +76,8 @@ expression: diagnostics end_location: row: 21 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -86,7 +90,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -100,13 +105,14 @@ expression: diagnostics row: 26 column: 16 fix: - content: "" - location: - row: 26 - column: 13 - end_location: - row: 26 - column: 19 + edits: + - content: "" + location: + row: 26 + column: 13 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: UnusedVariable @@ -120,13 +126,14 @@ expression: diagnostics row: 51 column: 9 fix: - content: pass - location: - row: 51 - column: 8 - end_location: - row: 51 - column: 13 + edits: + - content: pass + location: + row: 51 + column: 8 + end_location: + row: 51 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -140,13 +147,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "" - location: - row: 79 - column: 21 - end_location: - row: 79 - column: 32 + edits: + - content: "" + location: + row: 79 + column: 21 + end_location: + row: 79 + column: 32 parent: ~ - kind: name: UnusedVariable @@ -160,13 +168,14 @@ expression: diagnostics row: 85 column: 31 fix: - content: "" - location: - row: 85 - column: 20 - end_location: - row: 85 - column: 31 + edits: + - content: "" + location: + row: 85 + column: 20 + end_location: + row: 85 + column: 31 parent: ~ - kind: name: UnusedVariable @@ -180,13 +189,14 @@ expression: diagnostics row: 102 column: 8 fix: - content: "" - location: - row: 102 - column: 0 - end_location: - row: 103 - column: 0 + edits: + - content: "" + location: + row: 102 + column: 0 + end_location: + row: 103 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 115 column: 7 fix: - content: "" - location: - row: 115 - column: 4 - end_location: - row: 115 - column: 10 + edits: + - content: "" + location: + row: 115 + column: 4 + end_location: + row: 115 + column: 10 parent: ~ - kind: name: UnusedVariable @@ -219,6 +230,7 @@ expression: diagnostics end_location: row: 122 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap index b5a9eb03e0d3eb..70d3dac7a0862e 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -40,13 +42,14 @@ expression: diagnostics row: 16 column: 19 fix: - content: "" - location: - row: 16 - column: 13 - end_location: - row: 16 - column: 22 + edits: + - content: "" + location: + row: 16 + column: 13 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -60,13 +63,14 @@ expression: diagnostics row: 20 column: 10 fix: - content: "" - location: - row: 20 - column: 4 - end_location: - row: 20 - column: 13 + edits: + - content: "" + location: + row: 20 + column: 4 + end_location: + row: 20 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -79,7 +83,8 @@ expression: diagnostics end_location: row: 24 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -92,7 +97,8 @@ expression: diagnostics end_location: row: 24 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -105,7 +111,8 @@ expression: diagnostics end_location: row: 24 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -118,6 +125,7 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap index ef855b950c52d0..45a5cd9bb0329f 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F841_F841_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 5 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 5 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 5 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 5 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -94,13 +98,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "" - location: - row: 21 - column: 14 - end_location: - row: 21 - column: 20 + edits: + - content: "" + location: + row: 21 + column: 14 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnusedVariable @@ -114,13 +119,14 @@ expression: diagnostics row: 27 column: 21 fix: - content: "" - location: - row: 27 - column: 15 - end_location: - row: 27 - column: 21 + edits: + - content: "" + location: + row: 27 + column: 15 + end_location: + row: 27 + column: 21 parent: ~ - kind: name: UnusedVariable @@ -134,13 +140,14 @@ expression: diagnostics row: 27 column: 34 fix: - content: "" - location: - row: 27 - column: 28 - end_location: - row: 27 - column: 34 + edits: + - content: "" + location: + row: 27 + column: 28 + end_location: + row: 27 + column: 34 parent: ~ - kind: name: UnusedVariable @@ -154,13 +161,14 @@ expression: diagnostics row: 27 column: 47 fix: - content: "" - location: - row: 27 - column: 41 - end_location: - row: 27 - column: 47 + edits: + - content: "" + location: + row: 27 + column: 41 + end_location: + row: 27 + column: 47 parent: ~ - kind: name: UnusedVariable @@ -173,7 +181,8 @@ expression: diagnostics end_location: row: 32 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -186,7 +195,8 @@ expression: diagnostics end_location: row: 32 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 33 column: 22 fix: - content: "" - location: - row: 33 - column: 15 - end_location: - row: 33 - column: 25 + edits: + - content: "" + location: + row: 33 + column: 15 + end_location: + row: 33 + column: 25 parent: ~ - kind: name: UnusedVariable @@ -220,13 +231,14 @@ expression: diagnostics row: 34 column: 11 fix: - content: "" - location: - row: 34 - column: 4 - end_location: - row: 34 - column: 14 + edits: + - content: "" + location: + row: 34 + column: 4 + end_location: + row: 34 + column: 14 parent: ~ - kind: name: UnusedVariable @@ -240,13 +252,14 @@ expression: diagnostics row: 40 column: 27 fix: - content: "" - location: - row: 40 - column: 21 - end_location: - row: 40 - column: 27 + edits: + - content: "" + location: + row: 40 + column: 21 + end_location: + row: 40 + column: 27 parent: ~ - kind: name: UnusedVariable @@ -260,13 +273,14 @@ expression: diagnostics row: 45 column: 48 fix: - content: "" - location: - row: 45 - column: 42 - end_location: - row: 45 - column: 48 + edits: + - content: "" + location: + row: 45 + column: 42 + end_location: + row: 45 + column: 48 parent: ~ - kind: name: UnusedVariable @@ -280,13 +294,14 @@ expression: diagnostics row: 50 column: 5 fix: - content: "" - location: - row: 50 - column: 4 - end_location: - row: 50 - column: 8 + edits: + - content: "" + location: + row: 50 + column: 4 + end_location: + row: 50 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -300,13 +315,14 @@ expression: diagnostics row: 56 column: 5 fix: - content: "" - location: - row: 56 - column: 4 - end_location: - row: 57 - column: 8 + edits: + - content: "" + location: + row: 56 + column: 4 + end_location: + row: 57 + column: 8 parent: ~ - kind: name: UnusedVariable @@ -320,13 +336,14 @@ expression: diagnostics row: 61 column: 5 fix: - content: pass - location: - row: 61 - column: 4 - end_location: - row: 65 - column: 5 + edits: + - content: pass + location: + row: 61 + column: 4 + end_location: + row: 65 + column: 5 parent: ~ - kind: name: UnusedVariable @@ -340,13 +357,14 @@ expression: diagnostics row: 67 column: 5 fix: - content: "" - location: - row: 67 - column: 0 - end_location: - row: 69 - column: 0 + edits: + - content: "" + location: + row: 67 + column: 0 + end_location: + row: 69 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -360,13 +378,14 @@ expression: diagnostics row: 72 column: 25 fix: - content: "" - location: - row: 72 - column: 18 - end_location: - row: 72 - column: 26 + edits: + - content: "" + location: + row: 72 + column: 18 + end_location: + row: 72 + column: 26 parent: ~ - kind: name: UnusedVariable @@ -380,13 +399,14 @@ expression: diagnostics row: 77 column: 26 fix: - content: "" - location: - row: 77 - column: 19 - end_location: - row: 77 - column: 27 + edits: + - content: "" + location: + row: 77 + column: 19 + end_location: + row: 77 + column: 27 parent: ~ - kind: name: UnusedVariable @@ -400,13 +420,14 @@ expression: diagnostics row: 87 column: 12 fix: - content: "" - location: - row: 87 - column: 4 - end_location: - row: 87 - column: 15 + edits: + - content: "" + location: + row: 87 + column: 4 + end_location: + row: 87 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -420,13 +441,14 @@ expression: diagnostics row: 93 column: 12 fix: - content: "" - location: - row: 93 - column: 4 - end_location: - row: 93 - column: 15 + edits: + - content: "" + location: + row: 93 + column: 4 + end_location: + row: 93 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -440,13 +462,14 @@ expression: diagnostics row: 93 column: 17 fix: - content: "" - location: - row: 93 - column: 15 - end_location: - row: 93 - column: 20 + edits: + - content: "" + location: + row: 93 + column: 15 + end_location: + row: 93 + column: 20 parent: ~ - kind: name: UnusedVariable @@ -460,13 +483,14 @@ expression: diagnostics row: 97 column: 12 fix: - content: "" - location: - row: 97 - column: 4 - end_location: - row: 97 - column: 15 + edits: + - content: "" + location: + row: 97 + column: 4 + end_location: + row: 97 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -480,13 +504,14 @@ expression: diagnostics row: 101 column: 21 fix: - content: "" - location: - row: 101 - column: 13 - end_location: - row: 101 - column: 24 + edits: + - content: "" + location: + row: 101 + column: 13 + end_location: + row: 101 + column: 24 parent: ~ - kind: name: UnusedVariable @@ -500,13 +525,14 @@ expression: diagnostics row: 105 column: 12 fix: - content: "" - location: - row: 105 - column: 4 - end_location: - row: 105 - column: 15 + edits: + - content: "" + location: + row: 105 + column: 4 + end_location: + row: 105 + column: 15 parent: ~ - kind: name: UnusedVariable @@ -520,12 +546,13 @@ expression: diagnostics row: 105 column: 17 fix: - content: "" - location: - row: 105 - column: 15 - end_location: - row: 105 - column: 20 + edits: + - content: "" + location: + row: 105 + column: 15 + end_location: + row: 105 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap index 1c19b4677d3018..c91b70138adff6 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F842_F842.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedAnnotation @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap index 5946d80c9ddb9b..f8f8af07323fe1 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__F901_F901.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 24 fix: - content: NotImplementedError - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 24 + edits: + - content: NotImplementedError + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 24 parent: ~ - kind: name: RaiseNotImplemented @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 24 fix: - content: NotImplementedError - location: - row: 6 - column: 10 - end_location: - row: 6 - column: 24 + edits: + - content: NotImplementedError + location: + row: 6 + column: 10 + end_location: + row: 6 + column: 24 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap index 0892fb0e1bda50..14a66e16b14d99 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_builtins.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 1 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap index 5cbd5b323f0391..97f8d198f7e066 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__default_typing_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 37 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap index 0ed26ac2746a4d..c4f66b74873cfc 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__extra_typing_modules.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 7 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap index 51757829ed1182..794babbdc22682 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__f841_dummy_variable_rgx.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 22 fix: - content: "" - location: - row: 3 - column: 17 - end_location: - row: 3 - column: 22 + edits: + - content: "" + location: + row: 3 + column: 17 + end_location: + row: 3 + column: 22 parent: ~ - kind: name: UnusedVariable @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 7 fix: - content: "" - location: - row: 20 - column: 0 - end_location: - row: 21 - column: 0 + edits: + - content: "" + location: + row: 20 + column: 0 + end_location: + row: 21 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -53,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -66,7 +69,8 @@ expression: diagnostics end_location: row: 21 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedVariable @@ -80,13 +84,14 @@ expression: diagnostics row: 26 column: 16 fix: - content: "" - location: - row: 26 - column: 13 - end_location: - row: 26 - column: 19 + edits: + - content: "" + location: + row: 26 + column: 13 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: UnusedVariable @@ -100,13 +105,14 @@ expression: diagnostics row: 35 column: 5 fix: - content: "" - location: - row: 35 - column: 0 - end_location: - row: 36 - column: 0 + edits: + - content: "" + location: + row: 35 + column: 0 + end_location: + row: 36 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -120,13 +126,14 @@ expression: diagnostics row: 36 column: 6 fix: - content: "" - location: - row: 36 - column: 0 - end_location: - row: 37 - column: 0 + edits: + - content: "" + location: + row: 36 + column: 0 + end_location: + row: 37 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -140,13 +147,14 @@ expression: diagnostics row: 37 column: 14 fix: - content: pass - location: - row: 37 - column: 4 - end_location: - row: 37 - column: 18 + edits: + - content: pass + location: + row: 37 + column: 4 + end_location: + row: 37 + column: 18 parent: ~ - kind: name: UnusedVariable @@ -160,13 +168,14 @@ expression: diagnostics row: 51 column: 9 fix: - content: pass - location: - row: 51 - column: 8 - end_location: - row: 51 - column: 13 + edits: + - content: pass + location: + row: 51 + column: 8 + end_location: + row: 51 + column: 13 parent: ~ - kind: name: UnusedVariable @@ -180,13 +189,14 @@ expression: diagnostics row: 79 column: 32 fix: - content: "" - location: - row: 79 - column: 21 - end_location: - row: 79 - column: 32 + edits: + - content: "" + location: + row: 79 + column: 21 + end_location: + row: 79 + column: 32 parent: ~ - kind: name: UnusedVariable @@ -200,13 +210,14 @@ expression: diagnostics row: 85 column: 31 fix: - content: "" - location: - row: 85 - column: 20 - end_location: - row: 85 - column: 31 + edits: + - content: "" + location: + row: 85 + column: 20 + end_location: + row: 85 + column: 31 parent: ~ - kind: name: UnusedVariable @@ -220,13 +231,14 @@ expression: diagnostics row: 102 column: 8 fix: - content: "" - location: - row: 102 - column: 0 - end_location: - row: 103 - column: 0 + edits: + - content: "" + location: + row: 102 + column: 0 + end_location: + row: 103 + column: 0 parent: ~ - kind: name: UnusedVariable @@ -240,13 +252,14 @@ expression: diagnostics row: 115 column: 7 fix: - content: "" - location: - row: 115 - column: 4 - end_location: - row: 115 - column: 10 + edits: + - content: "" + location: + row: 115 + column: 4 + end_location: + row: 115 + column: 10 parent: ~ - kind: name: UnusedVariable @@ -259,6 +272,7 @@ expression: diagnostics end_location: row: 122 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap index 2702ad271096b5..ad4f44813367c5 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__future_annotations.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 8 column: 7 fix: - content: "from models import (\n Fruit,\n)" - location: - row: 6 - column: 0 - end_location: - row: 9 - column: 1 + edits: + - content: "from models import (\n Fruit,\n)" + location: + row: 6 + column: 0 + end_location: + row: 9 + column: 1 parent: row: 6 column: 0 @@ -35,6 +36,7 @@ expression: diagnostics end_location: row: 26 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap index bf90f48fa7be66..f86b19ea6563bf 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__multi_statement_lines.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: "" - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 17 + edits: + - content: "" + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 17 parent: ~ - kind: name: UnusedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "" - location: - row: 4 - column: 4 - end_location: - row: 4 - column: 21 + edits: + - content: "" + location: + row: 4 + column: 4 + end_location: + row: 4 + column: 21 parent: ~ - kind: name: UnusedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "" - location: - row: 7 - column: 4 - end_location: - row: 8 - column: 0 + edits: + - content: "" + location: + row: 7 + column: 4 + end_location: + row: 8 + column: 0 parent: ~ - kind: name: UnusedImport @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: "" - location: - row: 11 - column: 4 - end_location: - row: 12 - column: 10 + edits: + - content: "" + location: + row: 11 + column: 4 + end_location: + row: 12 + column: 10 parent: ~ - kind: name: UnusedImport @@ -94,13 +98,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: "" - location: - row: 16 - column: 11 - end_location: - row: 16 - column: 22 + edits: + - content: "" + location: + row: 16 + column: 11 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: UnusedImport @@ -114,13 +119,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "" - location: - row: 21 - column: 9 - end_location: - row: 21 - column: 20 + edits: + - content: "" + location: + row: 21 + column: 9 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnusedImport @@ -134,13 +140,14 @@ expression: diagnostics row: 26 column: 21 fix: - content: "" - location: - row: 26 - column: 10 - end_location: - row: 26 - column: 21 + edits: + - content: "" + location: + row: 26 + column: 10 + end_location: + row: 26 + column: 21 parent: ~ - kind: name: UnusedImport @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 22 fix: - content: "" - location: - row: 30 - column: 11 - end_location: - row: 30 - column: 24 + edits: + - content: "" + location: + row: 30 + column: 11 + end_location: + row: 30 + column: 24 parent: ~ - kind: name: UnusedImport @@ -174,13 +182,14 @@ expression: diagnostics row: 31 column: 26 fix: - content: "" - location: - row: 31 - column: 15 - end_location: - row: 31 - column: 32 + edits: + - content: "" + location: + row: 31 + column: 15 + end_location: + row: 31 + column: 32 parent: ~ - kind: name: UnusedImport @@ -194,13 +203,14 @@ expression: diagnostics row: 35 column: 20 fix: - content: "" - location: - row: 35 - column: 8 - end_location: - row: 36 - column: 4 + edits: + - content: "" + location: + row: 35 + column: 8 + end_location: + row: 36 + column: 4 parent: ~ - kind: name: UnusedImport @@ -214,13 +224,14 @@ expression: diagnostics row: 40 column: 21 fix: - content: "" - location: - row: 40 - column: 9 - end_location: - row: 41 - column: 9 + edits: + - content: "" + location: + row: 40 + column: 9 + end_location: + row: 41 + column: 9 parent: ~ - kind: name: UnusedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 46 column: 12 fix: - content: "" - location: - row: 46 - column: 0 - end_location: - row: 46 - column: 12 + edits: + - content: "" + location: + row: 46 + column: 0 + end_location: + row: 46 + column: 12 parent: ~ - kind: name: UnusedImport @@ -254,12 +266,13 @@ expression: diagnostics row: 51 column: 12 fix: - content: "" - location: - row: 51 - column: 0 - end_location: - row: 51 - column: 12 + edits: + - content: "" + location: + row: 51 + column: 0 + end_location: + row: 51 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap index 8a4902f8b8e5b5..d2a19041eff940 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__nested_relative_typing_module.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 26 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UndefinedName @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 33 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap index 70838b4e4bfdbf..257d6a3522b617 100644 --- a/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap +++ b/crates/ruff/src/rules/pyflakes/snapshots/ruff__rules__pyflakes__tests__relative_typing_module.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 26 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap index 2261bf5cefb966..2a7669ea95b1ab 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH001_PGH001_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: Eval @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap index d9bbc05eb8e8c2..df44521c29e5a4 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH002_PGH002_1.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedLogWarn @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap index 7fac68accaca83..6d70be4101ffed 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH003_PGH003_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketTypeIgnore @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketTypeIgnore @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 3 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap index f0580d91713925..355070d6460ed9 100644 --- a/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap +++ b/crates/ruff/src/rules/pygrep_hooks/snapshots/ruff__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 4 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 5 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BlanketNOQA @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap index 8f1b751fd60a5c..d59d525183243a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC0414_import_aliasing.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 33 fix: - content: collections - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 33 + edits: + - content: collections + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 33 parent: ~ - kind: name: UselessImportAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 50 fix: - content: OrderedDict - location: - row: 7 - column: 24 - end_location: - row: 7 - column: 50 + edits: + - content: OrderedDict + location: + row: 7 + column: 24 + end_location: + row: 7 + column: 50 parent: ~ - kind: name: UselessImportAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 24 fix: - content: bar - location: - row: 16 - column: 14 - end_location: - row: 16 - column: 24 + edits: + - content: bar + location: + row: 16 + column: 14 + end_location: + row: 16 + column: 24 parent: ~ - kind: name: UselessImportAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 28 fix: - content: bar - location: - row: 19 - column: 18 - end_location: - row: 19 - column: 28 + edits: + - content: bar + location: + row: 19 + column: 18 + end_location: + row: 19 + column: 28 parent: ~ - kind: name: UselessImportAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 20 column: 38 fix: - content: foobar - location: - row: 20 - column: 22 - end_location: - row: 20 - column: 38 + edits: + - content: foobar + location: + row: 20 + column: 22 + end_location: + row: 20 + column: 38 parent: ~ - kind: name: UselessImportAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 22 column: 24 fix: - content: foo - location: - row: 22 - column: 14 - end_location: - row: 22 - column: 24 + edits: + - content: foo + location: + row: 22 + column: 14 + end_location: + row: 22 + column: 24 parent: ~ - kind: name: UselessImportAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 23 column: 38 fix: - content: foo2 - location: - row: 23 - column: 26 - end_location: - row: 23 - column: 38 + edits: + - content: foo2 + location: + row: 23 + column: 26 + end_location: + row: 23 + column: 38 parent: ~ - kind: name: UselessImportAlias @@ -154,12 +161,13 @@ expression: diagnostics row: 25 column: 36 fix: - content: foobar - location: - row: 25 - column: 20 - end_location: - row: 25 - column: 36 + edits: + - content: foobar + location: + row: 25 + column: 20 + end_location: + row: 25 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap index 22a19ceab507fa..2c80effe31da3e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC1901_compare_to_empty_string.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 10 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 10 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CompareToEmptyString @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 13 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap index 2ab715103fc640..757b0cfc7c9cdc 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLC3002_unnecessary_direct_lambda_call.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 4 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDirectLambdaCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnnecessaryDirectLambdaCall @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 5 column: 47 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap index b8d866d607af9a..c0e73b22889861 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0100_yield_in_init.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: YieldInInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 14 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap index 286a00647fe3bf..6695ca7774b52a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0101_return_in_init.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 14 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReturnInInit @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 22 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap index 4105992e109505..851f00db374723 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0117_nonlocal_without_binding.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonlocalWithoutBinding @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 9 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonlocalWithoutBinding @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 19 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap index 068b1e22a89482..b7354a3ef04a3c 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0118_load_before_global_declaration.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 15 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 23 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 33 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 41 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 51 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 59 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 69 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 77 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 87 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 95 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 105 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoadBeforeGlobalDeclaration @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 113 column: 14 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap index c0f2133f35ca7e..393722042144f2 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0604_invalid_all_object.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllObject @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap index c6809415275514..ce7ad4de9bb86f 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE0605_invalid_all_format.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 3 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 5 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 9 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 11 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 13 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidAllFormat @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 15 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap index 54a6caa18b6dee..9f100344902fc4 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1142_await_outside_async.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AwaitOutsideAsync @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 25 column: 30 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap index 3dfe66d1063871..4f2f58a8a50e56 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1205_logging_too_many_args.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LoggingTooManyArgs @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 5 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap index ef42fd67182412..ceb943c0492064 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1206_logging_too_few_args.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 3 column: 15 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap index 84aeb65de1c9e6..2e86704030018a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1307_bad_string_format_type.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 58 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 4 column: 26 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 7 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 8 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 9 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 10 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 12 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 13 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 14 column: 34 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStringFormatType @@ -143,6 +153,7 @@ expression: diagnostics end_location: row: 15 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap index a9045f4a832f6d..e859c7f071102e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1310_bad_str_strip_call.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 11 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 14 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 17 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 20 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 26 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 32 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 38 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 44 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 51 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 61 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 64 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BadStrStripCall @@ -208,6 +223,7 @@ expression: diagnostics end_location: row: 67 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap index 632fa3450696b0..fbb3b59dfcd30a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE1507_invalid_envvar_value.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 11 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 7 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 8 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarValue @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap index dd70149cc774a6..45de6616d4ec59 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2502_bidirectional_unicode.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 0 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BidirectionalUnicode @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 15 column: 0 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap index af015497f03dec..f32d9c253dd191 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2510_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 15 column: 6 fix: - content: "\\b" - location: - row: 15 - column: 5 - end_location: - row: 15 - column: 6 + edits: + - content: "\\b" + location: + row: 15 + column: 5 + end_location: + row: 15 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap index e561dfd916f716..35ef7abf4c79ff 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2512_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 21 column: 12 fix: - content: "\\x1A" - location: - row: 21 - column: 11 - end_location: - row: 21 - column: 12 + edits: + - content: "\\x1A" + location: + row: 21 + column: 11 + end_location: + row: 21 + column: 12 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap index e4d3f36871ff68..b59d93903ea366 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2513_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 25 column: 16 fix: - content: "\\x1B" - location: - row: 25 - column: 15 - end_location: - row: 25 - column: 16 + edits: + - content: "\\x1B" + location: + row: 25 + column: 15 + end_location: + row: 25 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap index ee1ad0847a9457..6f4ea050a486e7 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2514_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 30 column: 5 fix: - content: "\\0" - location: - row: 30 - column: 4 - end_location: - row: 30 - column: 5 + edits: + - content: "\\0" + location: + row: 30 + column: 4 + end_location: + row: 30 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap index b084eedd58f1cc..4bc299394025f5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLE2515_invalid_characters.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 13 fix: - content: "\\u200b" - location: - row: 34 - column: 12 - end_location: - row: 34 - column: 13 + edits: + - content: "\\u200b" + location: + row: 34 + column: 12 + end_location: + row: 34 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap index ddef7164e99085..07a710eabb02be 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0133_comparison_of_constant.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 6 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 9 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 13 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 23 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 29 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 35 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 41 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 51 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ComparisonOfConstant @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 58 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap index f181a1f07b24aa..54ccfacf8b4d14 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0206_property_with_parameters.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PropertyWithParameters @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PropertyWithParameters @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 15 column: 33 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap index 913c22ba60fb50..517e4fa4946df2 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0402_import_aliasing.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 22 fix: - content: from os import path - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 22 + edits: + - content: from os import path + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 22 parent: ~ - kind: name: ManualFromImport @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 31 fix: - content: from foo.bar import foobar - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 31 + edits: + - content: from foo.bar import foobar + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 31 parent: ~ - kind: name: ManualFromImport @@ -53,6 +55,7 @@ expression: diagnostics end_location: row: 12 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap index b5380f2bc8af10..e3beb188df07a0 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0911_too_many_return_statements.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 4 column: 19 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap index d5f086b68fc746..07345560b7d566 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0912_too_many_branches.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 6 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap index 322ae7535f6442..43394e2d32732d 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0913_too_many_arguments.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 33 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap index b2400d3d11c040..a7aedded427a6e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR0915_too_many_statements.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 5 column: 11 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap index 23b0e7f2a14573..286b680ee7c183 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1701_repeated_isinstance_calls.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 96 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 103 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 19 column: 73 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 23 column: 158 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 24 column: 95 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RepeatedIsinstanceCalls @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 30 column: 75 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap index 4ef84cbe8fb75c..372b6e9a407ba5 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1711_useless_return.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ - kind: name: UselessReturn @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 15 fix: - content: "" - location: - row: 11 - column: 0 - end_location: - row: 12 - column: 0 + edits: + - content: "" + location: + row: 11 + column: 0 + end_location: + row: 12 + column: 0 parent: ~ - kind: name: UselessReturn @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 15 fix: - content: "" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 0 + edits: + - content: "" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 0 parent: ~ - kind: name: UselessReturn @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 19 fix: - content: "" - location: - row: 22 - column: 0 - end_location: - row: 23 - column: 0 + edits: + - content: "" + location: + row: 22 + column: 0 + end_location: + row: 23 + column: 0 parent: ~ - kind: name: UselessReturn @@ -94,13 +98,14 @@ expression: diagnostics row: 50 column: 15 fix: - content: "" - location: - row: 50 - column: 0 - end_location: - row: 51 - column: 0 + edits: + - content: "" + location: + row: 50 + column: 0 + end_location: + row: 51 + column: 0 parent: ~ - kind: name: UselessReturn @@ -114,12 +119,13 @@ expression: diagnostics row: 60 column: 19 fix: - content: "" - location: - row: 60 - column: 0 - end_location: - row: 61 - column: 0 + edits: + - content: "" + location: + row: 60 + column: 0 + end_location: + row: 61 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap index 22d0407e3c8a30..1ac50fdd49fd5a 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_0.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 2 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 7 column: 8 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap index 6a63792286b09d..9194663f6cb258 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: sys.exit - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: sys.exit + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: sys.exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: sys.exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: sys.exit - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: sys.exit + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: sys.exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: sys.exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap index 70d0d1bfb7adb0..aaae64b9832658 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: sys2.exit - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: sys2.exit + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: sys2.exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: sys2.exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: sys2.exit - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: sys2.exit + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: sys2.exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: sys2.exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap index ce71f751f25054..7f8d276fc96eac 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap index 8d0d1c486b0df4..73ad483c429046 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_4.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 4 fix: - content: exit2 - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 4 + edits: + - content: exit2 + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit2 - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit2 + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 8 fix: - content: exit2 - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 8 + edits: + - content: exit2 + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 8 parent: ~ - kind: name: SysExitAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit2 - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit2 + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap index ce71f751f25054..7f8d276fc96eac 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_5.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 4 fix: - content: exit - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 4 + edits: + - content: exit + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 4 parent: ~ - kind: name: SysExitAlias @@ -34,12 +35,13 @@ expression: diagnostics row: 9 column: 8 fix: - content: exit - location: - row: 9 - column: 4 - end_location: - row: 9 - column: 8 + edits: + - content: exit + location: + row: 9 + column: 4 + end_location: + row: 9 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap index 01c3275d9b62e6..1f55fd9ccf21c7 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR1722_sys_exit_alias_6.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 1 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: SysExitAlias @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 2 column: 4 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap index 2fc6598d5a43ea..640f5591245b8b 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR2004_magic_value_comparison.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 38 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 41 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 44 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -65,6 +69,7 @@ expression: diagnostics end_location: row: 65 column: 40 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap index cd5b71bb71df89..f898548cf711b4 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLR5501_collapsible_else_if.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 39 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollapsibleElseIf @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 49 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap index 47d9afeaba29f9..a47a699ea6cb97 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0120_useless_else_on_loop.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 37 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 42 column: 4 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 88 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UselessElseOnLoop @@ -91,6 +97,7 @@ expression: diagnostics end_location: row: 98 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap index 581a8edff6837f..c54a5c294843c0 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0129_assert_on_string_literal.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 12 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 14 column: 22 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 17 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 18 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 19 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 20 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 21 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 22 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AssertOnStringLiteral @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 23 column: 20 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap index 7b67d36f4ed53d..0f5623398aad4e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0602_global_variable_not_assigned.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalVariableNotAssigned @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 12 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap index 40bcbf8e9982fd..9c1349aba27512 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0603_global_statement.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 17 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 24 column: 14 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 21 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 36 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 43 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 50 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 60 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: GlobalStatement @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 70 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap index 21e7211e117859..8b8ae4cf14da9c 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW0711_binary_op_exception.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: BinaryOpException @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 8 column: 39 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap index 2561e3db083b79..11c3f79d77dc70 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW1508_invalid_envvar_default.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 5 column: 38 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 6 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: InvalidEnvvarDefault @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 10 column: 26 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap index e95084fe18dba9..036ca9e2f3422f 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__PLW2901_redefined_loop_name.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 13 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 18 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 34 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 40 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 41 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 46 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 50 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 54 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 58 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 63 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 68 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 73 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 78 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 78 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 95 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 112 column: 13 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 118 column: 17 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 133 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 138 column: 10 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 143 column: 7 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 148 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 153 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RedefinedLoopName @@ -325,6 +349,7 @@ expression: diagnostics end_location: row: 155 column: 7 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap index 5c3725765a9456..c1bdd8baa13d0b 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__allow_magic_value_types.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 59 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 65 column: 40 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: MagicValueComparison @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 74 column: 29 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap index 37b29557b8a27b..014a69457223d2 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__continue_in_finally.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 5 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 16 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 26 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 33 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 40 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 41 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 49 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 56 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 69 column: 16 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 74 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 89 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 91 column: 20 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ContinueInFinally @@ -169,6 +181,7 @@ expression: diagnostics end_location: row: 95 column: 24 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap index 403cd755a15125..52e6f0a22a2aef 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 3 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyArguments @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap index aabf525484bb2b..1f61aac3883520 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_args_with_dummy_variables.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 9 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap index 5861ab0c68bc99..103c90283679ce 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_branches.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyBranches @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 15 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap index a670693bf4a5c5..7ff3ae63343d50 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_return_statements.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 1 column: 5 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap index 67f07d53037b6d..990ddd90ffe30e 100644 --- a/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap +++ b/crates/ruff/src/rules/pylint/snapshots/ruff__rules__pylint__tests__max_statements.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 2 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyStatements @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 6 column: 5 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TooManyStatements @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 7 column: 9 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap index 0916a7073a8137..9fd965be8b66bb 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP001.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 24 fix: - content: pass - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 24 + edits: + - content: pass + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 24 parent: ~ - kind: name: UselessMetaclassType @@ -34,12 +35,13 @@ expression: diagnostics row: 6 column: 24 fix: - content: "" - location: - row: 6 - column: 0 - end_location: - row: 7 - column: 0 + edits: + - content: "" + location: + row: 6 + column: 0 + end_location: + row: 7 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap index 1957ca50ad02fe..3d1df34baa1e42 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP003.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 8 fix: - content: str - location: - row: 1 - column: 0 - end_location: - row: 1 - column: 8 + edits: + - content: str + location: + row: 1 + column: 0 + end_location: + row: 1 + column: 8 parent: ~ - kind: name: TypeOfPrimitive @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 9 fix: - content: bytes - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 9 + edits: + - content: bytes + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 9 parent: ~ - kind: name: TypeOfPrimitive @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 7 fix: - content: int - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 7 + edits: + - content: int + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 7 parent: ~ - kind: name: TypeOfPrimitive @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 9 fix: - content: float - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 9 + edits: + - content: float + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 9 parent: ~ - kind: name: TypeOfPrimitive @@ -94,12 +98,13 @@ expression: diagnostics row: 5 column: 8 fix: - content: complex - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 8 + edits: + - content: complex + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap index 451a6e89fcde0a..432c0890010461 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP004.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 14 fix: - content: "" - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 15 + edits: + - content: "" + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: UselessObjectInheritance @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 10 fix: - content: "" - location: - row: 9 - column: 7 - end_location: - row: 11 - column: 1 + edits: + - content: "" + location: + row: 9 + column: 7 + end_location: + row: 11 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 10 fix: - content: "" - location: - row: 15 - column: 7 - end_location: - row: 18 - column: 1 + edits: + - content: "" + location: + row: 15 + column: 7 + end_location: + row: 18 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 10 fix: - content: "" - location: - row: 22 - column: 7 - end_location: - row: 25 - column: 1 + edits: + - content: "" + location: + row: 22 + column: 7 + end_location: + row: 25 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -94,13 +98,14 @@ expression: diagnostics row: 31 column: 10 fix: - content: "" - location: - row: 29 - column: 7 - end_location: - row: 32 - column: 1 + edits: + - content: "" + location: + row: 29 + column: 7 + end_location: + row: 32 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -114,13 +119,14 @@ expression: diagnostics row: 37 column: 10 fix: - content: "" - location: - row: 36 - column: 7 - end_location: - row: 39 - column: 1 + edits: + - content: "" + location: + row: 36 + column: 7 + end_location: + row: 39 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -134,13 +140,14 @@ expression: diagnostics row: 45 column: 10 fix: - content: "" - location: - row: 43 - column: 7 - end_location: - row: 47 - column: 1 + edits: + - content: "" + location: + row: 43 + column: 7 + end_location: + row: 47 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -154,13 +161,14 @@ expression: diagnostics row: 53 column: 10 fix: - content: "" - location: - row: 51 - column: 7 - end_location: - row: 55 - column: 1 + edits: + - content: "" + location: + row: 51 + column: 7 + end_location: + row: 55 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -174,13 +182,14 @@ expression: diagnostics row: 61 column: 10 fix: - content: "" - location: - row: 59 - column: 7 - end_location: - row: 63 - column: 1 + edits: + - content: "" + location: + row: 59 + column: 7 + end_location: + row: 63 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -194,13 +203,14 @@ expression: diagnostics row: 69 column: 10 fix: - content: "" - location: - row: 67 - column: 7 - end_location: - row: 71 - column: 1 + edits: + - content: "" + location: + row: 67 + column: 7 + end_location: + row: 71 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -214,13 +224,14 @@ expression: diagnostics row: 75 column: 17 fix: - content: "" - location: - row: 75 - column: 9 - end_location: - row: 75 - column: 17 + edits: + - content: "" + location: + row: 75 + column: 9 + end_location: + row: 75 + column: 17 parent: ~ - kind: name: UselessObjectInheritance @@ -234,13 +245,14 @@ expression: diagnostics row: 79 column: 14 fix: - content: "" - location: - row: 79 - column: 8 - end_location: - row: 79 - column: 16 + edits: + - content: "" + location: + row: 79 + column: 8 + end_location: + row: 79 + column: 16 parent: ~ - kind: name: UselessObjectInheritance @@ -254,13 +266,14 @@ expression: diagnostics row: 84 column: 10 fix: - content: "" - location: - row: 84 - column: 4 - end_location: - row: 85 - column: 4 + edits: + - content: "" + location: + row: 84 + column: 4 + end_location: + row: 85 + column: 4 parent: ~ - kind: name: UselessObjectInheritance @@ -274,13 +287,14 @@ expression: diagnostics row: 92 column: 10 fix: - content: "" - location: - row: 91 - column: 5 - end_location: - row: 92 - column: 10 + edits: + - content: "" + location: + row: 91 + column: 5 + end_location: + row: 92 + column: 10 parent: ~ - kind: name: UselessObjectInheritance @@ -294,13 +308,14 @@ expression: diagnostics row: 98 column: 10 fix: - content: "" - location: - row: 98 - column: 4 - end_location: - row: 99 - column: 4 + edits: + - content: "" + location: + row: 98 + column: 4 + end_location: + row: 99 + column: 4 parent: ~ - kind: name: UselessObjectInheritance @@ -314,13 +329,14 @@ expression: diagnostics row: 108 column: 10 fix: - content: "" - location: - row: 107 - column: 5 - end_location: - row: 108 - column: 10 + edits: + - content: "" + location: + row: 107 + column: 5 + end_location: + row: 108 + column: 10 parent: ~ - kind: name: UselessObjectInheritance @@ -334,13 +350,14 @@ expression: diagnostics row: 114 column: 18 fix: - content: "" - location: - row: 114 - column: 11 - end_location: - row: 114 - column: 19 + edits: + - content: "" + location: + row: 114 + column: 11 + end_location: + row: 114 + column: 19 parent: ~ - kind: name: UselessObjectInheritance @@ -354,13 +371,14 @@ expression: diagnostics row: 119 column: 10 fix: - content: "" - location: - row: 118 - column: 7 - end_location: - row: 120 - column: 1 + edits: + - content: "" + location: + row: 118 + column: 7 + end_location: + row: 120 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -374,13 +392,14 @@ expression: diagnostics row: 125 column: 10 fix: - content: "" - location: - row: 124 - column: 7 - end_location: - row: 126 - column: 1 + edits: + - content: "" + location: + row: 124 + column: 7 + end_location: + row: 126 + column: 1 parent: ~ - kind: name: UselessObjectInheritance @@ -394,12 +413,13 @@ expression: diagnostics row: 131 column: 10 fix: - content: "" - location: - row: 130 - column: 7 - end_location: - row: 133 - column: 1 + edits: + - content: "" + location: + row: 130 + column: 7 + end_location: + row: 133 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap index 5e84443a946c1d..025aa8b5a877db 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 25 fix: - content: self.assertEqual - location: - row: 6 - column: 8 - end_location: - row: 6 - column: 25 + edits: + - content: self.assertEqual + location: + row: 6 + column: 8 + end_location: + row: 6 + column: 25 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 25 fix: - content: self.assertEqual - location: - row: 7 - column: 8 - end_location: - row: 7 - column: 25 + edits: + - content: self.assertEqual + location: + row: 7 + column: 8 + end_location: + row: 7 + column: 25 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 34 fix: - content: self.assertAlmostEqual - location: - row: 9 - column: 8 - end_location: - row: 9 - column: 34 + edits: + - content: self.assertAlmostEqual + location: + row: 9 + column: 8 + end_location: + row: 9 + column: 34 parent: ~ - kind: name: DeprecatedUnittestAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 35 fix: - content: self.assertNotRegex - location: - row: 10 - column: 8 - end_location: - row: 10 - column: 35 + edits: + - content: self.assertNotRegex + location: + row: 10 + column: 8 + end_location: + row: 10 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap index 9c24e1b5139738..76939d840f6335 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP006.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 20 fix: - content: list - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 20 + edits: + - content: list + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 20 parent: ~ - kind: name: NonPEP585Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 13 fix: - content: list - location: - row: 11 - column: 9 - end_location: - row: 11 - column: 13 + edits: + - content: list + location: + row: 11 + column: 9 + end_location: + row: 11 + column: 13 parent: ~ - kind: name: NonPEP585Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 18 column: 15 fix: - content: list - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 15 + edits: + - content: list + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 15 parent: ~ - kind: name: NonPEP585Annotation @@ -74,13 +77,14 @@ expression: diagnostics row: 25 column: 14 fix: - content: list - location: - row: 25 - column: 9 - end_location: - row: 25 - column: 14 + edits: + - content: list + location: + row: 25 + column: 9 + end_location: + row: 25 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -94,13 +98,14 @@ expression: diagnostics row: 29 column: 14 fix: - content: list - location: - row: 29 - column: 10 - end_location: - row: 29 - column: 14 + edits: + - content: list + location: + row: 29 + column: 10 + end_location: + row: 29 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -114,13 +119,14 @@ expression: diagnostics row: 33 column: 15 fix: - content: list - location: - row: 33 - column: 11 - end_location: - row: 33 - column: 15 + edits: + - content: list + location: + row: 33 + column: 11 + end_location: + row: 33 + column: 15 parent: ~ - kind: name: NonPEP585Annotation @@ -134,13 +140,14 @@ expression: diagnostics row: 37 column: 14 fix: - content: list - location: - row: 37 - column: 10 - end_location: - row: 37 - column: 14 + edits: + - content: list + location: + row: 37 + column: 10 + end_location: + row: 37 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -154,13 +161,14 @@ expression: diagnostics row: 41 column: 16 fix: - content: list - location: - row: 41 - column: 12 - end_location: - row: 41 - column: 16 + edits: + - content: list + location: + row: 41 + column: 12 + end_location: + row: 41 + column: 16 parent: ~ - kind: name: NonPEP585Annotation @@ -173,7 +181,8 @@ expression: diagnostics end_location: row: 45 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -187,13 +196,14 @@ expression: diagnostics row: 49 column: 14 fix: - content: list - location: - row: 49 - column: 10 - end_location: - row: 49 - column: 14 + edits: + - content: list + location: + row: 49 + column: 10 + end_location: + row: 49 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -207,13 +217,14 @@ expression: diagnostics row: 49 column: 20 fix: - content: list - location: - row: 49 - column: 16 - end_location: - row: 49 - column: 20 + edits: + - content: list + location: + row: 49 + column: 16 + end_location: + row: 49 + column: 20 parent: ~ - kind: name: NonPEP585Annotation @@ -227,13 +238,14 @@ expression: diagnostics row: 53 column: 14 fix: - content: list - location: - row: 53 - column: 10 - end_location: - row: 53 - column: 14 + edits: + - content: list + location: + row: 53 + column: 10 + end_location: + row: 53 + column: 14 parent: ~ - kind: name: NonPEP585Annotation @@ -246,7 +258,8 @@ expression: diagnostics end_location: row: 53 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -259,7 +272,8 @@ expression: diagnostics end_location: row: 57 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: NonPEP585Annotation @@ -272,6 +286,7 @@ expression: diagnostics end_location: row: 57 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap index bfb0d275b50216..4686e4a01f20f8 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP007.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 22 fix: - content: str | None - location: - row: 6 - column: 9 - end_location: - row: 6 - column: 22 + edits: + - content: str | None + location: + row: 6 + column: 9 + end_location: + row: 6 + column: 22 parent: ~ - kind: name: NonPEP604Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 29 fix: - content: str | None - location: - row: 10 - column: 9 - end_location: - row: 10 - column: 29 + edits: + - content: str | None + location: + row: 10 + column: 9 + end_location: + row: 10 + column: 29 parent: ~ - kind: name: NonPEP604Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 14 column: 45 fix: - content: "str | int | Union[float, bytes]" - location: - row: 14 - column: 9 - end_location: - row: 14 - column: 45 + edits: + - content: "str | int | Union[float, bytes]" + location: + row: 14 + column: 9 + end_location: + row: 14 + column: 45 parent: ~ - kind: name: NonPEP604Annotation @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 44 fix: - content: float | bytes - location: - row: 14 - column: 25 - end_location: - row: 14 - column: 44 + edits: + - content: float | bytes + location: + row: 14 + column: 25 + end_location: + row: 14 + column: 44 parent: ~ - kind: name: NonPEP604Annotation @@ -94,13 +98,14 @@ expression: diagnostics row: 18 column: 31 fix: - content: str | int - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 31 + edits: + - content: str | int + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 31 parent: ~ - kind: name: NonPEP604Annotation @@ -114,13 +119,14 @@ expression: diagnostics row: 22 column: 33 fix: - content: str | int - location: - row: 22 - column: 9 - end_location: - row: 22 - column: 33 + edits: + - content: str | int + location: + row: 22 + column: 9 + end_location: + row: 22 + column: 33 parent: ~ - kind: name: NonPEP604Annotation @@ -134,13 +140,14 @@ expression: diagnostics row: 26 column: 40 fix: - content: "(str, int) | float" - location: - row: 26 - column: 9 - end_location: - row: 26 - column: 40 + edits: + - content: "(str, int) | float" + location: + row: 26 + column: 9 + end_location: + row: 26 + column: 40 parent: ~ - kind: name: NonPEP604Annotation @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 46 fix: - content: "str | int | Union[float, bytes]" - location: - row: 30 - column: 10 - end_location: - row: 30 - column: 46 + edits: + - content: "str | int | Union[float, bytes]" + location: + row: 30 + column: 10 + end_location: + row: 30 + column: 46 parent: ~ - kind: name: NonPEP604Annotation @@ -174,13 +182,14 @@ expression: diagnostics row: 30 column: 45 fix: - content: float | bytes - location: - row: 30 - column: 26 - end_location: - row: 30 - column: 45 + edits: + - content: float | bytes + location: + row: 30 + column: 26 + end_location: + row: 30 + column: 45 parent: ~ - kind: name: NonPEP604Annotation @@ -194,13 +203,14 @@ expression: diagnostics row: 34 column: 32 fix: - content: str | int - location: - row: 34 - column: 10 - end_location: - row: 34 - column: 32 + edits: + - content: str | int + location: + row: 34 + column: 10 + end_location: + row: 34 + column: 32 parent: ~ - kind: name: NonPEP604Annotation @@ -214,13 +224,14 @@ expression: diagnostics row: 47 column: 20 fix: - content: str | None - location: - row: 47 - column: 7 - end_location: - row: 47 - column: 20 + edits: + - content: str | None + location: + row: 47 + column: 7 + end_location: + row: 47 + column: 20 parent: ~ - kind: name: NonPEP604Annotation @@ -234,12 +245,13 @@ expression: diagnostics row: 52 column: 22 fix: - content: str | int - location: - row: 52 - column: 7 - end_location: - row: 52 - column: 22 + edits: + - content: str | int + location: + row: 52 + column: 7 + end_location: + row: 52 + column: 22 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap index 064e73350db60a..47599556aae9a5 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP008.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 17 column: 35 fix: - content: super() - location: - row: 17 - column: 17 - end_location: - row: 17 - column: 35 + edits: + - content: super() + location: + row: 17 + column: 17 + end_location: + row: 17 + column: 35 parent: ~ - kind: name: SuperCallWithParameters @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 26 fix: - content: super() - location: - row: 18 - column: 8 - end_location: - row: 18 - column: 26 + edits: + - content: super() + location: + row: 18 + column: 8 + end_location: + row: 18 + column: 26 parent: ~ - kind: name: SuperCallWithParameters @@ -54,13 +56,14 @@ expression: diagnostics row: 22 column: 9 fix: - content: super() - location: - row: 19 - column: 8 - end_location: - row: 22 - column: 9 + edits: + - content: super() + location: + row: 19 + column: 8 + end_location: + row: 22 + column: 9 parent: ~ - kind: name: SuperCallWithParameters @@ -74,13 +77,14 @@ expression: diagnostics row: 36 column: 28 fix: - content: super() - location: - row: 36 - column: 8 - end_location: - row: 36 - column: 28 + edits: + - content: super() + location: + row: 36 + column: 8 + end_location: + row: 36 + column: 28 parent: ~ - kind: name: SuperCallWithParameters @@ -94,12 +98,13 @@ expression: diagnostics row: 50 column: 32 fix: - content: super() - location: - row: 50 - column: 12 - end_location: - row: 50 - column: 32 + edits: + - content: super() + location: + row: 50 + column: 12 + end_location: + row: 50 + column: 32 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap index c3a460d22b1fb0..a5c0f4a26e3654 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_0.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 2 column: 0 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap index 42f86ee89c2e5c..2c8d4acdd6e909 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP009_1.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 3 column: 0 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap index 6bdcd5bbf136ed..55bad0f03794df 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP010.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 48 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 55 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 3 - column: 0 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 3 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 48 fix: - content: "" - location: - row: 3 - column: 0 - end_location: - row: 4 - column: 0 + edits: + - content: "" + location: + row: 3 + column: 0 + end_location: + row: 4 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 37 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 5 - column: 0 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 5 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 53 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 49 fix: - content: from __future__ import invalid_module - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 49 + edits: + - content: from __future__ import invalid_module + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 49 parent: ~ - kind: name: UnnecessaryFutureImport @@ -134,13 +140,14 @@ expression: diagnostics row: 9 column: 41 fix: - content: "" - location: - row: 9 - column: 0 - end_location: - row: 10 - column: 0 + edits: + - content: "" + location: + row: 9 + column: 0 + end_location: + row: 10 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -154,13 +161,14 @@ expression: diagnostics row: 10 column: 37 fix: - content: pass - location: - row: 10 - column: 4 - end_location: - row: 10 - column: 37 + edits: + - content: pass + location: + row: 10 + column: 4 + end_location: + row: 10 + column: 37 parent: ~ - kind: name: UnnecessaryFutureImport @@ -174,13 +182,14 @@ expression: diagnostics row: 13 column: 41 fix: - content: "" - location: - row: 13 - column: 0 - end_location: - row: 14 - column: 0 + edits: + - content: "" + location: + row: 13 + column: 0 + end_location: + row: 14 + column: 0 parent: ~ - kind: name: UnnecessaryFutureImport @@ -194,12 +203,13 @@ expression: diagnostics row: 14 column: 53 fix: - content: from __future__ import invalid_module - location: - row: 14 - column: 4 - end_location: - row: 14 - column: 53 + edits: + - content: from __future__ import invalid_module + location: + row: 14 + column: 4 + end_location: + row: 14 + column: 53 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap index 922e3e4f4eb88b..98469008a2c812 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP011.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 22 fix: - content: functools.lru_cache - location: - row: 5 - column: 1 - end_location: - row: 5 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 5 + column: 1 + end_location: + row: 5 + column: 22 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -34,13 +35,14 @@ expression: diagnostics row: 10 column: 12 fix: - content: lru_cache - location: - row: 10 - column: 1 - end_location: - row: 10 - column: 12 + edits: + - content: lru_cache + location: + row: 10 + column: 1 + end_location: + row: 10 + column: 12 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 22 fix: - content: functools.lru_cache - location: - row: 16 - column: 1 - end_location: - row: 16 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 16 + column: 1 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: LRUCacheWithoutParameters @@ -74,12 +77,13 @@ expression: diagnostics row: 21 column: 22 fix: - content: functools.lru_cache - location: - row: 21 - column: 1 - end_location: - row: 21 - column: 22 + edits: + - content: functools.lru_cache + location: + row: 21 + column: 1 + end_location: + row: 21 + column: 22 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap index 751fb400c833cc..442fe28d0ad0f2 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP012.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 21 fix: - content: "b\"foo\"" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 21 + edits: + - content: "b\"foo\"" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 21 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 18 fix: - content: "b\"foo\"" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 18 + edits: + - content: "b\"foo\"" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 18 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 14 fix: - content: "b\"foo\"" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 14 + edits: + - content: "b\"foo\"" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 14 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -74,13 +77,14 @@ expression: diagnostics row: 5 column: 20 fix: - content: "b\"foo\"" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 20 + edits: + - content: "b\"foo\"" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -94,13 +98,14 @@ expression: diagnostics row: 6 column: 22 fix: - content: "b\"foo\"" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -114,13 +119,14 @@ expression: diagnostics row: 7 column: 30 fix: - content: "b\"foo\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 30 + edits: + - content: "b\"foo\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 30 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 1 fix: - content: "b\"\"\"\nLorem\n\nIpsum\n\"\"\"" - location: - row: 8 - column: 0 - end_location: - row: 14 - column: 1 + edits: + - content: "b\"\"\"\nLorem\n\nIpsum\n\"\"\"" + location: + row: 8 + column: 0 + end_location: + row: 14 + column: 1 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -154,13 +161,14 @@ expression: diagnostics row: 17 column: 20 fix: - content: "b\"Lorem \"\n b\"Ipsum\"" - location: - row: 16 - column: 4 - end_location: - row: 17 - column: 20 + edits: + - content: "b\"Lorem \"\n b\"Ipsum\"" + location: + row: 16 + column: 4 + end_location: + row: 17 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 20 fix: - content: "b\"Lorem \" # Comment\n b\"Ipsum\"" - location: - row: 20 - column: 4 - end_location: - row: 21 - column: 20 + edits: + - content: "b\"Lorem \" # Comment\n b\"Ipsum\"" + location: + row: 20 + column: 4 + end_location: + row: 21 + column: 20 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -194,13 +203,14 @@ expression: diagnostics row: 24 column: 29 fix: - content: "b\"Lorem \" b\"Ipsum\"" - location: - row: 24 - column: 4 - end_location: - row: 24 - column: 29 + edits: + - content: "b\"Lorem \" b\"Ipsum\"" + location: + row: 24 + column: 4 + end_location: + row: 24 + column: 29 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -214,13 +224,14 @@ expression: diagnostics row: 32 column: 27 fix: - content: "" - location: - row: 32 - column: 19 - end_location: - row: 32 - column: 26 + edits: + - content: "" + location: + row: 32 + column: 19 + end_location: + row: 32 + column: 26 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -234,13 +245,14 @@ expression: diagnostics row: 50 column: 31 fix: - content: "" - location: - row: 50 - column: 23 - end_location: - row: 50 - column: 30 + edits: + - content: "" + location: + row: 50 + column: 23 + end_location: + row: 50 + column: 30 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -254,13 +266,14 @@ expression: diagnostics row: 52 column: 39 fix: - content: "" - location: - row: 52 - column: 23 - end_location: - row: 52 - column: 38 + edits: + - content: "" + location: + row: 52 + column: 23 + end_location: + row: 52 + column: 38 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -274,13 +287,14 @@ expression: diagnostics row: 54 column: 24 fix: - content: "br\"foo\\o\"" - location: - row: 54 - column: 0 - end_location: - row: 54 - column: 24 + edits: + - content: "br\"foo\\o\"" + location: + row: 54 + column: 0 + end_location: + row: 54 + column: 24 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -294,13 +308,14 @@ expression: diagnostics row: 55 column: 22 fix: - content: "b\"foo\"" - location: - row: 55 - column: 0 - end_location: - row: 55 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 55 + column: 0 + end_location: + row: 55 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -314,13 +329,14 @@ expression: diagnostics row: 56 column: 24 fix: - content: "bR\"foo\\o\"" - location: - row: 56 - column: 0 - end_location: - row: 56 - column: 24 + edits: + - content: "bR\"foo\\o\"" + location: + row: 56 + column: 0 + end_location: + row: 56 + column: 24 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -334,13 +350,14 @@ expression: diagnostics row: 57 column: 22 fix: - content: "b\"foo\"" - location: - row: 57 - column: 0 - end_location: - row: 57 - column: 22 + edits: + - content: "b\"foo\"" + location: + row: 57 + column: 0 + end_location: + row: 57 + column: 22 parent: ~ - kind: name: UnnecessaryEncodeUTF8 @@ -354,12 +371,13 @@ expression: diagnostics row: 58 column: 20 fix: - content: "b\"foo\"" - location: - row: 58 - column: 6 - end_location: - row: 58 - column: 20 + edits: + - content: "b\"foo\"" + location: + row: 58 + column: 6 + end_location: + row: 58 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap index c667eb40b743f2..bac5ea28c4a4d4 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP013.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 50 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 50 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 50 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 48 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 48 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 48 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 42 fix: - content: "class MyType(TypedDict):\n a: int\n b: str" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 42 + edits: + - content: "class MyType(TypedDict):\n a: int\n b: str" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 42 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 28 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 28 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -94,13 +98,14 @@ expression: diagnostics row: 17 column: 44 fix: - content: "class MyType(TypedDict):\n a: \"hello\"" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 44 + edits: + - content: "class MyType(TypedDict):\n a: \"hello\"" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 44 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -114,13 +119,14 @@ expression: diagnostics row: 18 column: 39 fix: - content: "class MyType(TypedDict):\n a: \"hello\"" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 39 + edits: + - content: "class MyType(TypedDict):\n a: \"hello\"" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 39 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -134,13 +140,14 @@ expression: diagnostics row: 21 column: 54 fix: - content: "class MyType(TypedDict):\n a: NotRequired[dict]" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 54 + edits: + - content: "class MyType(TypedDict):\n a: NotRequired[dict]" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 54 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -154,13 +161,14 @@ expression: diagnostics row: 24 column: 63 fix: - content: "class MyType(TypedDict, total=False):\n x: int\n y: int" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 63 + edits: + - content: "class MyType(TypedDict, total=False):\n x: int\n y: int" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 63 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -174,13 +182,14 @@ expression: diagnostics row: 27 column: 55 fix: - content: "class MyType(TypedDict):\n key: Literal[\"value\"]" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 55 + edits: + - content: "class MyType(TypedDict):\n key: Literal[\"value\"]" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 55 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -194,13 +203,14 @@ expression: diagnostics row: 30 column: 49 fix: - content: "class MyType(typing.TypedDict):\n key: int" - location: - row: 30 - column: 0 - end_location: - row: 30 - column: 49 + edits: + - content: "class MyType(typing.TypedDict):\n key: int" + location: + row: 30 + column: 0 + end_location: + row: 30 + column: 49 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -214,13 +224,14 @@ expression: diagnostics row: 40 column: 32 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 40 - column: 0 - end_location: - row: 40 - column: 32 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 40 + column: 0 + end_location: + row: 40 + column: 32 parent: ~ - kind: name: ConvertTypedDictFunctionalToClass @@ -234,12 +245,13 @@ expression: diagnostics row: 43 column: 36 fix: - content: "class MyType(TypedDict):\n pass" - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 36 + edits: + - content: "class MyType(TypedDict):\n pass" + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 36 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap index 10161c5a5db806..bec9c534942e0f 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP014.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 67 fix: - content: "class MyType(NamedTuple):\n a: int\n b: tuple[str, ...]" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 67 + edits: + - content: "class MyType(NamedTuple):\n a: int\n b: tuple[str, ...]" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 67 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 1 fix: - content: "class MyType(NamedTuple):\n a: int\n b: str = \"foo\"\n c: list[bool] = [True]" - location: - row: 8 - column: 0 - end_location: - row: 12 - column: 1 + edits: + - content: "class MyType(NamedTuple):\n a: int\n b: str = \"foo\"\n c: list[bool] = [True]" + location: + row: 8 + column: 0 + end_location: + row: 12 + column: 1 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 62 fix: - content: "class MyType(typing.NamedTuple):\n a: int\n b: str" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 62 + edits: + - content: "class MyType(typing.NamedTuple):\n a: int\n b: str" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 62 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -74,13 +77,14 @@ expression: diagnostics row: 28 column: 36 fix: - content: "class MyType(typing.NamedTuple):\n pass" - location: - row: 28 - column: 0 - end_location: - row: 28 - column: 36 + edits: + - content: "class MyType(typing.NamedTuple):\n pass" + location: + row: 28 + column: 0 + end_location: + row: 28 + column: 36 parent: ~ - kind: name: ConvertNamedTupleFunctionalToClass @@ -94,12 +98,13 @@ expression: diagnostics row: 31 column: 40 fix: - content: "class MyType(typing.NamedTuple):\n pass" - location: - row: 31 - column: 0 - end_location: - row: 31 - column: 40 + edits: + - content: "class MyType(typing.NamedTuple):\n pass" + location: + row: 31 + column: 0 + end_location: + row: 31 + column: 40 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap index c10dfd9933846a..5522b543edca9b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP015.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 16 fix: - content: "" - location: - row: 1 - column: 10 - end_location: - row: 1 - column: 15 + edits: + - content: "" + location: + row: 1 + column: 10 + end_location: + row: 1 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 17 fix: - content: "" - location: - row: 2 - column: 10 - end_location: - row: 2 - column: 16 + edits: + - content: "" + location: + row: 2 + column: 10 + end_location: + row: 2 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 17 fix: - content: "\"rb\"" - location: - row: 3 - column: 12 - end_location: - row: 3 - column: 16 + edits: + - content: "\"rb\"" + location: + row: 3 + column: 12 + end_location: + row: 3 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 18 fix: - content: "\"rb\"" - location: - row: 4 - column: 12 - end_location: - row: 4 - column: 17 + edits: + - content: "\"rb\"" + location: + row: 4 + column: 12 + end_location: + row: 4 + column: 17 parent: ~ - kind: name: RedundantOpenModes @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 16 fix: - content: "" - location: - row: 5 - column: 10 - end_location: - row: 5 - column: 15 + edits: + - content: "" + location: + row: 5 + column: 10 + end_location: + row: 5 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 17 fix: - content: "" - location: - row: 6 - column: 10 - end_location: - row: 6 - column: 16 + edits: + - content: "" + location: + row: 6 + column: 10 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: RedundantOpenModes @@ -134,13 +140,14 @@ expression: diagnostics row: 7 column: 32 fix: - content: "" - location: - row: 7 - column: 8 - end_location: - row: 7 - column: 13 + edits: + - content: "" + location: + row: 7 + column: 8 + end_location: + row: 7 + column: 13 parent: ~ - kind: name: RedundantOpenModes @@ -154,13 +161,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: "\"w\"" - location: - row: 8 - column: 10 - end_location: - row: 8 - column: 14 + edits: + - content: "\"w\"" + location: + row: 8 + column: 10 + end_location: + row: 8 + column: 14 parent: ~ - kind: name: RedundantOpenModes @@ -174,13 +182,14 @@ expression: diagnostics row: 10 column: 21 fix: - content: "" - location: - row: 10 - column: 15 - end_location: - row: 10 - column: 20 + edits: + - content: "" + location: + row: 10 + column: 15 + end_location: + row: 10 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -194,13 +203,14 @@ expression: diagnostics row: 12 column: 22 fix: - content: "" - location: - row: 12 - column: 15 - end_location: - row: 12 - column: 21 + edits: + - content: "" + location: + row: 12 + column: 15 + end_location: + row: 12 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -214,13 +224,14 @@ expression: diagnostics row: 14 column: 22 fix: - content: "\"rb\"" - location: - row: 14 - column: 17 - end_location: - row: 14 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 14 + column: 17 + end_location: + row: 14 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -234,13 +245,14 @@ expression: diagnostics row: 16 column: 23 fix: - content: "\"rb\"" - location: - row: 16 - column: 17 - end_location: - row: 16 - column: 22 + edits: + - content: "\"rb\"" + location: + row: 16 + column: 17 + end_location: + row: 16 + column: 22 parent: ~ - kind: name: RedundantOpenModes @@ -254,13 +266,14 @@ expression: diagnostics row: 18 column: 21 fix: - content: "" - location: - row: 18 - column: 15 - end_location: - row: 18 - column: 20 + edits: + - content: "" + location: + row: 18 + column: 15 + end_location: + row: 18 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -274,13 +287,14 @@ expression: diagnostics row: 20 column: 22 fix: - content: "" - location: - row: 20 - column: 15 - end_location: - row: 20 - column: 21 + edits: + - content: "" + location: + row: 20 + column: 15 + end_location: + row: 20 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -294,13 +308,14 @@ expression: diagnostics row: 22 column: 39 fix: - content: "" - location: - row: 22 - column: 15 - end_location: - row: 22 - column: 20 + edits: + - content: "" + location: + row: 22 + column: 15 + end_location: + row: 22 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -314,13 +329,14 @@ expression: diagnostics row: 24 column: 22 fix: - content: "\"w\"" - location: - row: 24 - column: 17 - end_location: - row: 24 - column: 21 + edits: + - content: "\"w\"" + location: + row: 24 + column: 17 + end_location: + row: 24 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -334,13 +350,14 @@ expression: diagnostics row: 27 column: 27 fix: - content: "" - location: - row: 27 - column: 21 - end_location: - row: 27 - column: 26 + edits: + - content: "" + location: + row: 27 + column: 21 + end_location: + row: 27 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -354,13 +371,14 @@ expression: diagnostics row: 28 column: 28 fix: - content: "\"rb\"" - location: - row: 28 - column: 23 - end_location: - row: 28 - column: 27 + edits: + - content: "\"rb\"" + location: + row: 28 + column: 23 + end_location: + row: 28 + column: 27 parent: ~ - kind: name: RedundantOpenModes @@ -374,13 +392,14 @@ expression: diagnostics row: 30 column: 32 fix: - content: "" - location: - row: 30 - column: 26 - end_location: - row: 30 - column: 31 + edits: + - content: "" + location: + row: 30 + column: 26 + end_location: + row: 30 + column: 31 parent: ~ - kind: name: RedundantOpenModes @@ -394,13 +413,14 @@ expression: diagnostics row: 32 column: 33 fix: - content: "\"rb\"" - location: - row: 32 - column: 28 - end_location: - row: 32 - column: 32 + edits: + - content: "\"rb\"" + location: + row: 32 + column: 28 + end_location: + row: 32 + column: 32 parent: ~ - kind: name: RedundantOpenModes @@ -414,13 +434,14 @@ expression: diagnostics row: 35 column: 21 fix: - content: "" - location: - row: 35 - column: 15 - end_location: - row: 35 - column: 20 + edits: + - content: "" + location: + row: 35 + column: 15 + end_location: + row: 35 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -434,13 +455,14 @@ expression: diagnostics row: 35 column: 45 fix: - content: "" - location: - row: 35 - column: 39 - end_location: - row: 35 - column: 44 + edits: + - content: "" + location: + row: 35 + column: 39 + end_location: + row: 35 + column: 44 parent: ~ - kind: name: RedundantOpenModes @@ -454,13 +476,14 @@ expression: diagnostics row: 37 column: 22 fix: - content: "\"rb\"" - location: - row: 37 - column: 17 - end_location: - row: 37 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 37 + column: 17 + end_location: + row: 37 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -474,13 +497,14 @@ expression: diagnostics row: 37 column: 47 fix: - content: "\"rb\"" - location: - row: 37 - column: 42 - end_location: - row: 37 - column: 46 + edits: + - content: "\"rb\"" + location: + row: 37 + column: 42 + end_location: + row: 37 + column: 46 parent: ~ - kind: name: RedundantOpenModes @@ -494,13 +518,14 @@ expression: diagnostics row: 40 column: 21 fix: - content: "" - location: - row: 40 - column: 10 - end_location: - row: 40 - column: 20 + edits: + - content: "" + location: + row: 40 + column: 10 + end_location: + row: 40 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -514,13 +539,14 @@ expression: diagnostics row: 41 column: 26 fix: - content: "" - location: - row: 41 - column: 15 - end_location: - row: 41 - column: 25 + edits: + - content: "" + location: + row: 41 + column: 15 + end_location: + row: 41 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -534,13 +560,14 @@ expression: diagnostics row: 42 column: 26 fix: - content: "" - location: - row: 42 - column: 5 - end_location: - row: 42 - column: 15 + edits: + - content: "" + location: + row: 42 + column: 5 + end_location: + row: 42 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -554,13 +581,14 @@ expression: diagnostics row: 44 column: 26 fix: - content: "" - location: - row: 44 - column: 15 - end_location: - row: 44 - column: 25 + edits: + - content: "" + location: + row: 44 + column: 15 + end_location: + row: 44 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -574,13 +602,14 @@ expression: diagnostics row: 46 column: 31 fix: - content: "" - location: - row: 46 - column: 20 - end_location: - row: 46 - column: 30 + edits: + - content: "" + location: + row: 46 + column: 20 + end_location: + row: 46 + column: 30 parent: ~ - kind: name: RedundantOpenModes @@ -594,13 +623,14 @@ expression: diagnostics row: 48 column: 31 fix: - content: "" - location: - row: 48 - column: 10 - end_location: - row: 48 - column: 20 + edits: + - content: "" + location: + row: 48 + column: 10 + end_location: + row: 48 + column: 20 parent: ~ - kind: name: RedundantOpenModes @@ -614,13 +644,14 @@ expression: diagnostics row: 51 column: 22 fix: - content: "\"rb\"" - location: - row: 51 - column: 17 - end_location: - row: 51 - column: 21 + edits: + - content: "\"rb\"" + location: + row: 51 + column: 17 + end_location: + row: 51 + column: 21 parent: ~ - kind: name: RedundantOpenModes @@ -634,13 +665,14 @@ expression: diagnostics row: 52 column: 27 fix: - content: "\"rb\"" - location: - row: 52 - column: 22 - end_location: - row: 52 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 52 + column: 22 + end_location: + row: 52 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -654,13 +686,14 @@ expression: diagnostics row: 53 column: 27 fix: - content: "\"rb\"" - location: - row: 53 - column: 10 - end_location: - row: 53 - column: 14 + edits: + - content: "\"rb\"" + location: + row: 53 + column: 10 + end_location: + row: 53 + column: 14 parent: ~ - kind: name: RedundantOpenModes @@ -674,13 +707,14 @@ expression: diagnostics row: 55 column: 27 fix: - content: "\"rb\"" - location: - row: 55 - column: 22 - end_location: - row: 55 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 55 + column: 22 + end_location: + row: 55 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -694,13 +728,14 @@ expression: diagnostics row: 57 column: 32 fix: - content: "\"rb\"" - location: - row: 57 - column: 27 - end_location: - row: 57 - column: 31 + edits: + - content: "\"rb\"" + location: + row: 57 + column: 27 + end_location: + row: 57 + column: 31 parent: ~ - kind: name: RedundantOpenModes @@ -714,13 +749,14 @@ expression: diagnostics row: 59 column: 32 fix: - content: "\"rb\"" - location: - row: 59 - column: 15 - end_location: - row: 59 - column: 19 + edits: + - content: "\"rb\"" + location: + row: 59 + column: 15 + end_location: + row: 59 + column: 19 parent: ~ - kind: name: RedundantOpenModes @@ -734,13 +770,14 @@ expression: diagnostics row: 62 column: 110 fix: - content: "" - location: - row: 62 - column: 15 - end_location: - row: 62 - column: 25 + edits: + - content: "" + location: + row: 62 + column: 15 + end_location: + row: 62 + column: 25 parent: ~ - kind: name: RedundantOpenModes @@ -754,13 +791,14 @@ expression: diagnostics row: 63 column: 110 fix: - content: "" - location: - row: 63 - column: 99 - end_location: - row: 63 - column: 109 + edits: + - content: "" + location: + row: 63 + column: 99 + end_location: + row: 63 + column: 109 parent: ~ - kind: name: RedundantOpenModes @@ -774,13 +812,14 @@ expression: diagnostics row: 64 column: 110 fix: - content: "" - location: - row: 64 - column: 58 - end_location: - row: 64 - column: 68 + edits: + - content: "" + location: + row: 64 + column: 58 + end_location: + row: 64 + column: 68 parent: ~ - kind: name: RedundantOpenModes @@ -794,13 +833,14 @@ expression: diagnostics row: 65 column: 110 fix: - content: "" - location: - row: 65 - column: 5 - end_location: - row: 65 - column: 15 + edits: + - content: "" + location: + row: 65 + column: 5 + end_location: + row: 65 + column: 15 parent: ~ - kind: name: RedundantOpenModes @@ -814,13 +854,14 @@ expression: diagnostics row: 67 column: 111 fix: - content: "\"rb\"" - location: - row: 67 - column: 22 - end_location: - row: 67 - column: 26 + edits: + - content: "\"rb\"" + location: + row: 67 + column: 22 + end_location: + row: 67 + column: 26 parent: ~ - kind: name: RedundantOpenModes @@ -834,13 +875,14 @@ expression: diagnostics row: 68 column: 111 fix: - content: "\"rb\"" - location: - row: 68 - column: 106 - end_location: - row: 68 - column: 110 + edits: + - content: "\"rb\"" + location: + row: 68 + column: 106 + end_location: + row: 68 + column: 110 parent: ~ - kind: name: RedundantOpenModes @@ -854,13 +896,14 @@ expression: diagnostics row: 69 column: 111 fix: - content: "\"rb\"" - location: - row: 69 - column: 65 - end_location: - row: 69 - column: 69 + edits: + - content: "\"rb\"" + location: + row: 69 + column: 65 + end_location: + row: 69 + column: 69 parent: ~ - kind: name: RedundantOpenModes @@ -874,12 +917,13 @@ expression: diagnostics row: 70 column: 111 fix: - content: "\"rb\"" - location: - row: 70 - column: 10 - end_location: - row: 70 - column: 14 + edits: + - content: "\"rb\"" + location: + row: 70 + column: 10 + end_location: + row: 70 + column: 14 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap index d86ed2e71f05f2..9ced091674cf67 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP018.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 20 column: 5 fix: - content: "\"\"" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 5 + edits: + - content: "\"\"" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 5 parent: ~ - kind: name: NativeLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 21 column: 10 fix: - content: "\"foo\"" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 10 + edits: + - content: "\"foo\"" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 10 parent: ~ - kind: name: NativeLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 23 column: 7 fix: - content: "\"\"\"\nfoo\"\"\"" - location: - row: 22 - column: 0 - end_location: - row: 23 - column: 7 + edits: + - content: "\"\"\"\nfoo\"\"\"" + location: + row: 22 + column: 0 + end_location: + row: 23 + column: 7 parent: ~ - kind: name: NativeLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 24 column: 7 fix: - content: "b\"\"" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 7 + edits: + - content: "b\"\"" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 7 parent: ~ - kind: name: NativeLiterals @@ -94,13 +98,14 @@ expression: diagnostics row: 25 column: 13 fix: - content: "b\"foo\"" - location: - row: 25 - column: 0 - end_location: - row: 25 - column: 13 + edits: + - content: "b\"foo\"" + location: + row: 25 + column: 0 + end_location: + row: 25 + column: 13 parent: ~ - kind: name: NativeLiterals @@ -114,12 +119,13 @@ expression: diagnostics row: 27 column: 7 fix: - content: "b\"\"\"\nfoo\"\"\"" - location: - row: 26 - column: 0 - end_location: - row: 27 - column: 7 + edits: + - content: "b\"\"\"\nfoo\"\"\"" + location: + row: 26 + column: 0 + end_location: + row: 27 + column: 7 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap index 8277f1f3fd0f59..05b74633fc67ad 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP019.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 25 fix: - content: str - location: - row: 7 - column: 21 - end_location: - row: 7 - column: 25 + edits: + - content: str + location: + row: 7 + column: 21 + end_location: + row: 7 + column: 25 parent: ~ - kind: name: TypingTextStrAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 39 fix: - content: str - location: - row: 11 - column: 28 - end_location: - row: 11 - column: 39 + edits: + - content: str + location: + row: 11 + column: 28 + end_location: + row: 11 + column: 39 parent: ~ - kind: name: TypingTextStrAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 15 column: 37 fix: - content: str - location: - row: 15 - column: 27 - end_location: - row: 15 - column: 37 + edits: + - content: str + location: + row: 15 + column: 27 + end_location: + row: 15 + column: 37 parent: ~ - kind: name: TypingTextStrAlias @@ -74,12 +77,13 @@ expression: diagnostics row: 19 column: 35 fix: - content: str - location: - row: 19 - column: 28 - end_location: - row: 19 - column: 35 + edits: + - content: str + location: + row: 19 + column: 28 + end_location: + row: 19 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap index 18f24d85dfdcdf..e0069c5ef5c5d1 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP020.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 55 fix: - content: open - location: - row: 3 - column: 5 - end_location: - row: 3 - column: 12 + edits: + - content: open + location: + row: 3 + column: 5 + end_location: + row: 3 + column: 12 parent: ~ - kind: name: OpenAlias @@ -33,6 +34,7 @@ expression: diagnostics end_location: row: 8 column: 18 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap index ebfcaecd3f1364..c4dcd7d94b60e2 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP021.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 42 fix: - content: text - location: - row: 6 - column: 24 - end_location: - row: 6 - column: 42 + edits: + - content: text + location: + row: 6 + column: 24 + end_location: + row: 6 + column: 42 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: text - location: - row: 7 - column: 22 - end_location: - row: 7 - column: 40 + edits: + - content: text + location: + row: 7 + column: 22 + end_location: + row: 7 + column: 40 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 31 fix: - content: text - location: - row: 9 - column: 13 - end_location: - row: 9 - column: 31 + edits: + - content: text + location: + row: 9 + column: 13 + end_location: + row: 9 + column: 31 parent: ~ - kind: name: ReplaceUniversalNewlines @@ -74,12 +77,13 @@ expression: diagnostics row: 10 column: 39 fix: - content: text - location: - row: 10 - column: 21 - end_location: - row: 10 - column: 39 + edits: + - content: text + location: + row: 10 + column: 21 + end_location: + row: 10 + column: 39 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap index 2d82b2b78f009d..0aecf7a808db4c 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP022.py.snap @@ -14,13 +14,21 @@ expression: diagnostics row: 4 column: 69 fix: - content: capture_output=True - location: - row: 4 - column: 22 - end_location: - row: 4 - column: 68 + edits: + - content: capture_output=True + location: + row: 4 + column: 22 + end_location: + row: 4 + column: 44 + - content: "" + location: + row: 4 + column: 44 + end_location: + row: 4 + column: 68 parent: ~ - kind: name: ReplaceStdoutStderr @@ -34,13 +42,21 @@ expression: diagnostics row: 6 column: 80 fix: - content: capture_output=True - location: - row: 6 - column: 33 - end_location: - row: 6 - column: 79 + edits: + - content: capture_output=True + location: + row: 6 + column: 33 + end_location: + row: 6 + column: 55 + - content: "" + location: + row: 6 + column: 55 + end_location: + row: 6 + column: 79 parent: ~ - kind: name: ReplaceStdoutStderr @@ -54,13 +70,21 @@ expression: diagnostics row: 8 column: 86 fix: - content: "capture_output=True, args=[\"foo\"]" - location: - row: 8 - column: 24 - end_location: - row: 8 - column: 85 + edits: + - content: capture_output=True + location: + row: 8 + column: 24 + end_location: + row: 8 + column: 46 + - content: "" + location: + row: 8 + column: 60 + end_location: + row: 8 + column: 85 parent: ~ - kind: name: ReplaceStdoutStderr @@ -74,13 +98,21 @@ expression: diagnostics row: 12 column: 1 fix: - content: "capture_output=True, check=True" - location: - row: 11 - column: 13 - end_location: - row: 11 - column: 71 + edits: + - content: capture_output=True + location: + row: 11 + column: 13 + end_location: + row: 11 + column: 35 + - content: "" + location: + row: 11 + column: 47 + end_location: + row: 11 + column: 71 parent: ~ - kind: name: ReplaceStdoutStderr @@ -94,13 +126,21 @@ expression: diagnostics row: 16 column: 1 fix: - content: "capture_output=True, check=True" - location: - row: 15 - column: 13 - end_location: - row: 15 - column: 71 + edits: + - content: capture_output=True + location: + row: 15 + column: 13 + end_location: + row: 15 + column: 35 + - content: "" + location: + row: 15 + column: 47 + end_location: + row: 15 + column: 71 parent: ~ - kind: name: ReplaceStdoutStderr @@ -114,13 +154,21 @@ expression: diagnostics row: 26 column: 1 fix: - content: "capture_output=True,\n check=True" - location: - row: 20 - column: 4 - end_location: - row: 22 - column: 26 + edits: + - content: capture_output=True + location: + row: 20 + column: 4 + end_location: + row: 20 + column: 26 + - content: "" + location: + row: 22 + column: 4 + end_location: + row: 23 + column: 4 parent: ~ - kind: name: ReplaceStdoutStderr @@ -134,12 +182,20 @@ expression: diagnostics row: 36 column: 5 fix: - content: "capture_output=True,\n check=True" - location: - row: 31 - column: 8 - end_location: - row: 33 - column: 30 + edits: + - content: capture_output=True + location: + row: 31 + column: 8 + end_location: + row: 31 + column: 30 + - content: "" + location: + row: 33 + column: 8 + end_location: + row: 34 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap index d757231a5ac030..e074ba97113902 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP023.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 59 fix: - content: "from xml.etree.ElementTree import XML, Element, SubElement" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 59 + edits: + - content: "from xml.etree.ElementTree import XML, Element, SubElement" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 59 parent: ~ - kind: name: DeprecatedCElementTree @@ -34,13 +35,14 @@ expression: diagnostics row: 3 column: 35 fix: - content: xml.etree.ElementTree as ET - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 35 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 35 parent: ~ - kind: name: DeprecatedCElementTree @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 44 fix: - content: from xml.etree.ElementTree import XML - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 44 + edits: + - content: from xml.etree.ElementTree import XML + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 44 parent: ~ - kind: name: DeprecatedCElementTree @@ -74,13 +77,14 @@ expression: diagnostics row: 7 column: 49 fix: - content: xml.etree.ElementTree as ET - location: - row: 7 - column: 10 - end_location: - row: 7 - column: 49 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 7 + column: 10 + end_location: + row: 7 + column: 49 parent: ~ - kind: name: DeprecatedCElementTree @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 1 fix: - content: "from xml.etree.ElementTree import (\n XML,\n Element,\n SubElement,\n)" - location: - row: 10 - column: 0 - end_location: - row: 14 - column: 1 + edits: + - content: "from xml.etree.ElementTree import (\n XML,\n Element,\n SubElement,\n)" + location: + row: 10 + column: 0 + end_location: + row: 14 + column: 1 parent: ~ - kind: name: DeprecatedCElementTree @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 39 fix: - content: xml.etree.ElementTree as ET - location: - row: 16 - column: 11 - end_location: - row: 16 - column: 39 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 16 + column: 11 + end_location: + row: 16 + column: 39 parent: ~ - kind: name: DeprecatedCElementTree @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 45 fix: - content: ElementTree as CET - location: - row: 17 - column: 26 - end_location: - row: 17 - column: 45 + edits: + - content: ElementTree as CET + location: + row: 17 + column: 26 + end_location: + row: 17 + column: 45 parent: ~ - kind: name: DeprecatedCElementTree @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 40 fix: - content: ElementTree as ET - location: - row: 19 - column: 22 - end_location: - row: 19 - column: 40 + edits: + - content: ElementTree as ET + location: + row: 19 + column: 22 + end_location: + row: 19 + column: 40 parent: ~ - kind: name: DeprecatedCElementTree @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 47 fix: - content: xml.etree.ElementTree as ET - location: - row: 21 - column: 19 - end_location: - row: 21 - column: 47 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 21 + column: 19 + end_location: + row: 21 + column: 47 parent: ~ - kind: name: DeprecatedCElementTree @@ -194,12 +203,13 @@ expression: diagnostics row: 24 column: 59 fix: - content: xml.etree.ElementTree as ET - location: - row: 24 - column: 31 - end_location: - row: 24 - column: 59 + edits: + - content: xml.etree.ElementTree as ET + location: + row: 24 + column: 31 + end_location: + row: 24 + column: 59 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap index 96484c4ea2f5e5..d21f2bb10fd88b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 23 fix: - content: OSError - location: - row: 6 - column: 7 - end_location: - row: 6 - column: 23 + edits: + - content: OSError + location: + row: 6 + column: 7 + end_location: + row: 6 + column: 23 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 14 fix: - content: OSError - location: - row: 11 - column: 7 - end_location: - row: 11 - column: 14 + edits: + - content: OSError + location: + row: 11 + column: 7 + end_location: + row: 11 + column: 14 parent: ~ - kind: name: OSErrorAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 19 fix: - content: OSError - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 19 + edits: + - content: OSError + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 17 fix: - content: OSError - location: - row: 21 - column: 7 - end_location: - row: 21 - column: 17 + edits: + - content: OSError + location: + row: 21 + column: 7 + end_location: + row: 21 + column: 17 parent: ~ - kind: name: OSErrorAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 19 fix: - content: OSError - location: - row: 26 - column: 7 - end_location: - row: 26 - column: 19 + edits: + - content: OSError + location: + row: 26 + column: 7 + end_location: + row: 26 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 31 column: 19 fix: - content: OSError - location: - row: 31 - column: 7 - end_location: - row: 31 - column: 19 + edits: + - content: OSError + location: + row: 31 + column: 7 + end_location: + row: 31 + column: 19 parent: ~ - kind: name: OSErrorAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 36 column: 12 fix: - content: OSError - location: - row: 36 - column: 7 - end_location: - row: 36 - column: 12 + edits: + - content: OSError + location: + row: 36 + column: 7 + end_location: + row: 36 + column: 12 parent: ~ - kind: name: OSErrorAlias @@ -154,13 +161,14 @@ expression: diagnostics row: 43 column: 17 fix: - content: OSError - location: - row: 43 - column: 7 - end_location: - row: 43 - column: 17 + edits: + - content: OSError + location: + row: 43 + column: 7 + end_location: + row: 43 + column: 17 parent: ~ - kind: name: OSErrorAlias @@ -174,13 +182,14 @@ expression: diagnostics row: 47 column: 20 fix: - content: OSError - location: - row: 47 - column: 7 - end_location: - row: 47 - column: 20 + edits: + - content: OSError + location: + row: 47 + column: 7 + end_location: + row: 47 + column: 20 parent: ~ - kind: name: OSErrorAlias @@ -194,13 +203,14 @@ expression: diagnostics row: 51 column: 57 fix: - content: OSError - location: - row: 51 - column: 7 - end_location: - row: 51 - column: 57 + edits: + - content: OSError + location: + row: 51 + column: 7 + end_location: + row: 51 + column: 57 parent: ~ - kind: name: OSErrorAlias @@ -214,13 +224,14 @@ expression: diagnostics row: 58 column: 35 fix: - content: "(KeyError, OSError)" - location: - row: 58 - column: 7 - end_location: - row: 58 - column: 35 + edits: + - content: "(KeyError, OSError)" + location: + row: 58 + column: 7 + end_location: + row: 58 + column: 35 parent: ~ - kind: name: OSErrorAlias @@ -234,13 +245,14 @@ expression: diagnostics row: 65 column: 23 fix: - content: "(OSError, error)" - location: - row: 65 - column: 7 - end_location: - row: 65 - column: 23 + edits: + - content: "(OSError, error)" + location: + row: 65 + column: 7 + end_location: + row: 65 + column: 23 parent: ~ - kind: name: OSErrorAlias @@ -254,12 +266,13 @@ expression: diagnostics row: 87 column: 19 fix: - content: OSError - location: - row: 87 - column: 7 - end_location: - row: 87 - column: 19 + edits: + - content: OSError + location: + row: 87 + column: 7 + end_location: + row: 87 + column: 19 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap index 4175489659c77a..cd874d758a4c63 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 37 fix: - content: OSError - location: - row: 5 - column: 7 - end_location: - row: 5 - column: 37 + edits: + - content: OSError + location: + row: 5 + column: 7 + end_location: + row: 5 + column: 37 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 40 fix: - content: "(OSError, KeyError)" - location: - row: 7 - column: 7 - end_location: - row: 7 - column: 40 + edits: + - content: "(OSError, KeyError)" + location: + row: 7 + column: 7 + end_location: + row: 7 + column: 40 parent: ~ - kind: name: OSErrorAlias @@ -54,12 +56,13 @@ expression: diagnostics row: 16 column: 1 fix: - content: OSError - location: - row: 12 - column: 7 - end_location: - row: 16 - column: 1 + edits: + - content: OSError + location: + row: 12 + column: 7 + end_location: + row: 16 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap index a2b5213990cb38..b023303be81663 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 18 fix: - content: OSError - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 18 + edits: + - content: OSError + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 16 fix: - content: OSError - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 16 + edits: + - content: OSError + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 16 parent: ~ - kind: name: OSErrorAlias @@ -54,13 +56,14 @@ expression: diagnostics row: 12 column: 18 fix: - content: OSError - location: - row: 12 - column: 6 - end_location: - row: 12 - column: 18 + edits: + - content: OSError + location: + row: 12 + column: 6 + end_location: + row: 12 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: OSError - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 18 + edits: + - content: OSError + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -94,13 +98,14 @@ expression: diagnostics row: 15 column: 16 fix: - content: OSError - location: - row: 15 - column: 6 - end_location: - row: 15 - column: 16 + edits: + - content: OSError + location: + row: 15 + column: 6 + end_location: + row: 15 + column: 16 parent: ~ - kind: name: OSErrorAlias @@ -114,13 +119,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: OSError - location: - row: 16 - column: 6 - end_location: - row: 16 - column: 18 + edits: + - content: OSError + location: + row: 16 + column: 6 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 18 fix: - content: OSError - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 18 + edits: + - content: OSError + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -154,13 +161,14 @@ expression: diagnostics row: 25 column: 11 fix: - content: OSError - location: - row: 25 - column: 6 - end_location: - row: 25 - column: 11 + edits: + - content: OSError + location: + row: 25 + column: 6 + end_location: + row: 25 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -174,13 +182,14 @@ expression: diagnostics row: 28 column: 11 fix: - content: OSError - location: - row: 28 - column: 6 - end_location: - row: 28 - column: 11 + edits: + - content: OSError + location: + row: 28 + column: 6 + end_location: + row: 28 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -194,13 +203,14 @@ expression: diagnostics row: 31 column: 11 fix: - content: OSError - location: - row: 31 - column: 6 - end_location: - row: 31 - column: 11 + edits: + - content: OSError + location: + row: 31 + column: 6 + end_location: + row: 31 + column: 11 parent: ~ - kind: name: OSErrorAlias @@ -214,13 +224,14 @@ expression: diagnostics row: 34 column: 22 fix: - content: OSError - location: - row: 34 - column: 6 - end_location: - row: 34 - column: 22 + edits: + - content: OSError + location: + row: 34 + column: 6 + end_location: + row: 34 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -234,13 +245,14 @@ expression: diagnostics row: 35 column: 13 fix: - content: OSError - location: - row: 35 - column: 6 - end_location: - row: 35 - column: 13 + edits: + - content: OSError + location: + row: 35 + column: 6 + end_location: + row: 35 + column: 13 parent: ~ - kind: name: OSErrorAlias @@ -254,13 +266,14 @@ expression: diagnostics row: 36 column: 18 fix: - content: OSError - location: - row: 36 - column: 6 - end_location: - row: 36 - column: 18 + edits: + - content: OSError + location: + row: 36 + column: 6 + end_location: + row: 36 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -274,13 +287,14 @@ expression: diagnostics row: 38 column: 22 fix: - content: OSError - location: - row: 38 - column: 6 - end_location: - row: 38 - column: 22 + edits: + - content: OSError + location: + row: 38 + column: 6 + end_location: + row: 38 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -294,13 +308,14 @@ expression: diagnostics row: 39 column: 13 fix: - content: OSError - location: - row: 39 - column: 6 - end_location: - row: 39 - column: 13 + edits: + - content: OSError + location: + row: 39 + column: 6 + end_location: + row: 39 + column: 13 parent: ~ - kind: name: OSErrorAlias @@ -314,13 +329,14 @@ expression: diagnostics row: 40 column: 18 fix: - content: OSError - location: - row: 40 - column: 6 - end_location: - row: 40 - column: 18 + edits: + - content: OSError + location: + row: 40 + column: 6 + end_location: + row: 40 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -334,13 +350,14 @@ expression: diagnostics row: 42 column: 22 fix: - content: OSError - location: - row: 42 - column: 6 - end_location: - row: 42 - column: 22 + edits: + - content: OSError + location: + row: 42 + column: 6 + end_location: + row: 42 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -354,13 +371,14 @@ expression: diagnostics row: 48 column: 18 fix: - content: OSError - location: - row: 48 - column: 6 - end_location: - row: 48 - column: 18 + edits: + - content: OSError + location: + row: 48 + column: 6 + end_location: + row: 48 + column: 18 parent: ~ - kind: name: OSErrorAlias @@ -374,13 +392,14 @@ expression: diagnostics row: 49 column: 22 fix: - content: OSError - location: - row: 49 - column: 6 - end_location: - row: 49 - column: 22 + edits: + - content: OSError + location: + row: 49 + column: 6 + end_location: + row: 49 + column: 22 parent: ~ - kind: name: OSErrorAlias @@ -394,12 +413,13 @@ expression: diagnostics row: 50 column: 13 fix: - content: OSError - location: - row: 50 - column: 6 - end_location: - row: 50 - column: 13 + edits: + - content: OSError + location: + row: 50 + column: 6 + end_location: + row: 50 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap index 8783b93e1eacbf..328a0103cb3b2e 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP024_4.py.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 9 column: 50 fix: - content: "(OSError, exceptions.OperationalError)" - location: - row: 9 - column: 7 - end_location: - row: 9 - column: 50 + edits: + - content: "(OSError, exceptions.OperationalError)" + location: + row: 9 + column: 7 + end_location: + row: 9 + column: 50 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap index 6cdba343151b0f..24d3109660232b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP025.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 12 fix: - content: "" - location: - row: 2 - column: 4 - end_location: - row: 2 - column: 5 + edits: + - content: "" + location: + row: 2 + column: 4 + end_location: + row: 2 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 8 fix: - content: "" - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 1 + edits: + - content: "" + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 1 parent: ~ - kind: name: UnicodeKindPrefix @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 14 fix: - content: "" - location: - row: 6 - column: 6 - end_location: - row: 6 - column: 7 + edits: + - content: "" + location: + row: 6 + column: 6 + end_location: + row: 6 + column: 7 parent: ~ - kind: name: UnicodeKindPrefix @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 14 fix: - content: "" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 7 + edits: + - content: "" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 7 parent: ~ - kind: name: UnicodeKindPrefix @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 12 fix: - content: "" - location: - row: 12 - column: 4 - end_location: - row: 12 - column: 5 + edits: + - content: "" + location: + row: 12 + column: 4 + end_location: + row: 12 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -114,13 +119,14 @@ expression: diagnostics row: 12 column: 22 fix: - content: "" - location: - row: 12 - column: 14 - end_location: - row: 12 - column: 15 + edits: + - content: "" + location: + row: 12 + column: 14 + end_location: + row: 12 + column: 15 parent: ~ - kind: name: UnicodeKindPrefix @@ -134,13 +140,14 @@ expression: diagnostics row: 12 column: 34 fix: - content: "" - location: - row: 12 - column: 26 - end_location: - row: 12 - column: 27 + edits: + - content: "" + location: + row: 12 + column: 26 + end_location: + row: 12 + column: 27 parent: ~ - kind: name: UnicodeKindPrefix @@ -154,13 +161,14 @@ expression: diagnostics row: 12 column: 46 fix: - content: "" - location: - row: 12 - column: 38 - end_location: - row: 12 - column: 39 + edits: + - content: "" + location: + row: 12 + column: 38 + end_location: + row: 12 + column: 39 parent: ~ - kind: name: UnicodeKindPrefix @@ -174,13 +182,14 @@ expression: diagnostics row: 16 column: 12 fix: - content: "" - location: - row: 16 - column: 4 - end_location: - row: 16 - column: 5 + edits: + - content: "" + location: + row: 16 + column: 4 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -194,13 +203,14 @@ expression: diagnostics row: 17 column: 16 fix: - content: "" - location: - row: 17 - column: 4 - end_location: - row: 17 - column: 5 + edits: + - content: "" + location: + row: 17 + column: 4 + end_location: + row: 17 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -214,13 +224,14 @@ expression: diagnostics row: 18 column: 16 fix: - content: "" - location: - row: 18 - column: 4 - end_location: - row: 18 - column: 5 + edits: + - content: "" + location: + row: 18 + column: 4 + end_location: + row: 18 + column: 5 parent: ~ - kind: name: UnicodeKindPrefix @@ -234,12 +245,13 @@ expression: diagnostics row: 19 column: 20 fix: - content: "" - location: - row: 19 - column: 4 - end_location: - row: 19 - column: 5 + edits: + - content: "" + location: + row: 19 + column: 4 + end_location: + row: 19 + column: 5 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap index 35b374b6ae85e4..de25f71ef3a58c 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP026.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: from unittest import mock - location: - row: 3 - column: 4 - end_location: - row: 3 - column: 15 + edits: + - content: from unittest import mock + location: + row: 3 + column: 4 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: DeprecatedMockImport @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "import sys\n from unittest import mock" - location: - row: 7 - column: 4 - end_location: - row: 7 - column: 20 + edits: + - content: "import sys\n from unittest import mock" + location: + row: 7 + column: 4 + end_location: + row: 7 + column: 20 parent: ~ - kind: name: DeprecatedMockImport @@ -54,13 +56,14 @@ expression: diagnostics row: 11 column: 22 fix: - content: from unittest.mock import * - location: - row: 11 - column: 4 - end_location: - row: 11 - column: 22 + edits: + - content: from unittest.mock import * + location: + row: 11 + column: 4 + end_location: + row: 11 + column: 22 parent: ~ - kind: name: DeprecatedMockImport @@ -74,13 +77,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: from unittest import mock - location: - row: 14 - column: 0 - end_location: - row: 14 - column: 16 + edits: + - content: from unittest import mock + location: + row: 14 + column: 0 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: DeprecatedMockImport @@ -94,13 +98,14 @@ expression: diagnostics row: 17 column: 23 fix: - content: "import contextlib, sys\nfrom unittest import mock" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 28 + edits: + - content: "import contextlib, sys\nfrom unittest import mock" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 28 parent: ~ - kind: name: DeprecatedMockImport @@ -114,13 +119,14 @@ expression: diagnostics row: 20 column: 11 fix: - content: "import sys\nfrom unittest import mock" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 16 + edits: + - content: "import sys\nfrom unittest import mock" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 16 parent: ~ - kind: name: DeprecatedMockImport @@ -134,13 +140,14 @@ expression: diagnostics row: 24 column: 21 fix: - content: from unittest import mock - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 21 + edits: + - content: from unittest import mock + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 21 parent: ~ - kind: name: DeprecatedMockImport @@ -154,13 +161,14 @@ expression: diagnostics row: 32 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" - location: - row: 27 - column: 0 - end_location: - row: 32 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" + location: + row: 27 + column: 0 + end_location: + row: 32 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -174,13 +182,14 @@ expression: diagnostics row: 38 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" - location: - row: 33 - column: 0 - end_location: - row: 38 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c,\n)\nfrom unittest import mock" + location: + row: 33 + column: 0 + end_location: + row: 38 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -194,13 +203,14 @@ expression: diagnostics row: 46 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" - location: - row: 41 - column: 0 - end_location: - row: 46 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" + location: + row: 41 + column: 0 + end_location: + row: 46 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -214,13 +224,14 @@ expression: diagnostics row: 52 column: 1 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" - location: - row: 47 - column: 0 - end_location: - row: 52 - column: 1 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n)\nfrom unittest import mock" + location: + row: 47 + column: 0 + end_location: + row: 52 + column: 1 parent: ~ - kind: name: DeprecatedMockImport @@ -234,13 +245,14 @@ expression: diagnostics row: 53 column: 30 fix: - content: "from unittest.mock import a, b, c\nfrom unittest import mock" - location: - row: 53 - column: 0 - end_location: - row: 53 - column: 30 + edits: + - content: "from unittest.mock import a, b, c\nfrom unittest import mock" + location: + row: 53 + column: 0 + end_location: + row: 53 + column: 30 parent: ~ - kind: name: DeprecatedMockImport @@ -254,13 +266,14 @@ expression: diagnostics row: 54 column: 30 fix: - content: "from unittest.mock import a, b, c\nfrom unittest import mock" - location: - row: 54 - column: 0 - end_location: - row: 54 - column: 30 + edits: + - content: "from unittest.mock import a, b, c\nfrom unittest import mock" + location: + row: 54 + column: 0 + end_location: + row: 54 + column: 30 parent: ~ - kind: name: DeprecatedMockImport @@ -274,13 +287,14 @@ expression: diagnostics row: 63 column: 9 fix: - content: "from unittest.mock import (\n a,\n b,\n c\n )\n from unittest import mock" - location: - row: 58 - column: 8 - end_location: - row: 63 - column: 9 + edits: + - content: "from unittest.mock import (\n a,\n b,\n c\n )\n from unittest import mock" + location: + row: 58 + column: 8 + end_location: + row: 63 + column: 9 parent: ~ - kind: name: DeprecatedMockImport @@ -294,13 +308,14 @@ expression: diagnostics row: 69 column: 11 fix: - content: "from unittest import mock\nfrom unittest import mock" - location: - row: 69 - column: 0 - end_location: - row: 69 - column: 17 + edits: + - content: "from unittest import mock\nfrom unittest import mock" + location: + row: 69 + column: 0 + end_location: + row: 69 + column: 17 parent: ~ - kind: name: DeprecatedMockImport @@ -314,13 +329,14 @@ expression: diagnostics row: 69 column: 17 fix: - content: "from unittest import mock\nfrom unittest import mock" - location: - row: 69 - column: 0 - end_location: - row: 69 - column: 17 + edits: + - content: "from unittest import mock\nfrom unittest import mock" + location: + row: 69 + column: 0 + end_location: + row: 69 + column: 17 parent: ~ - kind: name: DeprecatedMockImport @@ -334,13 +350,14 @@ expression: diagnostics row: 72 column: 18 fix: - content: from unittest import mock as foo - location: - row: 72 - column: 0 - end_location: - row: 72 - column: 18 + edits: + - content: from unittest import mock as foo + location: + row: 72 + column: 0 + end_location: + row: 72 + column: 18 parent: ~ - kind: name: DeprecatedMockImport @@ -354,13 +371,14 @@ expression: diagnostics row: 75 column: 28 fix: - content: from unittest import mock as foo - location: - row: 75 - column: 0 - end_location: - row: 75 - column: 28 + edits: + - content: from unittest import mock as foo + location: + row: 75 + column: 0 + end_location: + row: 75 + column: 28 parent: ~ - kind: name: DeprecatedMockImport @@ -374,13 +392,14 @@ expression: diagnostics row: 79 column: 22 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -394,13 +413,14 @@ expression: diagnostics row: 79 column: 35 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -414,13 +434,14 @@ expression: diagnostics row: 79 column: 41 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 79 - column: 4 - end_location: - row: 79 - column: 41 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 79 + column: 4 + end_location: + row: 79 + column: 41 parent: ~ - kind: name: DeprecatedMockImport @@ -434,13 +455,14 @@ expression: diagnostics row: 82 column: 22 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -454,13 +476,14 @@ expression: diagnostics row: 82 column: 35 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -474,13 +497,14 @@ expression: diagnostics row: 82 column: 41 fix: - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 82 - column: 4 - end_location: - row: 82 - column: 45 + edits: + - content: "import os\n from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 82 + column: 4 + end_location: + row: 82 + column: 45 parent: ~ - kind: name: DeprecatedMockImport @@ -494,13 +518,14 @@ expression: diagnostics row: 86 column: 51 fix: - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" - location: - row: 86 - column: 4 - end_location: - row: 86 - column: 51 + edits: + - content: "from unittest import mock as foo\n from unittest import mock as bar\n from unittest import mock" + location: + row: 86 + column: 4 + end_location: + row: 86 + column: 51 parent: ~ - kind: name: DeprecatedMockImport @@ -514,12 +539,13 @@ expression: diagnostics row: 93 column: 13 fix: - content: mock - location: - row: 93 - column: 4 - end_location: - row: 93 - column: 13 + edits: + - content: mock + location: + row: 93 + column: 4 + end_location: + row: 93 + column: 13 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap index 416c92104026d9..50656935c7ce3a 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP027.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 38 fix: - content: (fn(x) for x in items) - location: - row: 2 - column: 16 - end_location: - row: 2 - column: 38 + edits: + - content: (fn(x) for x in items) + location: + row: 2 + column: 16 + end_location: + row: 2 + column: 38 parent: ~ - kind: name: UnpackedListComprehension @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 37 fix: - content: (fn(x) for x in items) - location: - row: 4 - column: 15 - end_location: - row: 4 - column: 37 + edits: + - content: (fn(x) for x in items) + location: + row: 4 + column: 15 + end_location: + row: 4 + column: 37 parent: ~ - kind: name: UnpackedListComprehension @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 47 fix: - content: (fn(x) for x in items) - location: - row: 6 - column: 25 - end_location: - row: 6 - column: 47 + edits: + - content: (fn(x) for x in items) + location: + row: 6 + column: 25 + end_location: + row: 6 + column: 47 parent: ~ - kind: name: UnpackedListComprehension @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 51 fix: - content: "([i for i in fn(x)] for x in items)" - location: - row: 8 - column: 16 - end_location: - row: 8 - column: 51 + edits: + - content: "([i for i in fn(x)] for x in items)" + location: + row: 8 + column: 16 + end_location: + row: 8 + column: 51 parent: ~ - kind: name: UnpackedListComprehension @@ -94,12 +98,13 @@ expression: diagnostics row: 13 column: 1 fix: - content: "(\n fn(x)\n for x in items\n)" - location: - row: 10 - column: 16 - end_location: - row: 13 - column: 1 + edits: + - content: "(\n fn(x)\n for x in items\n)" + location: + row: 10 + column: 16 + end_location: + row: 13 + column: 1 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap index 4799cb213a9351..d86be22bfc695d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP028_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: yield from y - location: - row: 2 - column: 4 - end_location: - row: 3 - column: 15 + edits: + - content: yield from y + location: + row: 2 + column: 4 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: yield from z - location: - row: 7 - column: 4 - end_location: - row: 8 - column: 20 + edits: + - content: yield from z + location: + row: 7 + column: 4 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: YieldInForLoop @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 15 fix: - content: "yield from [1, 2, 3]" - location: - row: 12 - column: 4 - end_location: - row: 13 - column: 15 + edits: + - content: "yield from [1, 2, 3]" + location: + row: 12 + column: 4 + end_location: + row: 13 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -74,13 +77,14 @@ expression: diagnostics row: 18 column: 15 fix: - content: "yield from {x for x in y}" - location: - row: 17 - column: 4 - end_location: - row: 18 - column: 15 + edits: + - content: "yield from {x for x in y}" + location: + row: 17 + column: 4 + end_location: + row: 18 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -94,13 +98,14 @@ expression: diagnostics row: 23 column: 15 fix: - content: "yield from (1, 2, 3)" - location: - row: 22 - column: 4 - end_location: - row: 23 - column: 15 + edits: + - content: "yield from (1, 2, 3)" + location: + row: 22 + column: 4 + end_location: + row: 23 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -114,13 +119,14 @@ expression: diagnostics row: 28 column: 18 fix: - content: "yield from {3: \"x\", 6: \"y\"}" - location: - row: 27 - column: 4 - end_location: - row: 28 - column: 18 + edits: + - content: "yield from {3: \"x\", 6: \"y\"}" + location: + row: 27 + column: 4 + end_location: + row: 28 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -134,13 +140,14 @@ expression: diagnostics row: 39 column: 18 fix: - content: "yield from { # Comment three\\n'\n 3: \"x\", # Comment four\\n'\n # Comment five\\n'\n 6: \"y\", # Comment six\\n'\n }" - location: - row: 33 - column: 4 - end_location: - row: 39 - column: 18 + edits: + - content: "yield from { # Comment three\\n'\n 3: \"x\", # Comment four\\n'\n # Comment five\\n'\n 6: \"y\", # Comment six\\n'\n }" + location: + row: 33 + column: 4 + end_location: + row: 39 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -154,13 +161,14 @@ expression: diagnostics row: 45 column: 18 fix: - content: "yield from [{3: (3, [44, \"long ss\"]), 6: \"y\"}]" - location: - row: 44 - column: 4 - end_location: - row: 45 - column: 18 + edits: + - content: "yield from [{3: (3, [44, \"long ss\"]), 6: \"y\"}]" + location: + row: 44 + column: 4 + end_location: + row: 45 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -174,13 +182,14 @@ expression: diagnostics row: 50 column: 18 fix: - content: yield from z() - location: - row: 49 - column: 4 - end_location: - row: 50 - column: 18 + edits: + - content: yield from z() + location: + row: 49 + column: 4 + end_location: + row: 50 + column: 18 parent: ~ - kind: name: YieldInForLoop @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 22 fix: - content: yield from z() - location: - row: 55 - column: 8 - end_location: - row: 57 - column: 22 + edits: + - content: yield from z() + location: + row: 55 + column: 8 + end_location: + row: 57 + column: 22 parent: ~ - kind: name: YieldInForLoop @@ -214,13 +224,14 @@ expression: diagnostics row: 68 column: 15 fix: - content: yield from x - location: - row: 67 - column: 4 - end_location: - row: 68 - column: 15 + edits: + - content: yield from x + location: + row: 67 + column: 4 + end_location: + row: 68 + column: 15 parent: ~ - kind: name: YieldInForLoop @@ -234,12 +245,13 @@ expression: diagnostics row: 73 column: 18 fix: - content: yield from z() - location: - row: 72 - column: 4 - end_location: - row: 73 - column: 18 + edits: + - content: yield from z() + location: + row: 72 + column: 4 + end_location: + row: 73 + column: 18 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap index 3f58b4df1dc4d3..4ceb60d546ea3d 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP029.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 22 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 42 fix: - content: from builtins import compile - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 42 + edits: + - content: from builtins import compile + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 42 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -54,13 +56,14 @@ expression: diagnostics row: 4 column: 46 fix: - content: from six.moves import zip_longest - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 46 + edits: + - content: from six.moves import zip_longest + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 46 parent: ~ - kind: name: UnnecessaryBuiltinImport @@ -74,12 +77,13 @@ expression: diagnostics row: 5 column: 19 fix: - content: "" - location: - row: 5 - column: 0 - end_location: - row: 6 - column: 0 + edits: + - content: "" + location: + row: 5 + column: 0 + end_location: + row: 6 + column: 0 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap index 62691d7759e88d..8e152b5c723b77 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 3 column: 33 fix: - content: "\"{}\" \"{}\" \"{}\".format(1, 2, 3)" - location: - row: 3 - column: 0 - end_location: - row: 3 - column: 33 + edits: + - content: "\"{}\" \"{}\" \"{}\".format(1, 2, 3)" + location: + row: 3 + column: 0 + end_location: + row: 3 + column: 33 parent: ~ - kind: name: FormatLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 1 fix: - content: "\"a {} complicated {} string with {} {}\".format(\n \"fourth\", \"second\", \"first\", \"third\"\n)" - location: - row: 5 - column: 0 - end_location: - row: 7 - column: 1 + edits: + - content: "\"a {} complicated {} string with {} {}\".format(\n \"fourth\", \"second\", \"first\", \"third\"\n)" + location: + row: 5 + column: 0 + end_location: + row: 7 + column: 1 parent: ~ - kind: name: FormatLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 15 fix: - content: "'{}'.format(1)" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 15 + edits: + - content: "'{}'.format(1)" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 15 parent: ~ - kind: name: FormatLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 18 fix: - content: "'{:x}'.format(30)" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 18 + edits: + - content: "'{:x}'.format(30)" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 18 parent: ~ - kind: name: FormatLiterals @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 19 fix: - content: "'{}'.format(1)" - location: - row: 13 - column: 4 - end_location: - row: 13 - column: 19 + edits: + - content: "'{}'.format(1)" + location: + row: 13 + column: 4 + end_location: + row: 13 + column: 19 parent: ~ - kind: name: FormatLiterals @@ -114,13 +119,14 @@ expression: diagnostics row: 15 column: 29 fix: - content: "'''{}\\n{}\\n'''.format(1, 2)" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 29 + edits: + - content: "'''{}\\n{}\\n'''.format(1, 2)" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 26 fix: - content: "\"foo {}\" \\\n \"bar {}\".format(1, 2)" - location: - row: 17 - column: 4 - end_location: - row: 18 - column: 26 + edits: + - content: "\"foo {}\" \\\n \"bar {}\".format(1, 2)" + location: + row: 17 + column: 4 + end_location: + row: 18 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 17 fix: - content: "(\"{}\").format(1)" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 17 + edits: + - content: "(\"{}\").format(1)" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 17 parent: ~ - kind: name: FormatLiterals @@ -174,13 +182,14 @@ expression: diagnostics row: 22 column: 27 fix: - content: "\"\\N{snowman} {}\".format(1)" - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 27 + edits: + - content: "\"\\N{snowman} {}\".format(1)" + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 27 parent: ~ - kind: name: FormatLiterals @@ -193,7 +202,8 @@ expression: diagnostics end_location: row: 24 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -206,7 +216,8 @@ expression: diagnostics end_location: row: 30 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -219,6 +230,7 @@ expression: diagnostics end_location: row: 35 column: 25 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap index e44af6bb77389a..e6014f5d43de25 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP030_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 19 fix: - content: "\"{}\".format(*args)" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 19 + edits: + - content: "\"{}\".format(*args)" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 19 parent: ~ - kind: name: FormatLiterals @@ -34,13 +35,14 @@ expression: diagnostics row: 8 column: 22 fix: - content: "\"{}\".format(**kwargs)" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 22 + edits: + - content: "\"{}\".format(**kwargs)" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 22 parent: ~ - kind: name: FormatLiterals @@ -54,13 +56,14 @@ expression: diagnostics row: 10 column: 23 fix: - content: "\"{}_{}\".format(*args)" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 23 + edits: + - content: "\"{}_{}\".format(*args)" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 23 parent: ~ - kind: name: FormatLiterals @@ -74,13 +77,14 @@ expression: diagnostics row: 12 column: 26 fix: - content: "\"{}_{}\".format(1, *args)" - location: - row: 12 - column: 0 - end_location: - row: 12 - column: 26 + edits: + - content: "\"{}_{}\".format(1, *args)" + location: + row: 12 + column: 0 + end_location: + row: 12 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -93,7 +97,8 @@ expression: diagnostics end_location: row: 14 column: 23 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: FormatLiterals @@ -107,13 +112,14 @@ expression: diagnostics row: 16 column: 26 fix: - content: "\"{}_{}\".format(*args, 1)" - location: - row: 16 - column: 0 - end_location: - row: 16 - column: 26 + edits: + - content: "\"{}_{}\".format(*args, 1)" + location: + row: 16 + column: 0 + end_location: + row: 16 + column: 26 parent: ~ - kind: name: FormatLiterals @@ -127,13 +133,14 @@ expression: diagnostics row: 18 column: 29 fix: - content: "\"{}_{}\".format(1, 2, *args)" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 29 + edits: + - content: "\"{}_{}\".format(1, 2, *args)" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -147,13 +154,14 @@ expression: diagnostics row: 20 column: 29 fix: - content: "\"{}_{}\".format(*args, 1, 2)" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 29 + edits: + - content: "\"{}_{}\".format(*args, 1, 2)" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 29 parent: ~ - kind: name: FormatLiterals @@ -167,13 +175,14 @@ expression: diagnostics row: 22 column: 33 fix: - content: "\"{}_{}_{}\".format(1, **kwargs)" - location: - row: 22 - column: 0 - end_location: - row: 22 - column: 33 + edits: + - content: "\"{}_{}_{}\".format(1, **kwargs)" + location: + row: 22 + column: 0 + end_location: + row: 22 + column: 33 parent: ~ - kind: name: FormatLiterals @@ -187,13 +196,14 @@ expression: diagnostics row: 24 column: 36 fix: - content: "\"{}_{}_{}\".format(1, 2, **kwargs)" - location: - row: 24 - column: 0 - end_location: - row: 24 - column: 36 + edits: + - content: "\"{}_{}_{}\".format(1, 2, **kwargs)" + location: + row: 24 + column: 0 + end_location: + row: 24 + column: 36 parent: ~ - kind: name: FormatLiterals @@ -207,13 +217,14 @@ expression: diagnostics row: 26 column: 39 fix: - content: "\"{}_{}_{}\".format(1, 2, 3, **kwargs)" - location: - row: 26 - column: 0 - end_location: - row: 26 - column: 39 + edits: + - content: "\"{}_{}_{}\".format(1, 2, 3, **kwargs)" + location: + row: 26 + column: 0 + end_location: + row: 26 + column: 39 parent: ~ - kind: name: FormatLiterals @@ -227,12 +238,13 @@ expression: diagnostics row: 28 column: 46 fix: - content: "\"{}_{}_{}\".format(1, 2, 3, *args, **kwargs)" - location: - row: 28 - column: 0 - end_location: - row: 28 - column: 46 + edits: + - content: "\"{}_{}_{}\".format(1, 2, 3, *args, **kwargs)" + location: + row: 28 + column: 0 + end_location: + row: 28 + column: 46 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap index acb8c5312199f0..c5a2acee6dfb71 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP031_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 4 column: 22 fix: - content: "'{} {}'.format(a, b)" - location: - row: 4 - column: 6 - end_location: - row: 4 - column: 22 + edits: + - content: "'{} {}'.format(a, b)" + location: + row: 4 + column: 6 + end_location: + row: 4 + column: 22 parent: ~ - kind: name: PrintfStringFormatting @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 21 fix: - content: "'{}{}'.format(a, b)" - location: - row: 6 - column: 6 - end_location: - row: 6 - column: 21 + edits: + - content: "'{}{}'.format(a, b)" + location: + row: 6 + column: 6 + end_location: + row: 6 + column: 21 parent: ~ - kind: name: PrintfStringFormatting @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 20 fix: - content: "\"trivial\".format()" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 20 + edits: + - content: "\"trivial\".format()" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -74,13 +77,14 @@ expression: diagnostics row: 10 column: 24 fix: - content: "\"{}\".format(\"simple\")" - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 24 + edits: + - content: "\"{}\".format(\"simple\")" + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 24 parent: ~ - kind: name: PrintfStringFormatting @@ -94,13 +98,14 @@ expression: diagnostics row: 12 column: 34 fix: - content: "\"{}\".format(\"%s\" % (\"nested\",))" - location: - row: 12 - column: 6 - end_location: - row: 12 - column: 34 + edits: + - content: "\"{}\".format(\"%s\" % (\"nested\",))" + location: + row: 12 + column: 6 + end_location: + row: 12 + column: 34 parent: ~ - kind: name: PrintfStringFormatting @@ -114,13 +119,14 @@ expression: diagnostics row: 12 column: 32 fix: - content: "\"{}\".format(\"nested\")" - location: - row: 12 - column: 14 - end_location: - row: 12 - column: 32 + edits: + - content: "\"{}\".format(\"nested\")" + location: + row: 12 + column: 14 + end_location: + row: 12 + column: 32 parent: ~ - kind: name: PrintfStringFormatting @@ -134,13 +140,14 @@ expression: diagnostics row: 14 column: 28 fix: - content: "\"{}% percent\".format(15)" - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 28 + edits: + - content: "\"{}% percent\".format(15)" + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 28 parent: ~ - kind: name: PrintfStringFormatting @@ -154,13 +161,14 @@ expression: diagnostics row: 16 column: 18 fix: - content: "\"{:f}\".format(15)" - location: - row: 16 - column: 6 - end_location: - row: 16 - column: 18 + edits: + - content: "\"{:f}\".format(15)" + location: + row: 16 + column: 6 + end_location: + row: 16 + column: 18 parent: ~ - kind: name: PrintfStringFormatting @@ -174,13 +182,14 @@ expression: diagnostics row: 18 column: 19 fix: - content: "\"{:.0f}\".format(15)" - location: - row: 18 - column: 6 - end_location: - row: 18 - column: 19 + edits: + - content: "\"{:.0f}\".format(15)" + location: + row: 18 + column: 6 + end_location: + row: 18 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -194,13 +203,14 @@ expression: diagnostics row: 20 column: 20 fix: - content: "\"{:.3f}\".format(15)" - location: - row: 20 - column: 6 - end_location: - row: 20 - column: 20 + edits: + - content: "\"{:.3f}\".format(15)" + location: + row: 20 + column: 6 + end_location: + row: 20 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -214,13 +224,14 @@ expression: diagnostics row: 22 column: 19 fix: - content: "\"{:3f}\".format(15)" - location: - row: 22 - column: 6 - end_location: - row: 22 - column: 19 + edits: + - content: "\"{:3f}\".format(15)" + location: + row: 22 + column: 6 + end_location: + row: 22 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -234,13 +245,14 @@ expression: diagnostics row: 24 column: 19 fix: - content: "\"{:<5f}\".format(5)" - location: - row: 24 - column: 6 - end_location: - row: 24 - column: 19 + edits: + - content: "\"{:<5f}\".format(5)" + location: + row: 24 + column: 6 + end_location: + row: 24 + column: 19 parent: ~ - kind: name: PrintfStringFormatting @@ -254,13 +266,14 @@ expression: diagnostics row: 26 column: 18 fix: - content: "\"{:9f}\".format(5)" - location: - row: 26 - column: 6 - end_location: - row: 26 - column: 18 + edits: + - content: "\"{:9f}\".format(5)" + location: + row: 26 + column: 6 + end_location: + row: 26 + column: 18 parent: ~ - kind: name: PrintfStringFormatting @@ -274,13 +287,14 @@ expression: diagnostics row: 28 column: 20 fix: - content: "\"{:#o}\".format(123)" - location: - row: 28 - column: 6 - end_location: - row: 28 - column: 20 + edits: + - content: "\"{:#o}\".format(123)" + location: + row: 28 + column: 6 + end_location: + row: 28 + column: 20 parent: ~ - kind: name: PrintfStringFormatting @@ -294,13 +308,14 @@ expression: diagnostics row: 30 column: 26 fix: - content: "\"brace {{}} {}\".format(1)" - location: - row: 30 - column: 6 - end_location: - row: 30 - column: 26 + edits: + - content: "\"brace {{}} {}\".format(1)" + location: + row: 30 + column: 6 + end_location: + row: 30 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -314,13 +329,14 @@ expression: diagnostics row: 35 column: 9 fix: - content: "\"{}\".format(\n \"trailing comma\",\n )" - location: - row: 33 - column: 2 - end_location: - row: 35 - column: 9 + edits: + - content: "\"{}\".format(\n \"trailing comma\",\n )" + location: + row: 33 + column: 2 + end_location: + row: 35 + column: 9 parent: ~ - kind: name: PrintfStringFormatting @@ -334,13 +350,14 @@ expression: diagnostics row: 38 column: 22 fix: - content: "\"foo {} \".format(x)" - location: - row: 38 - column: 6 - end_location: - row: 38 - column: 22 + edits: + - content: "\"foo {} \".format(x)" + location: + row: 38 + column: 6 + end_location: + row: 38 + column: 22 parent: ~ - kind: name: PrintfStringFormatting @@ -354,13 +371,14 @@ expression: diagnostics row: 40 column: 26 fix: - content: "\"{k}\".format(k=\"v\")" - location: - row: 40 - column: 6 - end_location: - row: 40 - column: 26 + edits: + - content: "\"{k}\".format(k=\"v\")" + location: + row: 40 + column: 6 + end_location: + row: 40 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -374,13 +392,14 @@ expression: diagnostics row: 45 column: 1 fix: - content: "\"{k}\".format(\n k=\"v\",\n i=\"j\",\n)" - location: - row: 42 - column: 6 - end_location: - row: 45 - column: 1 + edits: + - content: "\"{k}\".format(\n k=\"v\",\n i=\"j\",\n)" + location: + row: 42 + column: 6 + end_location: + row: 45 + column: 1 parent: ~ - kind: name: PrintfStringFormatting @@ -394,13 +413,14 @@ expression: diagnostics row: 47 column: 37 fix: - content: "\"{to_list}\".format(to_list=[])" - location: - row: 47 - column: 6 - end_location: - row: 47 - column: 37 + edits: + - content: "\"{to_list}\".format(to_list=[])" + location: + row: 47 + column: 6 + end_location: + row: 47 + column: 37 parent: ~ - kind: name: PrintfStringFormatting @@ -414,13 +434,14 @@ expression: diagnostics row: 49 column: 43 fix: - content: "\"{k}\".format(k=\"v\", i=1, j=[])" - location: - row: 49 - column: 6 - end_location: - row: 49 - column: 43 + edits: + - content: "\"{k}\".format(k=\"v\", i=1, j=[])" + location: + row: 49 + column: 6 + end_location: + row: 49 + column: 43 parent: ~ - kind: name: PrintfStringFormatting @@ -434,13 +455,14 @@ expression: diagnostics row: 51 column: 29 fix: - content: "\"{ab}\".format(ab=1)" - location: - row: 51 - column: 6 - end_location: - row: 51 - column: 29 + edits: + - content: "\"{ab}\".format(ab=1)" + location: + row: 51 + column: 6 + end_location: + row: 51 + column: 29 parent: ~ - kind: name: PrintfStringFormatting @@ -454,13 +476,14 @@ expression: diagnostics row: 53 column: 27 fix: - content: "\"{a}\".format(a=1)" - location: - row: 53 - column: 6 - end_location: - row: 53 - column: 27 + edits: + - content: "\"{a}\".format(a=1)" + location: + row: 53 + column: 6 + end_location: + row: 53 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -474,13 +497,14 @@ expression: diagnostics row: 57 column: 21 fix: - content: "\"foo {} \"\n \"bar {}\".format(x, y)" - location: - row: 56 - column: 4 - end_location: - row: 57 - column: 21 + edits: + - content: "\"foo {} \"\n \"bar {}\".format(x, y)" + location: + row: 56 + column: 4 + end_location: + row: 57 + column: 21 parent: ~ - kind: name: PrintfStringFormatting @@ -494,13 +518,14 @@ expression: diagnostics row: 62 column: 40 fix: - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, bar=y)" - location: - row: 61 - column: 4 - end_location: - row: 62 - column: 40 + edits: + - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, bar=y)" + location: + row: 61 + column: 4 + end_location: + row: 62 + column: 40 parent: ~ - kind: name: PrintfStringFormatting @@ -514,13 +539,14 @@ expression: diagnostics row: 68 column: 37 fix: - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, **bar)" - location: - row: 67 - column: 4 - end_location: - row: 68 - column: 37 + edits: + - content: "\"foo {foo} \"\n \"bar {bar}\".format(foo=x, **bar)" + location: + row: 67 + column: 4 + end_location: + row: 68 + column: 37 parent: ~ - kind: name: PrintfStringFormatting @@ -534,13 +560,14 @@ expression: diagnostics row: 71 column: 29 fix: - content: "\"{} \\N{snowman}\".format(a)" - location: - row: 71 - column: 6 - end_location: - row: 71 - column: 29 + edits: + - content: "\"{} \\N{snowman}\".format(a)" + location: + row: 71 + column: 6 + end_location: + row: 71 + column: 29 parent: ~ - kind: name: PrintfStringFormatting @@ -554,13 +581,14 @@ expression: diagnostics row: 73 column: 40 fix: - content: "\"{foo} \\N{snowman}\".format(foo=1)" - location: - row: 73 - column: 6 - end_location: - row: 73 - column: 40 + edits: + - content: "\"{foo} \\N{snowman}\".format(foo=1)" + location: + row: 73 + column: 6 + end_location: + row: 73 + column: 40 parent: ~ - kind: name: PrintfStringFormatting @@ -574,13 +602,14 @@ expression: diagnostics row: 75 column: 35 fix: - content: "(\"foo {} \" \"bar {}\").format(x, y)" - location: - row: 75 - column: 6 - end_location: - row: 75 - column: 35 + edits: + - content: "(\"foo {} \" \"bar {}\").format(x, y)" + location: + row: 75 + column: 6 + end_location: + row: 75 + column: 35 parent: ~ - kind: name: PrintfStringFormatting @@ -594,13 +623,14 @@ expression: diagnostics row: 78 column: 26 fix: - content: "'Hello {}'.format(\"World\")" - location: - row: 78 - column: 6 - end_location: - row: 78 - column: 26 + edits: + - content: "'Hello {}'.format(\"World\")" + location: + row: 78 + column: 6 + end_location: + row: 78 + column: 26 parent: ~ - kind: name: PrintfStringFormatting @@ -614,13 +644,14 @@ expression: diagnostics row: 79 column: 27 fix: - content: "'Hello {}'.format(f\"World\")" - location: - row: 79 - column: 6 - end_location: - row: 79 - column: 27 + edits: + - content: "'Hello {}'.format(f\"World\")" + location: + row: 79 + column: 6 + end_location: + row: 79 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -634,13 +665,14 @@ expression: diagnostics row: 80 column: 27 fix: - content: "'Hello {} ({})'.format(*bar)" - location: - row: 80 - column: 6 - end_location: - row: 80 - column: 27 + edits: + - content: "'Hello {} ({})'.format(*bar)" + location: + row: 80 + column: 6 + end_location: + row: 80 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -654,13 +686,14 @@ expression: diagnostics row: 81 column: 31 fix: - content: "'Hello {} ({})'.format(*bar.baz)" - location: - row: 81 - column: 6 - end_location: - row: 81 - column: 31 + edits: + - content: "'Hello {} ({})'.format(*bar.baz)" + location: + row: 81 + column: 6 + end_location: + row: 81 + column: 31 parent: ~ - kind: name: PrintfStringFormatting @@ -674,13 +707,14 @@ expression: diagnostics row: 82 column: 34 fix: - content: "'Hello {} ({})'.format(*bar['bop'])" - location: - row: 82 - column: 6 - end_location: - row: 82 - column: 34 + edits: + - content: "'Hello {} ({})'.format(*bar['bop'])" + location: + row: 82 + column: 6 + end_location: + row: 82 + column: 34 parent: ~ - kind: name: PrintfStringFormatting @@ -694,13 +728,14 @@ expression: diagnostics row: 83 column: 27 fix: - content: "'Hello {arg}'.format(**bar)" - location: - row: 83 - column: 6 - end_location: - row: 83 - column: 27 + edits: + - content: "'Hello {arg}'.format(**bar)" + location: + row: 83 + column: 6 + end_location: + row: 83 + column: 27 parent: ~ - kind: name: PrintfStringFormatting @@ -714,13 +749,14 @@ expression: diagnostics row: 84 column: 31 fix: - content: "'Hello {arg}'.format(**bar.baz)" - location: - row: 84 - column: 6 - end_location: - row: 84 - column: 31 + edits: + - content: "'Hello {arg}'.format(**bar.baz)" + location: + row: 84 + column: 6 + end_location: + row: 84 + column: 31 parent: ~ - kind: name: PrintfStringFormatting @@ -734,12 +770,13 @@ expression: diagnostics row: 85 column: 34 fix: - content: "'Hello {arg}'.format(**bar['bop'])" - location: - row: 85 - column: 6 - end_location: - row: 85 - column: 34 + edits: + - content: "'Hello {arg}'.format(**bar['bop'])" + location: + row: 85 + column: 6 + end_location: + row: 85 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap index 9be0af3e0c9797..4aba54b1aeb1d7 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP032.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 20 fix: - content: "f\"{a} {b}\"" - location: - row: 5 - column: 0 - end_location: - row: 5 - column: 20 + edits: + - content: "f\"{a} {b}\"" + location: + row: 5 + column: 0 + end_location: + row: 5 + column: 20 parent: ~ - kind: name: FString @@ -34,13 +35,14 @@ expression: diagnostics row: 7 column: 22 fix: - content: "f\"{b} {a}\"" - location: - row: 7 - column: 0 - end_location: - row: 7 - column: 22 + edits: + - content: "f\"{b} {a}\"" + location: + row: 7 + column: 0 + end_location: + row: 7 + column: 22 parent: ~ - kind: name: FString @@ -54,13 +56,14 @@ expression: diagnostics row: 9 column: 19 fix: - content: "f\"{z.y}\"" - location: - row: 9 - column: 0 - end_location: - row: 9 - column: 19 + edits: + - content: "f\"{z.y}\"" + location: + row: 9 + column: 0 + end_location: + row: 9 + column: 19 parent: ~ - kind: name: FString @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 24 fix: - content: "f\"{a.x} {b.y}\"" - location: - row: 11 - column: 0 - end_location: - row: 11 - column: 24 + edits: + - content: "f\"{a.x} {b.y}\"" + location: + row: 11 + column: 0 + end_location: + row: 11 + column: 24 parent: ~ - kind: name: FString @@ -94,13 +98,14 @@ expression: diagnostics row: 13 column: 24 fix: - content: "f\"{a.b} {c.d}\"" - location: - row: 13 - column: 0 - end_location: - row: 13 - column: 24 + edits: + - content: "f\"{a.b} {c.d}\"" + location: + row: 13 + column: 0 + end_location: + row: 13 + column: 24 parent: ~ - kind: name: FString @@ -114,13 +119,14 @@ expression: diagnostics row: 15 column: 16 fix: - content: "f\"{a()}\"" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 16 + edits: + - content: "f\"{a()}\"" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 16 parent: ~ - kind: name: FString @@ -134,13 +140,14 @@ expression: diagnostics row: 17 column: 18 fix: - content: "f\"{a.b()}\"" - location: - row: 17 - column: 0 - end_location: - row: 17 - column: 18 + edits: + - content: "f\"{a.b()}\"" + location: + row: 17 + column: 0 + end_location: + row: 17 + column: 18 parent: ~ - kind: name: FString @@ -154,13 +161,14 @@ expression: diagnostics row: 19 column: 22 fix: - content: "f\"{a.b().c()}\"" - location: - row: 19 - column: 0 - end_location: - row: 19 - column: 22 + edits: + - content: "f\"{a.b().c()}\"" + location: + row: 19 + column: 0 + end_location: + row: 19 + column: 22 parent: ~ - kind: name: FString @@ -174,13 +182,14 @@ expression: diagnostics row: 21 column: 24 fix: - content: "f\"hello {name}!\"" - location: - row: 21 - column: 0 - end_location: - row: 21 - column: 24 + edits: + - content: "f\"hello {name}!\"" + location: + row: 21 + column: 0 + end_location: + row: 21 + column: 24 parent: ~ - kind: name: FString @@ -194,13 +203,14 @@ expression: diagnostics row: 23 column: 27 fix: - content: "f\"{a}{b}{c}\"" - location: - row: 23 - column: 0 - end_location: - row: 23 - column: 27 + edits: + - content: "f\"{a}{b}{c}\"" + location: + row: 23 + column: 0 + end_location: + row: 23 + column: 27 parent: ~ - kind: name: FString @@ -214,13 +224,14 @@ expression: diagnostics row: 25 column: 16 fix: - content: "f\"{0x0}\"" - location: - row: 25 - column: 0 - end_location: - row: 25 - column: 16 + edits: + - content: "f\"{0x0}\"" + location: + row: 25 + column: 0 + end_location: + row: 25 + column: 16 parent: ~ - kind: name: FString @@ -234,13 +245,14 @@ expression: diagnostics row: 27 column: 20 fix: - content: "f\"{a} {b}\"" - location: - row: 27 - column: 0 - end_location: - row: 27 - column: 20 + edits: + - content: "f\"{a} {b}\"" + location: + row: 27 + column: 0 + end_location: + row: 27 + column: 20 parent: ~ - kind: name: FString @@ -254,13 +266,14 @@ expression: diagnostics row: 29 column: 24 fix: - content: "f\"\"\"{a} {b}\"\"\"" - location: - row: 29 - column: 0 - end_location: - row: 29 - column: 24 + edits: + - content: "f\"\"\"{a} {b}\"\"\"" + location: + row: 29 + column: 0 + end_location: + row: 29 + column: 24 parent: ~ - kind: name: FString @@ -274,13 +287,14 @@ expression: diagnostics row: 31 column: 17 fix: - content: "f\"foo{1}\"" - location: - row: 31 - column: 0 - end_location: - row: 31 - column: 17 + edits: + - content: "f\"foo{1}\"" + location: + row: 31 + column: 0 + end_location: + row: 31 + column: 17 parent: ~ - kind: name: FString @@ -294,13 +308,14 @@ expression: diagnostics row: 33 column: 18 fix: - content: "fr\"foo{1}\"" - location: - row: 33 - column: 0 - end_location: - row: 33 - column: 18 + edits: + - content: "fr\"foo{1}\"" + location: + row: 33 + column: 0 + end_location: + row: 33 + column: 18 parent: ~ - kind: name: FString @@ -314,13 +329,14 @@ expression: diagnostics row: 35 column: 21 fix: - content: "f\"{1}\"" - location: - row: 35 - column: 4 - end_location: - row: 35 - column: 21 + edits: + - content: "f\"{1}\"" + location: + row: 35 + column: 4 + end_location: + row: 35 + column: 21 parent: ~ - kind: name: FString @@ -334,13 +350,14 @@ expression: diagnostics row: 37 column: 25 fix: - content: "f\"foo {x} \"" - location: - row: 37 - column: 6 - end_location: - row: 37 - column: 25 + edits: + - content: "f\"foo {x} \"" + location: + row: 37 + column: 6 + end_location: + row: 37 + column: 25 parent: ~ - kind: name: FString @@ -354,13 +371,14 @@ expression: diagnostics row: 39 column: 20 fix: - content: "f\"{a[b]}\"" - location: - row: 39 - column: 0 - end_location: - row: 39 - column: 20 + edits: + - content: "f\"{a[b]}\"" + location: + row: 39 + column: 0 + end_location: + row: 39 + column: 20 parent: ~ - kind: name: FString @@ -374,13 +392,14 @@ expression: diagnostics row: 41 column: 22 fix: - content: "f\"{a.a[b]}\"" - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 22 + edits: + - content: "f\"{a.a[b]}\"" + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 22 parent: ~ - kind: name: FString @@ -394,13 +413,14 @@ expression: diagnostics row: 43 column: 29 fix: - content: "f\"{escaped}{{}}{y}\"" - location: - row: 43 - column: 0 - end_location: - row: 43 - column: 29 + edits: + - content: "f\"{escaped}{{}}{y}\"" + location: + row: 43 + column: 0 + end_location: + row: 43 + column: 29 parent: ~ - kind: name: FString @@ -414,13 +434,14 @@ expression: diagnostics row: 45 column: 14 fix: - content: "f\"{a}\"" - location: - row: 45 - column: 0 - end_location: - row: 45 - column: 14 + edits: + - content: "f\"{a}\"" + location: + row: 45 + column: 0 + end_location: + row: 45 + column: 14 parent: ~ - kind: name: FString @@ -434,13 +455,14 @@ expression: diagnostics row: 47 column: 24 fix: - content: "f'({a}={{0!e}})'" - location: - row: 47 - column: 0 - end_location: - row: 47 - column: 24 + edits: + - content: "f'({a}={{0!e}})'" + location: + row: 47 + column: 0 + end_location: + row: 47 + column: 24 parent: ~ - kind: name: FString @@ -454,13 +476,14 @@ expression: diagnostics row: 92 column: 53 fix: - content: " f\"{osname}-{version}.{release}\"" - location: - row: 92 - column: 10 - end_location: - row: 92 - column: 53 + edits: + - content: " f\"{osname}-{version}.{release}\"" + location: + row: 92 + column: 10 + end_location: + row: 92 + column: 53 parent: ~ - kind: name: FString @@ -474,13 +497,14 @@ expression: diagnostics row: 96 column: 23 fix: - content: " f\"{1}\"" - location: - row: 96 - column: 9 - end_location: - row: 96 - column: 23 + edits: + - content: " f\"{1}\"" + location: + row: 96 + column: 9 + end_location: + row: 96 + column: 23 parent: ~ - kind: name: FString @@ -494,12 +518,13 @@ expression: diagnostics row: 99 column: 20 fix: - content: " f\"{1}\"" - location: - row: 99 - column: 6 - end_location: - row: 99 - column: 20 + edits: + - content: " f\"{1}\"" + location: + row: 99 + column: 6 + end_location: + row: 99 + column: 20 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap index 28a1e8a2435bef..d587e228b2d65b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP033.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 34 fix: - content: functools.cache - location: - row: 5 - column: 1 - end_location: - row: 5 - column: 34 + edits: + - content: functools.cache + location: + row: 5 + column: 1 + end_location: + row: 5 + column: 34 parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -33,7 +34,8 @@ expression: diagnostics end_location: row: 10 column: 24 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -47,13 +49,14 @@ expression: diagnostics row: 16 column: 34 fix: - content: functools.cache - location: - row: 16 - column: 1 - end_location: - row: 16 - column: 34 + edits: + - content: functools.cache + location: + row: 16 + column: 1 + end_location: + row: 16 + column: 34 parent: ~ - kind: name: LRUCacheWithMaxsizeNone @@ -67,12 +70,13 @@ expression: diagnostics row: 21 column: 34 fix: - content: functools.cache - location: - row: 21 - column: 1 - end_location: - row: 21 - column: 34 + edits: + - content: functools.cache + location: + row: 21 + column: 1 + end_location: + row: 21 + column: 34 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap index 11131316f68d9b..5043eb538aba33 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP034.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 13 fix: - content: "\"foo\"" - location: - row: 2 - column: 6 - end_location: - row: 2 - column: 13 + edits: + - content: "\"foo\"" + location: + row: 2 + column: 6 + end_location: + row: 2 + column: 13 parent: ~ - kind: name: ExtraneousParentheses @@ -34,13 +35,14 @@ expression: diagnostics row: 5 column: 26 fix: - content: "\"hell((goodybe))o\"" - location: - row: 5 - column: 6 - end_location: - row: 5 - column: 26 + edits: + - content: "\"hell((goodybe))o\"" + location: + row: 5 + column: 6 + end_location: + row: 5 + column: 26 parent: ~ - kind: name: ExtraneousParentheses @@ -54,13 +56,14 @@ expression: diagnostics row: 8 column: 15 fix: - content: "(\"foo\")" - location: - row: 8 - column: 6 - end_location: - row: 8 - column: 15 + edits: + - content: "(\"foo\")" + location: + row: 8 + column: 6 + end_location: + row: 8 + column: 15 parent: ~ - kind: name: ExtraneousParentheses @@ -74,13 +77,14 @@ expression: diagnostics row: 11 column: 13 fix: - content: ((1)) - location: - row: 11 - column: 6 - end_location: - row: 11 - column: 13 + edits: + - content: ((1)) + location: + row: 11 + column: 6 + end_location: + row: 11 + column: 13 parent: ~ - kind: name: ExtraneousParentheses @@ -94,13 +98,14 @@ expression: diagnostics row: 14 column: 25 fix: - content: "\"foo{}\".format(1)" - location: - row: 14 - column: 6 - end_location: - row: 14 - column: 25 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 14 + column: 6 + end_location: + row: 14 + column: 25 parent: ~ - kind: name: ExtraneousParentheses @@ -114,13 +119,14 @@ expression: diagnostics row: 18 column: 23 fix: - content: "\"foo{}\".format(1)" - location: - row: 18 - column: 4 - end_location: - row: 18 - column: 23 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 18 + column: 4 + end_location: + row: 18 + column: 23 parent: ~ - kind: name: ExtraneousParentheses @@ -134,13 +140,14 @@ expression: diagnostics row: 25 column: 5 fix: - content: "\n \"foo\"\n " - location: - row: 23 - column: 4 - end_location: - row: 25 - column: 5 + edits: + - content: "\n \"foo\"\n " + location: + row: 23 + column: 4 + end_location: + row: 25 + column: 5 parent: ~ - kind: name: ExtraneousParentheses @@ -154,13 +161,14 @@ expression: diagnostics row: 30 column: 23 fix: - content: (yield 1) - location: - row: 30 - column: 12 - end_location: - row: 30 - column: 23 + edits: + - content: (yield 1) + location: + row: 30 + column: 12 + end_location: + row: 30 + column: 23 parent: ~ - kind: name: ExtraneousParentheses @@ -174,13 +182,14 @@ expression: diagnostics row: 35 column: 27 fix: - content: "\"foo{}\".format(1)" - location: - row: 35 - column: 8 - end_location: - row: 35 - column: 27 + edits: + - content: "\"foo{}\".format(1)" + location: + row: 35 + column: 8 + end_location: + row: 35 + column: 27 parent: ~ - kind: name: ExtraneousParentheses @@ -194,12 +203,13 @@ expression: diagnostics row: 39 column: 27 fix: - content: x for x in range(3) - location: - row: 39 - column: 6 - end_location: - row: 39 - column: 27 + edits: + - content: x for x in range(3) + location: + row: 39 + column: 6 + end_location: + row: 39 + column: 27 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap index 441079428fa403..5b72677418c04b 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP035.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 2 column: 31 fix: - content: from collections.abc import Mapping - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 31 + edits: + - content: from collections.abc import Mapping + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 31 parent: ~ - kind: name: DeprecatedImport @@ -34,13 +35,14 @@ expression: diagnostics row: 4 column: 38 fix: - content: from collections.abc import Mapping as MAP - location: - row: 4 - column: 0 - end_location: - row: 4 - column: 38 + edits: + - content: from collections.abc import Mapping as MAP + location: + row: 4 + column: 0 + end_location: + row: 4 + column: 38 parent: ~ - kind: name: DeprecatedImport @@ -54,13 +56,14 @@ expression: diagnostics row: 6 column: 41 fix: - content: "from collections.abc import Mapping, Sequence" - location: - row: 6 - column: 0 - end_location: - row: 6 - column: 41 + edits: + - content: "from collections.abc import Mapping, Sequence" + location: + row: 6 + column: 0 + end_location: + row: 6 + column: 41 parent: ~ - kind: name: DeprecatedImport @@ -74,13 +77,14 @@ expression: diagnostics row: 8 column: 40 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 8 - column: 0 - end_location: - row: 8 - column: 40 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 8 + column: 0 + end_location: + row: 8 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -94,13 +98,14 @@ expression: diagnostics row: 10 column: 42 fix: - content: "from collections import (Counter)\nfrom collections.abc import Mapping" - location: - row: 10 - column: 0 - end_location: - row: 10 - column: 42 + edits: + - content: "from collections import (Counter)\nfrom collections.abc import Mapping" + location: + row: 10 + column: 0 + end_location: + row: 10 + column: 42 parent: ~ - kind: name: DeprecatedImport @@ -114,13 +119,14 @@ expression: diagnostics row: 13 column: 33 fix: - content: "from collections import (Counter)\nfrom collections.abc import Mapping" - location: - row: 12 - column: 0 - end_location: - row: 13 - column: 33 + edits: + - content: "from collections import (Counter)\nfrom collections.abc import Mapping" + location: + row: 12 + column: 0 + end_location: + row: 13 + column: 33 parent: ~ - kind: name: DeprecatedImport @@ -134,13 +140,14 @@ expression: diagnostics row: 16 column: 32 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 15 - column: 0 - end_location: - row: 16 - column: 32 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 15 + column: 0 + end_location: + row: 16 + column: 32 parent: ~ - kind: name: DeprecatedImport @@ -154,13 +161,14 @@ expression: diagnostics row: 18 column: 50 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping, Sequence" - location: - row: 18 - column: 0 - end_location: - row: 18 - column: 50 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping, Sequence" + location: + row: 18 + column: 0 + end_location: + row: 18 + column: 50 parent: ~ - kind: name: DeprecatedImport @@ -174,13 +182,14 @@ expression: diagnostics row: 20 column: 51 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping as mapping" - location: - row: 20 - column: 0 - end_location: - row: 20 - column: 51 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping as mapping" + location: + row: 20 + column: 0 + end_location: + row: 20 + column: 51 parent: ~ - kind: name: DeprecatedImport @@ -194,13 +203,14 @@ expression: diagnostics row: 23 column: 44 fix: - content: "from collections import Counter\n from collections.abc import Mapping" - location: - row: 23 - column: 4 - end_location: - row: 23 - column: 44 + edits: + - content: "from collections import Counter\n from collections.abc import Mapping" + location: + row: 23 + column: 4 + end_location: + row: 23 + column: 44 parent: ~ - kind: name: DeprecatedImport @@ -214,13 +224,14 @@ expression: diagnostics row: 28 column: 44 fix: - content: "from collections import Counter\n from collections.abc import Mapping" - location: - row: 28 - column: 4 - end_location: - row: 28 - column: 44 + edits: + - content: "from collections import Counter\n from collections.abc import Mapping" + location: + row: 28 + column: 4 + end_location: + row: 28 + column: 44 parent: ~ - kind: name: DeprecatedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 30 column: 40 fix: - content: from collections.abc import Mapping - location: - row: 30 - column: 9 - end_location: - row: 30 - column: 40 + edits: + - content: from collections.abc import Mapping + location: + row: 30 + column: 9 + end_location: + row: 30 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -254,13 +266,14 @@ expression: diagnostics row: 33 column: 40 fix: - content: "from collections import Counter\nfrom collections.abc import Mapping" - location: - row: 33 - column: 0 - end_location: - row: 33 - column: 40 + edits: + - content: "from collections import Counter\nfrom collections.abc import Mapping" + location: + row: 33 + column: 0 + end_location: + row: 33 + column: 40 parent: ~ - kind: name: DeprecatedImport @@ -274,13 +287,14 @@ expression: diagnostics row: 42 column: 5 fix: - content: "from collections import (\n Bad,\n Good,\n )\n from collections.abc import Mapping, Callable" - location: - row: 37 - column: 4 - end_location: - row: 42 - column: 5 + edits: + - content: "from collections import (\n Bad,\n Good,\n )\n from collections.abc import Mapping, Callable" + location: + row: 37 + column: 4 + end_location: + row: 42 + column: 5 parent: ~ - kind: name: DeprecatedImport @@ -294,13 +308,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Match, Pattern, List, OrderedDict, AbstractSet, ContextManager\nfrom collections.abc import Callable" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Match, Pattern, List, OrderedDict, AbstractSet, ContextManager\nfrom collections.abc import Callable" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -314,13 +329,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Callable, Match, Pattern, List, AbstractSet, ContextManager\nfrom collections import OrderedDict" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Callable, Match, Pattern, List, AbstractSet, ContextManager\nfrom collections import OrderedDict" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -334,13 +350,14 @@ expression: diagnostics row: 44 column: 91 fix: - content: "from typing import Callable, List, OrderedDict, AbstractSet, ContextManager\nfrom re import Match, Pattern" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 91 + edits: + - content: "from typing import Callable, List, OrderedDict, AbstractSet, ContextManager\nfrom re import Match, Pattern" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 91 parent: ~ - kind: name: DeprecatedImport @@ -353,7 +370,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -366,7 +384,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -379,7 +398,8 @@ expression: diagnostics end_location: row: 44 column: 91 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DeprecatedImport @@ -392,6 +412,7 @@ expression: diagnostics end_location: row: 47 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap index b26912ed3da72f..bc76cc83716081 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_0.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 16 fix: - content: "print(\"py3\")" - location: - row: 3 - column: 0 - end_location: - row: 6 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 3 + column: 0 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 14 column: 16 fix: - content: "print(\"py3\")" - location: - row: 8 - column: 0 - end_location: - row: 14 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 8 + column: 0 + end_location: + row: 14 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 19 fix: - content: "print(\"PY3!\")" - location: - row: 16 - column: 0 - end_location: - row: 17 - column: 19 + edits: + - content: "print(\"PY3!\")" + location: + row: 16 + column: 0 + end_location: + row: 17 + column: 19 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 23 column: 20 fix: - content: " print(\"PY3\")" - location: - row: 20 - column: 0 - end_location: - row: 23 - column: 20 + edits: + - content: " print(\"PY3\")" + location: + row: 20 + column: 0 + end_location: + row: 23 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 16 fix: - content: "print(\"py3\")" - location: - row: 25 - column: 0 - end_location: - row: 27 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 25 + column: 0 + end_location: + row: 27 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 30 fix: - content: "def f():\n print(\"py3\")\n print(\"This the next\")" - location: - row: 29 - column: 0 - end_location: - row: 35 - column: 30 + edits: + - content: "def f():\n print(\"py3\")\n print(\"This the next\")" + location: + row: 29 + column: 0 + end_location: + row: 35 + column: 30 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 40 column: 16 fix: - content: "print(\"py3\")" - location: - row: 37 - column: 0 - end_location: - row: 40 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 37 + column: 0 + end_location: + row: 40 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 48 column: 16 fix: - content: "print(\"py3\")" - location: - row: 45 - column: 0 - end_location: - row: 48 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 45 + column: 0 + end_location: + row: 48 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 54 column: 18 fix: - content: "print(\"py3\")" - location: - row: 53 - column: 0 - end_location: - row: 54 - column: 18 + edits: + - content: "print(\"py3\")" + location: + row: 53 + column: 0 + end_location: + row: 54 + column: 18 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 59 column: 16 fix: - content: "print(\"py3\")" - location: - row: 56 - column: 0 - end_location: - row: 59 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 56 + column: 0 + end_location: + row: 59 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 65 column: 20 fix: - content: " print(\"py3\")" - location: - row: 62 - column: 0 - end_location: - row: 65 - column: 20 + edits: + - content: " print(\"py3\")" + location: + row: 62 + column: 0 + end_location: + row: 65 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,13 +245,14 @@ expression: diagnostics row: 70 column: 16 fix: - content: "print(\"py3\")" - location: - row: 67 - column: 0 - end_location: - row: 70 - column: 16 + edits: + - content: "print(\"py3\")" + location: + row: 67 + column: 0 + end_location: + row: 70 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -254,13 +266,14 @@ expression: diagnostics row: 79 column: 13 fix: - content: " yield" - location: - row: 73 - column: 0 - end_location: - row: 79 - column: 13 + edits: + - content: " yield" + location: + row: 73 + column: 0 + end_location: + row: 79 + column: 13 parent: ~ - kind: name: OutdatedVersionBlock @@ -274,13 +287,14 @@ expression: diagnostics row: 91 column: 16 fix: - content: " def f(py3):\n pass" - location: - row: 86 - column: 0 - end_location: - row: 91 - column: 16 + edits: + - content: " def f(py3):\n pass" + location: + row: 86 + column: 0 + end_location: + row: 91 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -294,13 +308,14 @@ expression: diagnostics row: 100 column: 9 fix: - content: " 3" - location: - row: 97 - column: 0 - end_location: - row: 100 - column: 9 + edits: + - content: " 3" + location: + row: 97 + column: 0 + end_location: + row: 100 + column: 9 parent: ~ - kind: name: OutdatedVersionBlock @@ -314,13 +329,14 @@ expression: diagnostics row: 113 column: 20 fix: - content: "def f():\n print(\"py3\")\ndef g():\n print(\"py3\")" - location: - row: 104 - column: 0 - end_location: - row: 113 - column: 20 + edits: + - content: "def f():\n print(\"py3\")\ndef g():\n print(\"py3\")" + location: + row: 104 + column: 0 + end_location: + row: 113 + column: 20 parent: ~ - kind: name: OutdatedVersionBlock @@ -334,13 +350,14 @@ expression: diagnostics row: 117 column: 16 fix: - content: " print(3)" - location: - row: 116 - column: 0 - end_location: - row: 117 - column: 16 + edits: + - content: " print(3)" + location: + row: 116 + column: 0 + end_location: + row: 117 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -354,13 +371,14 @@ expression: diagnostics row: 122 column: 40 fix: - content: print(3) - location: - row: 122 - column: 4 - end_location: - row: 122 - column: 40 + edits: + - content: print(3) + location: + row: 122 + column: 4 + end_location: + row: 122 + column: 40 parent: ~ - kind: name: OutdatedVersionBlock @@ -374,13 +392,14 @@ expression: diagnostics row: 126 column: 16 fix: - content: " print(3)" - location: - row: 125 - column: 0 - end_location: - row: 126 - column: 16 + edits: + - content: " print(3)" + location: + row: 125 + column: 0 + end_location: + row: 126 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -394,13 +413,14 @@ expression: diagnostics row: 137 column: 9 fix: - content: " expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n ]" - location: - row: 130 - column: 0 - end_location: - row: 137 - column: 9 + edits: + - content: " expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n ]" + location: + row: 130 + column: 0 + end_location: + row: 137 + column: 9 parent: ~ - kind: name: OutdatedVersionBlock @@ -414,13 +434,14 @@ expression: diagnostics row: 147 column: 5 fix: - content: "expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n]" - location: - row: 140 - column: 0 - end_location: - row: 147 - column: 5 + edits: + - content: "expected_error = [\n\":1:5: Generator expression must be parenthesized\",\n\"max(1 for i in range(10), key=lambda x: x+1)\",\n\" ^\",\n]" + location: + row: 140 + column: 0 + end_location: + row: 147 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -434,13 +455,14 @@ expression: diagnostics row: 161 column: 28 fix: - content: "\"\"\"this\nis valid\"\"\"\n\n\"\"\"the indentation on\n this line is significant\"\"\"\n\n\"this is\" \\\n \"allowed too\"\n\n(\"so is\"\n \"this for some reason\")" - location: - row: 150 - column: 0 - end_location: - row: 161 - column: 28 + edits: + - content: "\"\"\"this\nis valid\"\"\"\n\n\"\"\"the indentation on\n this line is significant\"\"\"\n\n\"this is\" \\\n \"allowed too\"\n\n(\"so is\"\n \"this for some reason\")" + location: + row: 150 + column: 0 + end_location: + row: 161 + column: 28 parent: ~ - kind: name: OutdatedVersionBlock @@ -454,13 +476,14 @@ expression: diagnostics row: 164 column: 6 fix: - content: "expected_error = \\\n []" - location: - row: 163 - column: 0 - end_location: - row: 164 - column: 6 + edits: + - content: "expected_error = \\\n []" + location: + row: 163 + column: 0 + end_location: + row: 164 + column: 6 parent: ~ - kind: name: OutdatedVersionBlock @@ -474,13 +497,14 @@ expression: diagnostics row: 166 column: 49 fix: - content: "expected_error = []" - location: - row: 166 - column: 0 - end_location: - row: 166 - column: 49 + edits: + - content: "expected_error = []" + location: + row: 166 + column: 0 + end_location: + row: 166 + column: 49 parent: ~ - kind: name: OutdatedVersionBlock @@ -494,13 +518,14 @@ expression: diagnostics row: 169 column: 23 fix: - content: "expected_error = []" - location: - row: 168 - column: 0 - end_location: - row: 169 - column: 23 + edits: + - content: "expected_error = []" + location: + row: 168 + column: 0 + end_location: + row: 169 + column: 23 parent: ~ - kind: name: OutdatedVersionBlock @@ -514,13 +539,14 @@ expression: diagnostics row: 173 column: 6 fix: - content: "expected_error = \\\n []" - location: - row: 172 - column: 4 - end_location: - row: 173 - column: 6 + edits: + - content: "expected_error = \\\n []" + location: + row: 172 + column: 4 + end_location: + row: 173 + column: 6 parent: ~ - kind: name: OutdatedVersionBlock @@ -534,13 +560,14 @@ expression: diagnostics row: 176 column: 53 fix: - content: "expected_error = []" - location: - row: 176 - column: 4 - end_location: - row: 176 - column: 53 + edits: + - content: "expected_error = []" + location: + row: 176 + column: 4 + end_location: + row: 176 + column: 53 parent: ~ - kind: name: OutdatedVersionBlock @@ -554,12 +581,13 @@ expression: diagnostics row: 180 column: 23 fix: - content: " expected_error = []" - location: - row: 179 - column: 0 - end_location: - row: 180 - column: 23 + edits: + - content: " expected_error = []" + location: + row: 179 + column: 0 + end_location: + row: 180 + column: 23 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap index 3c500d5627e41a..2a120ca195a8ff 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_1.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 6 column: 5 fix: - content: "3" - location: - row: 3 - column: 0 - end_location: - row: 6 - column: 5 + edits: + - content: "3" + location: + row: 3 + column: 0 + end_location: + row: 6 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 11 column: 5 fix: - content: "3" - location: - row: 8 - column: 0 - end_location: - row: 11 - column: 5 + edits: + - content: "3" + location: + row: 8 + column: 0 + end_location: + row: 11 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 5 fix: - content: "3" - location: - row: 13 - column: 0 - end_location: - row: 16 - column: 5 + edits: + - content: "3" + location: + row: 13 + column: 0 + end_location: + row: 16 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 21 column: 5 fix: - content: "3" - location: - row: 18 - column: 0 - end_location: - row: 21 - column: 5 + edits: + - content: "3" + location: + row: 18 + column: 0 + end_location: + row: 21 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 5 fix: - content: "3" - location: - row: 23 - column: 0 - end_location: - row: 26 - column: 5 + edits: + - content: "3" + location: + row: 23 + column: 0 + end_location: + row: 26 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 31 column: 5 fix: - content: "3" - location: - row: 28 - column: 0 - end_location: - row: 31 - column: 5 + edits: + - content: "3" + location: + row: 28 + column: 0 + end_location: + row: 31 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 38 column: 5 fix: - content: "3" - location: - row: 35 - column: 0 - end_location: - row: 38 - column: 5 + edits: + - content: "3" + location: + row: 35 + column: 0 + end_location: + row: 38 + column: 5 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 45 column: 12 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 44 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 44 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 52 column: 12 fix: - content: "else:\n print(3)" - location: - row: 49 - column: 0 - end_location: - row: 52 - column: 12 + edits: + - content: "else:\n print(3)" + location: + row: 49 + column: 0 + end_location: + row: 52 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 57 column: 12 fix: - content: "else:\n print(3)" - location: - row: 56 - column: 0 - end_location: - row: 57 - column: 12 + edits: + - content: "else:\n print(3)" + location: + row: 56 + column: 0 + end_location: + row: 57 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 63 column: 16 fix: - content: "else:\n print(3)" - location: - row: 62 - column: 4 - end_location: - row: 63 - column: 16 + edits: + - content: "else:\n print(3)" + location: + row: 62 + column: 4 + end_location: + row: 63 + column: 16 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,13 +245,14 @@ expression: diagnostics row: 70 column: 12 fix: - content: "" - location: - row: 67 - column: 0 - end_location: - row: 69 - column: 0 + edits: + - content: "" + location: + row: 67 + column: 0 + end_location: + row: 69 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -254,12 +266,13 @@ expression: diagnostics row: 76 column: 16 fix: - content: "else:\n print(3)" - location: - row: 75 - column: 4 - end_location: - row: 76 - column: 16 + edits: + - content: "else:\n print(3)" + location: + row: 75 + column: 4 + end_location: + row: 76 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap index 11b9ff3e560500..eca7cc8bdfadef 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_2.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 7 column: 7 fix: - content: 3+6 - location: - row: 4 - column: 0 - end_location: - row: 7 - column: 7 + edits: + - content: 3+6 + location: + row: 4 + column: 0 + end_location: + row: 7 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 7 fix: - content: 3+6 - location: - row: 9 - column: 0 - end_location: - row: 12 - column: 7 + edits: + - content: 3+6 + location: + row: 9 + column: 0 + end_location: + row: 12 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 17 column: 7 fix: - content: 3+6 - location: - row: 14 - column: 0 - end_location: - row: 17 - column: 7 + edits: + - content: 3+6 + location: + row: 14 + column: 0 + end_location: + row: 17 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 7 fix: - content: 3+6 - location: - row: 19 - column: 0 - end_location: - row: 22 - column: 7 + edits: + - content: 3+6 + location: + row: 19 + column: 0 + end_location: + row: 22 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 27 column: 7 fix: - content: 3+6 - location: - row: 24 - column: 0 - end_location: - row: 27 - column: 7 + edits: + - content: 3+6 + location: + row: 24 + column: 0 + end_location: + row: 27 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 32 column: 7 fix: - content: 3+6 - location: - row: 29 - column: 0 - end_location: - row: 32 - column: 7 + edits: + - content: 3+6 + location: + row: 29 + column: 0 + end_location: + row: 32 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 37 column: 7 fix: - content: 3+6 - location: - row: 34 - column: 0 - end_location: - row: 37 - column: 7 + edits: + - content: 3+6 + location: + row: 34 + column: 0 + end_location: + row: 37 + column: 7 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,13 +161,14 @@ expression: diagnostics row: 40 column: 8 fix: - content: pass - location: - row: 39 - column: 0 - end_location: - row: 40 - column: 8 + edits: + - content: pass + location: + row: 39 + column: 0 + end_location: + row: 40 + column: 8 parent: ~ - kind: name: OutdatedVersionBlock @@ -174,13 +182,14 @@ expression: diagnostics row: 43 column: 8 fix: - content: "" - location: - row: 42 - column: 0 - end_location: - row: 44 - column: 0 + edits: + - content: "" + location: + row: 42 + column: 0 + end_location: + row: 44 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -194,13 +203,14 @@ expression: diagnostics row: 47 column: 12 fix: - content: pass - location: - row: 46 - column: 4 - end_location: - row: 47 - column: 12 + edits: + - content: pass + location: + row: 46 + column: 4 + end_location: + row: 47 + column: 12 parent: ~ - kind: name: OutdatedVersionBlock @@ -214,13 +224,14 @@ expression: diagnostics row: 52 column: 8 fix: - content: "" - location: - row: 49 - column: 0 - end_location: - row: 51 - column: 2 + edits: + - content: "" + location: + row: 49 + column: 0 + end_location: + row: 51 + column: 2 parent: ~ - kind: name: OutdatedVersionBlock @@ -234,12 +245,13 @@ expression: diagnostics row: 57 column: 8 fix: - content: pass - location: - row: 54 - column: 0 - end_location: - row: 57 - column: 8 + edits: + - content: pass + location: + row: 54 + column: 0 + end_location: + row: 57 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap index 1d85c25a40fa0f..94dd3a2814905f 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_3.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 28 fix: - content: "print(\"py3\")\nfor item in range(10):\n print(f\"PY3-{item}\")" - location: - row: 3 - column: 0 - end_location: - row: 10 - column: 28 + edits: + - content: "print(\"py3\")\nfor item in range(10):\n print(f\"PY3-{item}\")" + location: + row: 3 + column: 0 + end_location: + row: 10 + column: 28 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 20 column: 32 fix: - content: " print(\"py3\")\n for item in range(10):\n print(f\"PY3-{item}\")" - location: - row: 13 - column: 0 - end_location: - row: 20 - column: 32 + edits: + - content: " print(\"py3\")\n for item in range(10):\n print(f\"PY3-{item}\")" + location: + row: 13 + column: 0 + end_location: + row: 20 + column: 32 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,12 +56,13 @@ expression: diagnostics row: 24 column: 50 fix: - content: "print(\"PY3!\")" - location: - row: 23 - column: 0 - end_location: - row: 24 - column: 50 + edits: + - content: "print(\"PY3!\")" + location: + row: 23 + column: 0 + end_location: + row: 24 + column: 50 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap index 0a3d0250356ee8..1f83f78278231e 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP036_4.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 5 column: 53 fix: - content: pass - location: - row: 4 - column: 4 - end_location: - row: 5 - column: 53 + edits: + - content: pass + location: + row: 4 + column: 4 + end_location: + row: 5 + column: 53 parent: ~ - kind: name: OutdatedVersionBlock @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 53 fix: - content: "" - location: - row: 11 - column: 0 - end_location: - row: 13 - column: 0 + edits: + - content: "" + location: + row: 11 + column: 0 + end_location: + row: 13 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -54,13 +56,14 @@ expression: diagnostics row: 20 column: 51 fix: - content: "" - location: - row: 17 - column: 4 - end_location: - row: 19 - column: 4 + edits: + - content: "" + location: + row: 17 + column: 4 + end_location: + row: 19 + column: 4 parent: ~ - kind: name: OutdatedVersionBlock @@ -74,13 +77,14 @@ expression: diagnostics row: 25 column: 53 fix: - content: "" - location: - row: 24 - column: 0 - end_location: - row: 26 - column: 0 + edits: + - content: "" + location: + row: 24 + column: 0 + end_location: + row: 26 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -94,13 +98,14 @@ expression: diagnostics row: 28 column: 53 fix: - content: "" - location: - row: 27 - column: 0 - end_location: - row: 29 - column: 0 + edits: + - content: "" + location: + row: 27 + column: 0 + end_location: + row: 29 + column: 0 parent: ~ - kind: name: OutdatedVersionBlock @@ -114,13 +119,14 @@ expression: diagnostics row: 35 column: 51 fix: - content: "" - location: - row: 32 - column: 4 - end_location: - row: 34 - column: 4 + edits: + - content: "" + location: + row: 32 + column: 4 + end_location: + row: 34 + column: 4 parent: ~ - kind: name: OutdatedVersionBlock @@ -134,13 +140,14 @@ expression: diagnostics row: 40 column: 51 fix: - content: " cmd = [sys.executable, \"-m\", \"test\", \"-j0\"]" - location: - row: 37 - column: 0 - end_location: - row: 40 - column: 51 + edits: + - content: " cmd = [sys.executable, \"-m\", \"test\", \"-j0\"]" + location: + row: 37 + column: 0 + end_location: + row: 40 + column: 51 parent: ~ - kind: name: OutdatedVersionBlock @@ -154,12 +161,13 @@ expression: diagnostics row: 45 column: 51 fix: - content: "" - location: - row: 42 - column: 4 - end_location: - row: 44 - column: 6 + edits: + - content: "" + location: + row: 42 + column: 4 + end_location: + row: 44 + column: 6 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap index 3f2affaa3a6fe7..acc52d768c741a 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP037.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 18 column: 22 fix: - content: MyClass - location: - row: 18 - column: 13 - end_location: - row: 18 - column: 22 + edits: + - content: MyClass + location: + row: 18 + column: 13 + end_location: + row: 18 + column: 22 parent: ~ - kind: name: QuotedAnnotation @@ -34,13 +35,14 @@ expression: diagnostics row: 18 column: 36 fix: - content: MyClass - location: - row: 18 - column: 27 - end_location: - row: 18 - column: 36 + edits: + - content: MyClass + location: + row: 18 + column: 27 + end_location: + row: 18 + column: 36 parent: ~ - kind: name: QuotedAnnotation @@ -54,13 +56,14 @@ expression: diagnostics row: 19 column: 16 fix: - content: MyClass - location: - row: 19 - column: 7 - end_location: - row: 19 - column: 16 + edits: + - content: MyClass + location: + row: 19 + column: 7 + end_location: + row: 19 + column: 16 parent: ~ - kind: name: QuotedAnnotation @@ -74,13 +77,14 @@ expression: diagnostics row: 22 column: 26 fix: - content: bool - location: - row: 22 - column: 20 - end_location: - row: 22 - column: 26 + edits: + - content: bool + location: + row: 22 + column: 20 + end_location: + row: 22 + column: 26 parent: ~ - kind: name: QuotedAnnotation @@ -94,13 +98,14 @@ expression: diagnostics row: 26 column: 20 fix: - content: str - location: - row: 26 - column: 15 - end_location: - row: 26 - column: 20 + edits: + - content: str + location: + row: 26 + column: 15 + end_location: + row: 26 + column: 20 parent: ~ - kind: name: QuotedAnnotation @@ -114,13 +119,14 @@ expression: diagnostics row: 26 column: 37 fix: - content: int - location: - row: 26 - column: 32 - end_location: - row: 26 - column: 37 + edits: + - content: int + location: + row: 26 + column: 32 + end_location: + row: 26 + column: 37 parent: ~ - kind: name: QuotedAnnotation @@ -134,13 +140,14 @@ expression: diagnostics row: 30 column: 18 fix: - content: MyClass - location: - row: 30 - column: 9 - end_location: - row: 30 - column: 18 + edits: + - content: MyClass + location: + row: 30 + column: 9 + end_location: + row: 30 + column: 18 parent: ~ - kind: name: QuotedAnnotation @@ -154,13 +161,14 @@ expression: diagnostics row: 32 column: 22 fix: - content: MyClass - location: - row: 32 - column: 13 - end_location: - row: 32 - column: 22 + edits: + - content: MyClass + location: + row: 32 + column: 13 + end_location: + row: 32 + column: 22 parent: ~ - kind: name: QuotedAnnotation @@ -174,13 +182,14 @@ expression: diagnostics row: 36 column: 16 fix: - content: MyClass - location: - row: 36 - column: 7 - end_location: - row: 36 - column: 16 + edits: + - content: MyClass + location: + row: 36 + column: 7 + end_location: + row: 36 + column: 16 parent: ~ - kind: name: QuotedAnnotation @@ -194,13 +203,14 @@ expression: diagnostics row: 40 column: 31 fix: - content: int - location: - row: 40 - column: 26 - end_location: - row: 40 - column: 31 + edits: + - content: int + location: + row: 40 + column: 26 + end_location: + row: 40 + column: 31 parent: ~ - kind: name: QuotedAnnotation @@ -214,13 +224,14 @@ expression: diagnostics row: 44 column: 35 fix: - content: int - location: - row: 44 - column: 30 - end_location: - row: 44 - column: 35 + edits: + - content: int + location: + row: 44 + column: 30 + end_location: + row: 44 + column: 35 parent: ~ - kind: name: QuotedAnnotation @@ -234,13 +245,14 @@ expression: diagnostics row: 47 column: 18 fix: - content: str - location: - row: 47 - column: 13 - end_location: - row: 47 - column: 18 + edits: + - content: str + location: + row: 47 + column: 13 + end_location: + row: 47 + column: 18 parent: ~ - kind: name: QuotedAnnotation @@ -254,13 +266,14 @@ expression: diagnostics row: 49 column: 12 fix: - content: str - location: - row: 49 - column: 7 - end_location: - row: 49 - column: 12 + edits: + - content: str + location: + row: 49 + column: 7 + end_location: + row: 49 + column: 12 parent: ~ - kind: name: QuotedAnnotation @@ -274,13 +287,14 @@ expression: diagnostics row: 51 column: 19 fix: - content: str - location: - row: 51 - column: 14 - end_location: - row: 51 - column: 19 + edits: + - content: str + location: + row: 51 + column: 14 + end_location: + row: 51 + column: 19 parent: ~ - kind: name: QuotedAnnotation @@ -294,13 +308,14 @@ expression: diagnostics row: 53 column: 17 fix: - content: str - location: - row: 53 - column: 12 - end_location: - row: 53 - column: 17 + edits: + - content: str + location: + row: 53 + column: 12 + end_location: + row: 53 + column: 17 parent: ~ - kind: name: QuotedAnnotation @@ -314,13 +329,14 @@ expression: diagnostics row: 55 column: 24 fix: - content: str - location: - row: 55 - column: 19 - end_location: - row: 55 - column: 24 + edits: + - content: str + location: + row: 55 + column: 19 + end_location: + row: 55 + column: 24 parent: ~ - kind: name: QuotedAnnotation @@ -334,13 +350,14 @@ expression: diagnostics row: 57 column: 24 fix: - content: str - location: - row: 57 - column: 19 - end_location: - row: 57 - column: 24 + edits: + - content: str + location: + row: 57 + column: 19 + end_location: + row: 57 + column: 24 parent: ~ - kind: name: QuotedAnnotation @@ -354,13 +371,14 @@ expression: diagnostics row: 59 column: 15 fix: - content: str - location: - row: 59 - column: 10 - end_location: - row: 59 - column: 15 + edits: + - content: str + location: + row: 59 + column: 10 + end_location: + row: 59 + column: 15 parent: ~ - kind: name: QuotedAnnotation @@ -374,13 +392,14 @@ expression: diagnostics row: 61 column: 27 fix: - content: MyClass - location: - row: 61 - column: 18 - end_location: - row: 61 - column: 27 + edits: + - content: MyClass + location: + row: 61 + column: 18 + end_location: + row: 61 + column: 27 parent: ~ - kind: name: QuotedAnnotation @@ -394,13 +413,14 @@ expression: diagnostics row: 63 column: 33 fix: - content: int - location: - row: 63 - column: 28 - end_location: - row: 63 - column: 33 + edits: + - content: int + location: + row: 63 + column: 28 + end_location: + row: 63 + column: 33 parent: ~ - kind: name: QuotedAnnotation @@ -414,13 +434,14 @@ expression: diagnostics row: 63 column: 49 fix: - content: str - location: - row: 63 - column: 44 - end_location: - row: 63 - column: 49 + edits: + - content: str + location: + row: 63 + column: 44 + end_location: + row: 63 + column: 49 parent: ~ - kind: name: QuotedAnnotation @@ -434,13 +455,14 @@ expression: diagnostics row: 65 column: 33 fix: - content: foo - location: - row: 65 - column: 28 - end_location: - row: 65 - column: 33 + edits: + - content: foo + location: + row: 65 + column: 28 + end_location: + row: 65 + column: 33 parent: ~ - kind: name: QuotedAnnotation @@ -454,13 +476,14 @@ expression: diagnostics row: 65 column: 40 fix: - content: int - location: - row: 65 - column: 35 - end_location: - row: 65 - column: 40 + edits: + - content: int + location: + row: 65 + column: 35 + end_location: + row: 65 + column: 40 parent: ~ - kind: name: QuotedAnnotation @@ -474,13 +497,14 @@ expression: diagnostics row: 65 column: 49 fix: - content: bar - location: - row: 65 - column: 44 - end_location: - row: 65 - column: 49 + edits: + - content: bar + location: + row: 65 + column: 44 + end_location: + row: 65 + column: 49 parent: ~ - kind: name: QuotedAnnotation @@ -494,13 +518,14 @@ expression: diagnostics row: 65 column: 56 fix: - content: str - location: - row: 65 - column: 51 - end_location: - row: 65 - column: 56 + edits: + - content: str + location: + row: 65 + column: 51 + end_location: + row: 65 + column: 56 parent: ~ - kind: name: QuotedAnnotation @@ -514,13 +539,14 @@ expression: diagnostics row: 67 column: 26 fix: - content: X - location: - row: 67 - column: 23 - end_location: - row: 67 - column: 26 + edits: + - content: X + location: + row: 67 + column: 23 + end_location: + row: 67 + column: 26 parent: ~ - kind: name: QuotedAnnotation @@ -534,13 +560,14 @@ expression: diagnostics row: 67 column: 42 fix: - content: foo - location: - row: 67 - column: 37 - end_location: - row: 67 - column: 42 + edits: + - content: foo + location: + row: 67 + column: 37 + end_location: + row: 67 + column: 42 parent: ~ - kind: name: QuotedAnnotation @@ -554,12 +581,13 @@ expression: diagnostics row: 67 column: 49 fix: - content: int - location: - row: 67 - column: 44 - end_location: - row: 67 - column: 49 + edits: + - content: int + location: + row: 67 + column: 44 + end_location: + row: 67 + column: 49 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap index 01e40e2f6a57b9..f4b2f1dc36d047 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__UP038.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 27 fix: - content: int | float - location: - row: 1 - column: 14 - end_location: - row: 1 - column: 26 + edits: + - content: int | float + location: + row: 1 + column: 14 + end_location: + row: 1 + column: 26 parent: ~ - kind: name: NonPEP604Isinstance @@ -34,12 +35,13 @@ expression: diagnostics row: 2 column: 36 fix: - content: int | float | str - location: - row: 2 - column: 18 - end_location: - row: 2 - column: 35 + edits: + - content: int | float | str + location: + row: 2 + column: 18 + end_location: + row: 2 + column: 35 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap index 823a873b0d886f..bfcd3208eaacda 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__datetime_utc_alias_py311.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 7 column: 18 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DatetimeTimezoneUTC @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 8 column: 12 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: DatetimeTimezoneUTC @@ -40,13 +42,14 @@ expression: diagnostics row: 10 column: 27 fix: - content: datetime.UTC - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 27 + edits: + - content: datetime.UTC + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 27 parent: ~ - kind: name: DatetimeTimezoneUTC @@ -59,6 +62,7 @@ expression: diagnostics end_location: row: 11 column: 21 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap index 20d592af03bce3..08dc1b11f19354 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_p37.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 34 column: 21 fix: - content: list - location: - row: 34 - column: 17 - end_location: - row: 34 - column: 21 + edits: + - content: list + location: + row: 34 + column: 17 + end_location: + row: 34 + column: 21 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap index cdcf9e9121608d..9de58b84f49265 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_585_py310.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 34 column: 21 fix: - content: list - location: - row: 34 - column: 17 - end_location: - row: 34 - column: 21 + edits: + - content: list + location: + row: 34 + column: 17 + end_location: + row: 34 + column: 21 parent: ~ - kind: name: NonPEP585Annotation @@ -34,13 +35,14 @@ expression: diagnostics row: 35 column: 12 fix: - content: list - location: - row: 35 - column: 8 - end_location: - row: 35 - column: 12 + edits: + - content: list + location: + row: 35 + column: 8 + end_location: + row: 35 + column: 12 parent: ~ - kind: name: NonPEP585Annotation @@ -54,13 +56,14 @@ expression: diagnostics row: 42 column: 30 fix: - content: list - location: - row: 42 - column: 26 - end_location: - row: 42 - column: 30 + edits: + - content: list + location: + row: 42 + column: 26 + end_location: + row: 42 + column: 30 parent: ~ - kind: name: NonPEP585Annotation @@ -74,12 +77,13 @@ expression: diagnostics row: 42 column: 41 fix: - content: list - location: - row: 42 - column: 37 - end_location: - row: 42 - column: 41 + edits: + - content: list + location: + row: 42 + column: 37 + end_location: + row: 42 + column: 41 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap index fe642359e71c8c..815b5df80df213 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_p37.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 40 column: 16 fix: - content: int | None - location: - row: 40 - column: 3 - end_location: - row: 40 - column: 16 + edits: + - content: int | None + location: + row: 40 + column: 3 + end_location: + row: 40 + column: 16 parent: ~ diff --git a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap index a5b65af7683fe5..f4f481f309dd4c 100644 --- a/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap +++ b/crates/ruff/src/rules/pyupgrade/snapshots/ruff__rules__pyupgrade__tests__future_annotations_pep_604_py310.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 40 column: 16 fix: - content: int | None - location: - row: 40 - column: 3 - end_location: - row: 40 - column: 16 + edits: + - content: int | None + location: + row: 40 + column: 3 + end_location: + row: 40 + column: 16 parent: ~ - kind: name: NonPEP604Annotation @@ -34,12 +35,13 @@ expression: diagnostics row: 42 column: 47 fix: - content: "List[int] | List[str]" - location: - row: 42 - column: 20 - end_location: - row: 42 - column: 47 + edits: + - content: "List[int] | List[str]" + location: + row: 42 + column: 20 + end_location: + row: 42 + column: 47 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap index d8f5d9a72e15f3..51bcb2c2067553 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF005_RUF005.py.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 10 column: 21 fix: - content: "[1, 2, 3, *foo]" - location: - row: 10 - column: 6 - end_location: - row: 10 - column: 21 + edits: + - content: "[1, 2, 3, *foo]" + location: + row: 10 + column: 6 + end_location: + row: 10 + column: 21 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -34,13 +35,14 @@ expression: diagnostics row: 12 column: 23 fix: - content: "(7, 8, 9, *zoob)" - location: - row: 12 - column: 7 - end_location: - row: 12 - column: 23 + edits: + - content: "(7, 8, 9, *zoob)" + location: + row: 12 + column: 7 + end_location: + row: 12 + column: 23 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -54,13 +56,14 @@ expression: diagnostics row: 13 column: 26 fix: - content: "(*quux, 10, 11, 12)" - location: - row: 13 - column: 7 - end_location: - row: 13 - column: 26 + edits: + - content: "(*quux, 10, 11, 12)" + location: + row: 13 + column: 7 + end_location: + row: 13 + column: 26 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -74,13 +77,14 @@ expression: diagnostics row: 15 column: 26 fix: - content: "[*spom, 13, 14, 15]" - location: - row: 15 - column: 7 - end_location: - row: 15 - column: 26 + edits: + - content: "[*spom, 13, 14, 15]" + location: + row: 15 + column: 7 + end_location: + row: 15 + column: 26 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -94,13 +98,14 @@ expression: diagnostics row: 16 column: 36 fix: - content: "(\"we all say\", *yay())" - location: - row: 16 - column: 12 - end_location: - row: 16 - column: 36 + edits: + - content: "(\"we all say\", *yay())" + location: + row: 16 + column: 12 + end_location: + row: 16 + column: 36 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -114,13 +119,14 @@ expression: diagnostics row: 17 column: 45 fix: - content: "(\"we all think\", *Fun().yay())" - location: - row: 17 - column: 13 - end_location: - row: 17 - column: 45 + edits: + - content: "(\"we all think\", *Fun().yay())" + location: + row: 17 + column: 13 + end_location: + row: 17 + column: 45 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -134,13 +140,14 @@ expression: diagnostics row: 18 column: 44 fix: - content: "(\"we all feel\", *Fun.words)" - location: - row: 18 - column: 15 - end_location: - row: 18 - column: 44 + edits: + - content: "(\"we all feel\", *Fun.words)" + location: + row: 18 + column: 15 + end_location: + row: 18 + column: 44 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -154,13 +161,14 @@ expression: diagnostics row: 20 column: 30 fix: - content: "[\"a\", \"b\", \"c\", *eggs]" - location: - row: 20 - column: 8 - end_location: - row: 20 - column: 30 + edits: + - content: "[\"a\", \"b\", \"c\", *eggs]" + location: + row: 20 + column: 8 + end_location: + row: 20 + column: 30 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -174,13 +182,14 @@ expression: diagnostics row: 20 column: 67 fix: - content: "(\"yes\", \"no\", \"pants\", *zoob)" - location: - row: 20 - column: 38 - end_location: - row: 20 - column: 67 + edits: + - content: "(\"yes\", \"no\", \"pants\", *zoob)" + location: + row: 20 + column: 38 + end_location: + row: 20 + column: 67 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -194,13 +203,14 @@ expression: diagnostics row: 22 column: 15 fix: - content: "(*zoob,)" - location: - row: 22 - column: 6 - end_location: - row: 22 - column: 15 + edits: + - content: "(*zoob,)" + location: + row: 22 + column: 6 + end_location: + row: 22 + column: 15 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -213,7 +223,8 @@ expression: diagnostics end_location: row: 39 column: 1 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: CollectionLiteralConcatenation @@ -227,13 +238,14 @@ expression: diagnostics row: 41 column: 8 fix: - content: "[*foo]" - location: - row: 41 - column: 0 - end_location: - row: 41 - column: 8 + edits: + - content: "[*foo]" + location: + row: 41 + column: 0 + end_location: + row: 41 + column: 8 parent: ~ - kind: name: CollectionLiteralConcatenation @@ -247,12 +259,13 @@ expression: diagnostics row: 44 column: 8 fix: - content: "[*foo]" - location: - row: 44 - column: 0 - end_location: - row: 44 - column: 8 + edits: + - content: "[*foo]" + location: + row: 44 + column: 0 + end_location: + row: 44 + column: 8 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap index c9fcfada6b7a1f..68817bb91818c0 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__RUF006_RUF006.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 6 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: AsyncioDanglingTask @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 11 column: 51 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap index afe5d78ee5217b..b75e1d4462c2f0 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__confusables.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 6 fix: - content: B - location: - row: 1 - column: 5 - end_location: - row: 1 - column: 6 + edits: + - content: B + location: + row: 1 + column: 5 + end_location: + row: 1 + column: 6 parent: ~ - kind: name: AmbiguousUnicodeCharacterDocstring @@ -34,13 +35,14 @@ expression: diagnostics row: 6 column: 56 fix: - content: ) - location: - row: 6 - column: 55 - end_location: - row: 6 - column: 56 + edits: + - content: ) + location: + row: 6 + column: 55 + end_location: + row: 6 + column: 56 parent: ~ - kind: name: AmbiguousUnicodeCharacterComment @@ -54,12 +56,13 @@ expression: diagnostics row: 7 column: 62 fix: - content: / - location: - row: 7 - column: 61 - end_location: - row: 7 - column: 62 + edits: + - content: / + location: + row: 7 + column: 61 + end_location: + row: 7 + column: 62 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap index cd7486d195d8bc..b866b1f342b154 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_0.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 9 column: 17 fix: - content: "" - location: - row: 9 - column: 9 - end_location: - row: 9 - column: 17 + edits: + - content: "" + location: + row: 9 + column: 9 + end_location: + row: 9 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -34,13 +35,14 @@ expression: diagnostics row: 13 column: 23 fix: - content: "" - location: - row: 13 - column: 9 - end_location: - row: 13 - column: 23 + edits: + - content: "" + location: + row: 13 + column: 9 + end_location: + row: 13 + column: 23 parent: ~ - kind: name: UnusedNOQA @@ -54,13 +56,14 @@ expression: diagnostics row: 16 column: 29 fix: - content: "" - location: - row: 16 - column: 9 - end_location: - row: 16 - column: 29 + edits: + - content: "" + location: + row: 16 + column: 9 + end_location: + row: 16 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -74,13 +77,14 @@ expression: diagnostics row: 19 column: 35 fix: - content: "" - location: - row: 19 - column: 9 - end_location: - row: 19 - column: 35 + edits: + - content: "" + location: + row: 19 + column: 9 + end_location: + row: 19 + column: 35 parent: ~ - kind: name: UnusedNOQA @@ -94,13 +98,14 @@ expression: diagnostics row: 22 column: 29 fix: - content: "" - location: - row: 22 - column: 9 - end_location: - row: 22 - column: 29 + edits: + - content: "" + location: + row: 22 + column: 9 + end_location: + row: 22 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -114,13 +119,14 @@ expression: diagnostics row: 26 column: 21 fix: - content: "" - location: - row: 26 - column: 9 - end_location: - row: 26 - column: 21 + edits: + - content: "" + location: + row: 26 + column: 9 + end_location: + row: 26 + column: 21 parent: ~ - kind: name: UnusedVariable @@ -134,13 +140,14 @@ expression: diagnostics row: 29 column: 5 fix: - content: "" - location: - row: 29 - column: 0 - end_location: - row: 30 - column: 0 + edits: + - content: "" + location: + row: 29 + column: 0 + end_location: + row: 30 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -154,13 +161,14 @@ expression: diagnostics row: 29 column: 44 fix: - content: "" - location: - row: 29 - column: 9 - end_location: - row: 29 - column: 44 + edits: + - content: "" + location: + row: 29 + column: 9 + end_location: + row: 29 + column: 44 parent: ~ - kind: name: UnusedNOQA @@ -174,13 +182,14 @@ expression: diagnostics row: 55 column: 23 fix: - content: "# noqa: E501" - location: - row: 55 - column: 5 - end_location: - row: 55 - column: 23 + edits: + - content: "# noqa: E501" + location: + row: 55 + column: 5 + end_location: + row: 55 + column: 23 parent: ~ - kind: name: UnusedNOQA @@ -194,13 +203,14 @@ expression: diagnostics row: 63 column: 17 fix: - content: "" - location: - row: 63 - column: 3 - end_location: - row: 63 - column: 17 + edits: + - content: "" + location: + row: 63 + column: 3 + end_location: + row: 63 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -214,13 +224,14 @@ expression: diagnostics row: 71 column: 11 fix: - content: "" - location: - row: 71 - column: 3 - end_location: - row: 71 - column: 11 + edits: + - content: "" + location: + row: 71 + column: 3 + end_location: + row: 71 + column: 11 parent: ~ - kind: name: UnusedImport @@ -234,13 +245,14 @@ expression: diagnostics row: 85 column: 13 fix: - content: "" - location: - row: 85 - column: 0 - end_location: - row: 86 - column: 0 + edits: + - content: "" + location: + row: 85 + column: 0 + end_location: + row: 86 + column: 0 parent: ~ - kind: name: LineTooLong @@ -253,7 +265,8 @@ expression: diagnostics end_location: row: 90 column: 103 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: UnusedNOQA @@ -267,12 +280,13 @@ expression: diagnostics row: 90 column: 103 fix: - content: "" - location: - row: 90 - column: 89 - end_location: - row: 90 - column: 103 + edits: + - content: "" + location: + row: 90 + column: 89 + end_location: + row: 90 + column: 103 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap index dbc4bc5de4a2f9..03b44f1e2dc0da 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_1.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 37 column: 13 fix: - content: "from typing import (\n Mapping, # noqa: F401\n )" - location: - row: 35 - column: 4 - end_location: - row: 38 - column: 5 + edits: + - content: "from typing import (\n Mapping, # noqa: F401\n )" + location: + row: 35 + column: 4 + end_location: + row: 38 + column: 5 parent: row: 35 column: 4 @@ -36,13 +37,14 @@ expression: diagnostics row: 52 column: 31 fix: - content: "" - location: - row: 52 - column: 17 - end_location: - row: 52 - column: 31 + edits: + - content: "" + location: + row: 52 + column: 17 + end_location: + row: 52 + column: 31 parent: ~ - kind: name: UnusedNOQA @@ -56,13 +58,14 @@ expression: diagnostics row: 59 column: 31 fix: - content: "" - location: - row: 59 - column: 17 - end_location: - row: 59 - column: 31 + edits: + - content: "" + location: + row: 59 + column: 17 + end_location: + row: 59 + column: 31 parent: ~ - kind: name: UnusedNOQA @@ -76,13 +79,14 @@ expression: diagnostics row: 66 column: 27 fix: - content: "" - location: - row: 66 - column: 13 - end_location: - row: 66 - column: 27 + edits: + - content: "" + location: + row: 66 + column: 13 + end_location: + row: 66 + column: 27 parent: ~ - kind: name: UnusedNOQA @@ -96,13 +100,14 @@ expression: diagnostics row: 72 column: 38 fix: - content: "" - location: - row: 72 - column: 24 - end_location: - row: 72 - column: 38 + edits: + - content: "" + location: + row: 72 + column: 24 + end_location: + row: 72 + column: 38 parent: ~ - kind: name: UnusedImport @@ -116,13 +121,14 @@ expression: diagnostics row: 89 column: 32 fix: - content: pass - location: - row: 89 - column: 4 - end_location: - row: 89 - column: 52 + edits: + - content: pass + location: + row: 89 + column: 4 + end_location: + row: 89 + column: 52 parent: ~ - kind: name: UnusedImport @@ -136,13 +142,14 @@ expression: diagnostics row: 89 column: 52 fix: - content: pass - location: - row: 89 - column: 4 - end_location: - row: 89 - column: 52 + edits: + - content: pass + location: + row: 89 + column: 4 + end_location: + row: 89 + column: 52 parent: ~ - kind: name: UnusedNOQA @@ -156,12 +163,13 @@ expression: diagnostics row: 89 column: 66 fix: - content: "" - location: - row: 89 - column: 52 - end_location: - row: 89 - column: 66 + edits: + - content: "" + location: + row: 89 + column: 52 + end_location: + row: 89 + column: 66 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap index 04ceb69caafb9f..48b87e73b94453 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_2.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 1 column: 30 fix: - content: "" - location: - row: 1 - column: 16 - end_location: - row: 1 - column: 30 + edits: + - content: "" + location: + row: 1 + column: 16 + end_location: + row: 1 + column: 30 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap index 5b9cf64b252369..2867db9242cf75 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruf100_3.snap @@ -14,13 +14,14 @@ expression: diagnostics row: 1 column: 6 fix: - content: "" - location: - row: 1 - column: 0 - end_location: - row: 2 - column: 0 + edits: + - content: "" + location: + row: 1 + column: 0 + end_location: + row: 2 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -34,13 +35,14 @@ expression: diagnostics row: 2 column: 6 fix: - content: "" - location: - row: 2 - column: 0 - end_location: - row: 2 - column: 7 + edits: + - content: "" + location: + row: 2 + column: 0 + end_location: + row: 2 + column: 7 parent: ~ - kind: name: UnusedNOQA @@ -54,13 +56,14 @@ expression: diagnostics row: 3 column: 15 fix: - content: "" - location: - row: 3 - column: 7 - end_location: - row: 3 - column: 15 + edits: + - content: "" + location: + row: 3 + column: 7 + end_location: + row: 3 + column: 15 parent: ~ - kind: name: UnusedNOQA @@ -74,13 +77,14 @@ expression: diagnostics row: 4 column: 15 fix: - content: "" - location: - row: 4 - column: 9 - end_location: - row: 4 - column: 16 + edits: + - content: "" + location: + row: 4 + column: 9 + end_location: + row: 4 + column: 16 parent: ~ - kind: name: UnusedNOQA @@ -94,13 +98,14 @@ expression: diagnostics row: 5 column: 15 fix: - content: "" - location: - row: 5 - column: 9 - end_location: - row: 5 - column: 17 + edits: + - content: "" + location: + row: 5 + column: 9 + end_location: + row: 5 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -114,13 +119,14 @@ expression: diagnostics row: 6 column: 15 fix: - content: "" - location: - row: 6 - column: 11 - end_location: - row: 6 - column: 16 + edits: + - content: "" + location: + row: 6 + column: 11 + end_location: + row: 6 + column: 16 parent: ~ - kind: name: UnusedNOQA @@ -134,13 +140,14 @@ expression: diagnostics row: 7 column: 15 fix: - content: "" - location: - row: 7 - column: 11 - end_location: - row: 7 - column: 17 + edits: + - content: "" + location: + row: 7 + column: 11 + end_location: + row: 7 + column: 17 parent: ~ - kind: name: UnusedNOQA @@ -154,13 +161,14 @@ expression: diagnostics row: 14 column: 18 fix: - content: "" - location: - row: 14 - column: 0 - end_location: - row: 15 - column: 0 + edits: + - content: "" + location: + row: 14 + column: 0 + end_location: + row: 15 + column: 0 parent: ~ - kind: name: UnusedNOQA @@ -174,13 +182,14 @@ expression: diagnostics row: 15 column: 18 fix: - content: "" - location: - row: 15 - column: 0 - end_location: - row: 15 - column: 19 + edits: + - content: "" + location: + row: 15 + column: 0 + end_location: + row: 15 + column: 19 parent: ~ - kind: name: UnusedNOQA @@ -194,13 +203,14 @@ expression: diagnostics row: 16 column: 27 fix: - content: "" - location: - row: 16 - column: 7 - end_location: - row: 16 - column: 27 + edits: + - content: "" + location: + row: 16 + column: 7 + end_location: + row: 16 + column: 27 parent: ~ - kind: name: UnusedNOQA @@ -214,13 +224,14 @@ expression: diagnostics row: 17 column: 27 fix: - content: "" - location: - row: 17 - column: 9 - end_location: - row: 17 - column: 28 + edits: + - content: "" + location: + row: 17 + column: 9 + end_location: + row: 17 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -234,13 +245,14 @@ expression: diagnostics row: 18 column: 27 fix: - content: "" - location: - row: 18 - column: 9 - end_location: - row: 18 - column: 29 + edits: + - content: "" + location: + row: 18 + column: 9 + end_location: + row: 18 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -254,13 +266,14 @@ expression: diagnostics row: 19 column: 27 fix: - content: "" - location: - row: 19 - column: 11 - end_location: - row: 19 - column: 28 + edits: + - content: "" + location: + row: 19 + column: 11 + end_location: + row: 19 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -274,13 +287,14 @@ expression: diagnostics row: 20 column: 27 fix: - content: "" - location: - row: 20 - column: 11 - end_location: - row: 20 - column: 29 + edits: + - content: "" + location: + row: 20 + column: 11 + end_location: + row: 20 + column: 29 parent: ~ - kind: name: UnusedNOQA @@ -294,13 +308,14 @@ expression: diagnostics row: 21 column: 28 fix: - content: "# noqa: F821" - location: - row: 21 - column: 10 - end_location: - row: 21 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 21 + column: 10 + end_location: + row: 21 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -314,13 +329,14 @@ expression: diagnostics row: 22 column: 28 fix: - content: "# noqa: F821" - location: - row: 22 - column: 10 - end_location: - row: 22 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 22 + column: 10 + end_location: + row: 22 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -334,13 +350,14 @@ expression: diagnostics row: 23 column: 28 fix: - content: "# noqa: F821" - location: - row: 23 - column: 10 - end_location: - row: 23 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 23 + column: 10 + end_location: + row: 23 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -354,13 +371,14 @@ expression: diagnostics row: 24 column: 28 fix: - content: "# noqa: F821" - location: - row: 24 - column: 10 - end_location: - row: 24 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 24 + column: 10 + end_location: + row: 24 + column: 28 parent: ~ - kind: name: UnusedNOQA @@ -374,12 +392,13 @@ expression: diagnostics row: 25 column: 28 fix: - content: "# noqa: F821" - location: - row: 25 - column: 10 - end_location: - row: 25 - column: 28 + edits: + - content: "# noqa: F821" + location: + row: 25 + column: 10 + end_location: + row: 25 + column: 28 parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap index bdbda3c21433b8..34d0fa29a1e9ea 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_pairwise_over_zipped.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 16 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 17 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 18 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 19 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 20 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 21 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 22 column: 8 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 23 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 24 column: 3 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: PairwiseOverZipped @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 25 column: 3 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap index 785e17d410cddf..7ab50961298042 100644 --- a/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap +++ b/crates/ruff/src/rules/ruff/snapshots/ruff__rules__ruff__tests__ruff_targeted_noqa.snap @@ -14,12 +14,13 @@ expression: diagnostics row: 8 column: 5 fix: - content: pass - location: - row: 8 - column: 4 - end_location: - row: 8 - column: 9 + edits: + - content: pass + location: + row: 8 + column: 4 + end_location: + row: 8 + column: 9 parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap index 0bba9d51340eeb..b63b2c3353d6e4 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__error-instead-of-exception_TRY400.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 18 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 25 column: 44 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 28 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 35 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 38 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 45 column: 49 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ErrorInsteadOfException @@ -104,6 +111,7 @@ expression: diagnostics end_location: row: 48 column: 53 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap index 4a0e766112f7d3..de22181102fc75 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-args_TRY003.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 45 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 34 column: 68 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 39 column: 70 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaArgs @@ -52,6 +55,7 @@ expression: diagnostics end_location: row: 44 column: 69 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap index db68e5dc9247f4..8c972f967d35b5 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-vanilla-class_TRY002.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 13 column: 41 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseVanillaClass @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 17 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap index 34790bde96a926..fb2f3b5fcc8c0a 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__raise-within-try_TRY301.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 9 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 11 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 16 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 27 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 29 column: 28 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: RaiseWithinTry @@ -78,6 +83,7 @@ expression: diagnostics end_location: row: 34 column: 36 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap index 7c2e4a7b85d5e3..2f14655a3a44ac 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__reraise-no-cause_TRY200.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 15 column: 27 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: ReraiseNoCause @@ -26,6 +27,7 @@ expression: diagnostics end_location: row: 23 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap index 5a9ace3f22476b..4bc4629590ee86 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__try-consider-else_TRY300.py.snap @@ -13,6 +13,7 @@ expression: diagnostics end_location: row: 20 column: 16 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap index 6d0dea1ef078fa..20fe7c25719712 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__type-check-without-type-error_TRY004.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 12 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 19 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 30 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 37 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 44 column: 36 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 51 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 58 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 65 column: 25 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 72 column: 29 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -130,7 +139,8 @@ expression: diagnostics end_location: row: 79 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -143,7 +153,8 @@ expression: diagnostics end_location: row: 86 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -156,7 +167,8 @@ expression: diagnostics end_location: row: 97 column: 9 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -169,7 +181,8 @@ expression: diagnostics end_location: row: 104 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -182,7 +195,8 @@ expression: diagnostics end_location: row: 111 column: 35 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -195,7 +209,8 @@ expression: diagnostics end_location: row: 118 column: 33 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -208,7 +223,8 @@ expression: diagnostics end_location: row: 125 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -221,7 +237,8 @@ expression: diagnostics end_location: row: 132 column: 32 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -234,7 +251,8 @@ expression: diagnostics end_location: row: 139 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -247,7 +265,8 @@ expression: diagnostics end_location: row: 146 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -260,7 +279,8 @@ expression: diagnostics end_location: row: 153 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -273,7 +293,8 @@ expression: diagnostics end_location: row: 160 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -286,7 +307,8 @@ expression: diagnostics end_location: row: 167 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -299,7 +321,8 @@ expression: diagnostics end_location: row: 174 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -312,7 +335,8 @@ expression: diagnostics end_location: row: 181 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -325,7 +349,8 @@ expression: diagnostics end_location: row: 188 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -338,7 +363,8 @@ expression: diagnostics end_location: row: 195 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -351,7 +377,8 @@ expression: diagnostics end_location: row: 202 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -364,7 +391,8 @@ expression: diagnostics end_location: row: 209 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -377,7 +405,8 @@ expression: diagnostics end_location: row: 216 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -390,7 +419,8 @@ expression: diagnostics end_location: row: 223 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -403,7 +433,8 @@ expression: diagnostics end_location: row: 230 column: 30 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -416,7 +447,8 @@ expression: diagnostics end_location: row: 267 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -429,7 +461,8 @@ expression: diagnostics end_location: row: 277 column: 31 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: TypeCheckWithoutTypeError @@ -442,6 +475,7 @@ expression: diagnostics end_location: row: 288 column: 31 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap index 40d54e98b3d6ca..2d73ad7129fed5 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-log-message_TRY401.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 8 column: 46 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 19 column: 55 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -39,7 +41,8 @@ expression: diagnostics end_location: row: 21 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -52,7 +55,8 @@ expression: diagnostics end_location: row: 21 column: 53 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -65,7 +69,8 @@ expression: diagnostics end_location: row: 23 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -78,7 +83,8 @@ expression: diagnostics end_location: row: 24 column: 47 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -91,7 +97,8 @@ expression: diagnostics end_location: row: 27 column: 51 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -104,7 +111,8 @@ expression: diagnostics end_location: row: 39 column: 48 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -117,7 +125,8 @@ expression: diagnostics end_location: row: 46 column: 54 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseLogMessage @@ -130,6 +139,7 @@ expression: diagnostics end_location: row: 53 column: 48 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap index 4bb80043d18f2f..66e5c3b4074c14 100644 --- a/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap +++ b/crates/ruff/src/rules/tryceratops/snapshots/ruff__rules__tryceratops__tests__verbose-raise_TRY201.py.snap @@ -13,7 +13,8 @@ expression: diagnostics end_location: row: 20 column: 15 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseRaise @@ -26,7 +27,8 @@ expression: diagnostics end_location: row: 63 column: 19 - fix: ~ + fix: + edits: [] parent: ~ - kind: name: VerboseRaise @@ -39,6 +41,7 @@ expression: diagnostics end_location: row: 74 column: 23 - fix: ~ + fix: + edits: [] parent: ~ diff --git a/crates/ruff_cli/tests/integration_test.rs b/crates/ruff_cli/tests/integration_test.rs index 132a6acb9c1dce..0b9c172a539650 100644 --- a/crates/ruff_cli/tests/integration_test.rs +++ b/crates/ruff_cli/tests/integration_test.rs @@ -93,16 +93,20 @@ fn test_stdin_json() -> Result<()> { "code": "F401", "message": "`os` imported but unused", "fix": {{ - "content": "", "message": "Remove unused import: `os`", - "location": {{ - "row": 1, - "column": 0 - }}, - "end_location": {{ - "row": 2, - "column": 0 - }} + "edits": [ + {{ + "content": "", + "location": {{ + "row": 1, + "column": 0 + }}, + "end_location": {{ + "row": 2, + "column": 0 + }} + }} + ] }}, "location": {{ "row": 1, diff --git a/crates/ruff_diagnostics/src/fix.rs b/crates/ruff_diagnostics/src/fix.rs index 3eaa8f02416f62..71e07c9c3a286d 100644 --- a/crates/ruff_diagnostics/src/fix.rs +++ b/crates/ruff_diagnostics/src/fix.rs @@ -32,6 +32,11 @@ impl Fix { self.edits.iter().map(|edit| edit.location).min() } + /// Return the [`Location`] of the last [`Edit`] in the [`Fix`]. + pub fn end_location(&self) -> Option { + self.edits.iter().map(|edit| edit.end_location).max() + } + /// Return a slice of the [`Edit`] elements in the [`Fix`]. pub fn edits(&self) -> &[Edit] { &self.edits diff --git a/crates/ruff_wasm/tests/api.rs b/crates/ruff_wasm/tests/api.rs index b2bdf04dae825e..432a86f3ea2e8f 100644 --- a/crates/ruff_wasm/tests/api.rs +++ b/crates/ruff_wasm/tests/api.rs @@ -5,7 +5,6 @@ use rustpython_parser::ast::Location; use wasm_bindgen_test::*; use ruff::registry::Rule; -use ruff_diagnostics::Fix; use ruff_wasm::*; macro_rules! check { @@ -31,7 +30,7 @@ fn empty_config() { message: "If test is a tuple, which is always `True`".to_string(), location: Location::new(1, 0), end_location: Location::new(2, 8), - fix: Fix::empty(), + fix: None, }] ); }