refactor: test ground truth update for new macro

This commit is contained in:
Simon Brugman 2023-01-25 23:41:12 +01:00 committed by Charlie Marsh
parent e9c1089ddc
commit c859ac4933
241 changed files with 3057 additions and 1228 deletions

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 10
fix:
content: ""
content:
- ""
location:
row: 1
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 22
fix:
content: ""
content:
- ""
location:
row: 2
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 6
fix:
content: ""
content:
- ""
location:
row: 3
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 5
column: 13
fix:
content: ""
content:
- ""
location:
row: 5
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 12
column: 16
fix:
content: ""
content:
- ""
location:
row: 12
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 5
column: 16
fix:
content: " -> None"
content:
- " -> None"
location:
row: 5
column: 22
@ -28,7 +29,8 @@ expression: diagnostics
row: 11
column: 16
fix:
content: " -> None"
content:
- " -> None"
location:
row: 11
column: 27

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 6
column: 5
fix:
content: _i
content:
- _i
location:
row: 6
column: 4
@ -32,7 +33,8 @@ expression: diagnostics
row: 18
column: 13
fix:
content: _k
content:
- _k
location:
row: 18
column: 12
@ -51,7 +53,8 @@ expression: diagnostics
row: 30
column: 5
fix:
content: _i
content:
- _i
location:
row: 30
column: 4
@ -70,7 +73,8 @@ expression: diagnostics
row: 30
column: 13
fix:
content: _k
content:
- _k
location:
row: 30
column: 12

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 18
column: 19
fix:
content: foo.bar
content:
- foo.bar
location:
row: 18
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 19
column: 23
fix:
content: foo._123abc
content:
- foo._123abc
location:
row: 19
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 20
column: 22
fix:
content: foo.abc123
content:
- foo.abc123
location:
row: 20
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 21
column: 23
fix:
content: foo.abc123
content:
- foo.abc123
location:
row: 21
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 22
column: 31
fix:
content: x.bar
content:
- x.bar
location:
row: 22
column: 14
@ -96,7 +101,8 @@ expression: diagnostics
row: 23
column: 20
fix:
content: x.bar
content:
- x.bar
location:
row: 23
column: 3

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 37
column: 25
fix:
content: foo.bar = None
content:
- foo.bar = None
location:
row: 37
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 38
column: 29
fix:
content: foo._123abc = None
content:
- foo._123abc = None
location:
row: 38
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 39
column: 28
fix:
content: foo.abc123 = None
content:
- foo.abc123 = None
location:
row: 39
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 40
column: 29
fix:
content: foo.abc123 = None
content:
- foo.abc123 = None
location:
row: 40
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 41
column: 30
fix:
content: foo.bar.baz = None
content:
- foo.bar.baz = None
location:
row: 41
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 8
column: 12
fix:
content: raise AssertionError()
content:
- raise AssertionError()
location:
row: 8
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 10
column: 12
fix:
content: "raise AssertionError(\"message\")"
content:
- "raise AssertionError(\"message\")"
location:
row: 10
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 20
fix:
content: ValueError
content:
- ValueError
location:
row: 3
column: 7

View File

@ -12,7 +12,8 @@ expression: diagnostics
row: 17
column: 25
fix:
content: OSError
content:
- OSError
location:
row: 17
column: 7
@ -30,7 +31,8 @@ expression: diagnostics
row: 28
column: 25
fix:
content: MyError
content:
- MyError
location:
row: 28
column: 7
@ -48,7 +50,8 @@ expression: diagnostics
row: 49
column: 27
fix:
content: re.error
content:
- re.error
location:
row: 49
column: 7

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 4
column: 17
fix:
content: ","
content:
- ","
location:
row: 4
column: 17
@ -28,7 +29,8 @@ expression: diagnostics
row: 10
column: 5
fix:
content: ","
content:
- ","
location:
row: 10
column: 5
@ -45,7 +47,8 @@ expression: diagnostics
row: 16
column: 5
fix:
content: ","
content:
- ","
location:
row: 16
column: 5
@ -62,7 +65,8 @@ expression: diagnostics
row: 23
column: 5
fix:
content: ","
content:
- ","
location:
row: 23
column: 5
@ -149,7 +153,8 @@ expression: diagnostics
row: 70
column: 7
fix:
content: ","
content:
- ","
location:
row: 70
column: 7
@ -166,7 +171,8 @@ expression: diagnostics
row: 78
column: 7
fix:
content: ","
content:
- ","
location:
row: 78
column: 7
@ -183,7 +189,8 @@ expression: diagnostics
row: 86
column: 7
fix:
content: ","
content:
- ","
location:
row: 86
column: 7
@ -200,7 +207,8 @@ expression: diagnostics
row: 152
column: 5
fix:
content: ","
content:
- ","
location:
row: 152
column: 5
@ -217,7 +225,8 @@ expression: diagnostics
row: 158
column: 10
fix:
content: ","
content:
- ","
location:
row: 158
column: 10
@ -234,7 +243,8 @@ expression: diagnostics
row: 293
column: 14
fix:
content: ","
content:
- ","
location:
row: 293
column: 14
@ -251,7 +261,8 @@ expression: diagnostics
row: 304
column: 13
fix:
content: ","
content:
- ","
location:
row: 304
column: 13
@ -268,7 +279,8 @@ expression: diagnostics
row: 310
column: 13
fix:
content: ","
content:
- ","
location:
row: 310
column: 13
@ -285,7 +297,8 @@ expression: diagnostics
row: 316
column: 9
fix:
content: ","
content:
- ","
location:
row: 316
column: 9
@ -302,7 +315,8 @@ expression: diagnostics
row: 322
column: 14
fix:
content: ","
content:
- ","
location:
row: 322
column: 14
@ -319,7 +333,8 @@ expression: diagnostics
row: 368
column: 14
fix:
content: ","
content:
- ","
location:
row: 368
column: 14
@ -336,7 +351,8 @@ expression: diagnostics
row: 375
column: 14
fix:
content: ","
content:
- ","
location:
row: 375
column: 14
@ -353,7 +369,8 @@ expression: diagnostics
row: 404
column: 14
fix:
content: ","
content:
- ","
location:
row: 404
column: 14
@ -370,7 +387,8 @@ expression: diagnostics
row: 432
column: 14
fix:
content: ","
content:
- ","
location:
row: 432
column: 14
@ -387,7 +405,8 @@ expression: diagnostics
row: 485
column: 21
fix:
content: ""
content:
- ""
location:
row: 485
column: 20
@ -404,7 +423,8 @@ expression: diagnostics
row: 487
column: 13
fix:
content: ""
content:
- ""
location:
row: 487
column: 12
@ -421,7 +441,8 @@ expression: diagnostics
row: 489
column: 18
fix:
content: ""
content:
- ""
location:
row: 489
column: 17
@ -438,7 +459,8 @@ expression: diagnostics
row: 494
column: 6
fix:
content: ""
content:
- ""
location:
row: 494
column: 5
@ -455,7 +477,8 @@ expression: diagnostics
row: 496
column: 21
fix:
content: ""
content:
- ""
location:
row: 496
column: 20
@ -472,7 +495,8 @@ expression: diagnostics
row: 498
column: 13
fix:
content: ""
content:
- ""
location:
row: 498
column: 12
@ -489,7 +513,8 @@ expression: diagnostics
row: 500
column: 18
fix:
content: ""
content:
- ""
location:
row: 500
column: 17
@ -506,7 +531,8 @@ expression: diagnostics
row: 505
column: 6
fix:
content: ""
content:
- ""
location:
row: 505
column: 5
@ -523,7 +549,8 @@ expression: diagnostics
row: 511
column: 10
fix:
content: ""
content:
- ""
location:
row: 511
column: 9
@ -540,7 +567,8 @@ expression: diagnostics
row: 513
column: 9
fix:
content: ""
content:
- ""
location:
row: 513
column: 8
@ -557,7 +585,8 @@ expression: diagnostics
row: 519
column: 12
fix:
content: ","
content:
- ","
location:
row: 519
column: 12
@ -574,7 +603,8 @@ expression: diagnostics
row: 526
column: 9
fix:
content: ","
content:
- ","
location:
row: 526
column: 9
@ -591,7 +621,8 @@ expression: diagnostics
row: 534
column: 15
fix:
content: ","
content:
- ","
location:
row: 534
column: 15
@ -608,7 +639,8 @@ expression: diagnostics
row: 541
column: 12
fix:
content: ","
content:
- ","
location:
row: 541
column: 12
@ -625,7 +657,8 @@ expression: diagnostics
row: 547
column: 23
fix:
content: ","
content:
- ","
location:
row: 547
column: 23
@ -642,7 +675,8 @@ expression: diagnostics
row: 554
column: 14
fix:
content: ","
content:
- ","
location:
row: 554
column: 14
@ -659,7 +693,8 @@ expression: diagnostics
row: 561
column: 12
fix:
content: ","
content:
- ","
location:
row: 561
column: 12
@ -676,7 +711,8 @@ expression: diagnostics
row: 565
column: 12
fix:
content: ","
content:
- ","
location:
row: 565
column: 12
@ -693,7 +729,8 @@ expression: diagnostics
row: 573
column: 9
fix:
content: ","
content:
- ","
location:
row: 573
column: 9
@ -710,7 +747,8 @@ expression: diagnostics
row: 577
column: 9
fix:
content: ","
content:
- ","
location:
row: 577
column: 9
@ -727,7 +765,8 @@ expression: diagnostics
row: 583
column: 9
fix:
content: ","
content:
- ","
location:
row: 583
column: 9
@ -744,7 +783,8 @@ expression: diagnostics
row: 590
column: 12
fix:
content: ","
content:
- ","
location:
row: 590
column: 12
@ -761,7 +801,8 @@ expression: diagnostics
row: 598
column: 14
fix:
content: ","
content:
- ","
location:
row: 598
column: 14
@ -778,7 +819,8 @@ expression: diagnostics
row: 627
column: 19
fix:
content: ","
content:
- ","
location:
row: 627
column: 19

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 29
fix:
content: "[x for x in range(3)]"
content:
- "[x for x in range(3)]"
location:
row: 1
column: 4
@ -28,7 +29,10 @@ expression: diagnostics
row: 4
column: 1
fix:
content: "[\n x for x in range(3)\n]"
content:
- "["
- " x for x in range(3)"
- "]"
location:
row: 2
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 28
fix:
content: "{x for x in range(3)}"
content:
- "{x for x in range(3)}"
location:
row: 1
column: 4
@ -28,7 +29,10 @@ expression: diagnostics
row: 4
column: 1
fix:
content: "{\n x for x in range(3)\n}"
content:
- "{"
- " x for x in range(3)"
- "}"
location:
row: 2
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 30
fix:
content: "{x: x for x in range(3)}"
content:
- "{x: x for x in range(3)}"
location:
row: 1
column: 0
@ -28,7 +29,10 @@ expression: diagnostics
row: 4
column: 1
fix:
content: "{\n x: x for x in range(3)\n}"
content:
- "{"
- " x: x for x in range(3)"
- "}"
location:
row: 2
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 30
fix:
content: "{x for x in range(3)}"
content:
- "{x for x in range(3)}"
location:
row: 1
column: 4
@ -28,7 +29,10 @@ expression: diagnostics
row: 4
column: 1
fix:
content: "{\n x for x in range(3)\n}"
content:
- "{"
- " x for x in range(3)"
- "}"
location:
row: 2
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 32
fix:
content: "{i: i for i in range(3)}"
content:
- "{i: i for i in range(3)}"
location:
row: 1
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 11
fix:
content: "{1, 2}"
content:
- "{1, 2}"
location:
row: 1
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 11
fix:
content: "{1, 2}"
content:
- "{1, 2}"
location:
row: 2
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 7
fix:
content: set()
content:
- set()
location:
row: 3
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 4
column: 7
fix:
content: set()
content:
- set()
location:
row: 4
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 6
column: 9
fix:
content: "{1}"
content:
- "{1}"
location:
row: 6
column: 0
@ -96,7 +101,10 @@ expression: diagnostics
row: 9
column: 2
fix:
content: "{\n 1,\n}"
content:
- "{"
- " 1,"
- "}"
location:
row: 7
column: 0
@ -113,7 +121,10 @@ expression: diagnostics
row: 12
column: 2
fix:
content: "{\n 1,\n}"
content:
- "{"
- " 1,"
- "}"
location:
row: 10
column: 0
@ -130,7 +141,8 @@ expression: diagnostics
row: 15
column: 1
fix:
content: "{1}"
content:
- "{1}"
location:
row: 13
column: 0
@ -147,7 +159,8 @@ expression: diagnostics
row: 18
column: 1
fix:
content: "{1,}"
content:
- "{1,}"
location:
row: 16
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 19
fix:
content: "{1: 2}"
content:
- "{1: 2}"
location:
row: 1
column: 5
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 20
fix:
content: "{1: 2,}"
content:
- "{1: 2,}"
location:
row: 2
column: 5
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 13
fix:
content: "{}"
content:
- "{}"
location:
row: 3
column: 5
@ -62,7 +65,8 @@ expression: diagnostics
row: 4
column: 13
fix:
content: "{}"
content:
- "{}"
location:
row: 4
column: 5

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 11
fix:
content: ()
content:
- ()
location:
row: 1
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 10
fix:
content: "[]"
content:
- "[]"
location:
row: 2
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 11
fix:
content: "{}"
content:
- "{}"
location:
row: 3
column: 5
@ -62,7 +65,8 @@ expression: diagnostics
row: 4
column: 14
fix:
content: "{\"a\": 1}"
content:
- "{\"a\": 1}"
location:
row: 4
column: 5

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 14
fix:
content: ()
content:
- ()
location:
row: 1
column: 5
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 18
fix:
content: "(1, 2)"
content:
- "(1, 2)"
location:
row: 2
column: 5
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 18
fix:
content: "(1, 2)"
content:
- "(1, 2)"
location:
row: 3
column: 5
@ -62,7 +65,11 @@ expression: diagnostics
row: 7
column: 2
fix:
content: "(\n 1,\n 2\n)"
content:
- (
- " 1,"
- " 2"
- )
location:
row: 4
column: 5
@ -79,7 +86,8 @@ expression: diagnostics
row: 10
column: 1
fix:
content: "(1, 2)"
content:
- "(1, 2)"
location:
row: 8
column: 5

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 17
fix:
content: "[1, 2]"
content:
- "[1, 2]"
location:
row: 1
column: 5
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 17
fix:
content: "[1, 2]"
content:
- "[1, 2]"
location:
row: 2
column: 5
@ -45,7 +47,8 @@ expression: diagnostics
row: 3
column: 13
fix:
content: "[]"
content:
- "[]"
location:
row: 3
column: 5
@ -62,7 +65,8 @@ expression: diagnostics
row: 4
column: 13
fix:
content: "[]"
content:
- "[]"
location:
row: 4
column: 5

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 20
fix:
content: "[i for i in x]"
content:
- "[i for i in x]"
location:
row: 2
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 15
fix:
content: sorted(x)
content:
- sorted(x)
location:
row: 3
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 4
column: 19
fix:
content: "sorted(x, reverse=True)"
content:
- "sorted(x, reverse=True)"
location:
row: 4
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 5
column: 36
fix:
content: "sorted(x, key=lambda e: e, reverse=True)"
content:
- "sorted(x, key=lambda e: e, reverse=True)"
location:
row: 5
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 6
column: 33
fix:
content: "sorted(x, reverse=True)"
content:
- "sorted(x, reverse=True)"
location:
row: 6
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 14
fix:
content: list(x)
content:
- list(x)
location:
row: 2
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 3
column: 14
fix:
content: set(x)
content:
- set(x)
location:
row: 3
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 4
fix:
content: ""
content:
- ""
location:
row: 1
column: 0
@ -19,3 +20,4 @@ expression: diagnostics
row: 1
column: 4
parent: ~

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 4
column: 8
fix:
content: ""
content:
- ""
location:
row: 4
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 9
column: 8
fix:
content: ""
content:
- ""
location:
row: 9
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 14
column: 8
fix:
content: ""
content:
- ""
location:
row: 14
column: 4
@ -62,7 +65,8 @@ expression: diagnostics
row: 21
column: 8
fix:
content: ""
content:
- ""
location:
row: 21
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 28
column: 8
fix:
content: ""
content:
- ""
location:
row: 28
column: 0
@ -96,7 +101,8 @@ expression: diagnostics
row: 35
column: 8
fix:
content: ""
content:
- ""
location:
row: 35
column: 0
@ -113,7 +119,8 @@ expression: diagnostics
row: 42
column: 8
fix:
content: ""
content:
- ""
location:
row: 42
column: 0
@ -130,7 +137,8 @@ expression: diagnostics
row: 50
column: 8
fix:
content: ""
content:
- ""
location:
row: 50
column: 0
@ -147,7 +155,8 @@ expression: diagnostics
row: 58
column: 8
fix:
content: ""
content:
- ""
location:
row: 58
column: 0
@ -164,7 +173,8 @@ expression: diagnostics
row: 65
column: 8
fix:
content: ""
content:
- ""
location:
row: 65
column: 0
@ -181,7 +191,8 @@ expression: diagnostics
row: 74
column: 8
fix:
content: ""
content:
- ""
location:
row: 74
column: 0
@ -198,7 +209,8 @@ expression: diagnostics
row: 79
column: 8
fix:
content: ""
content:
- ""
location:
row: 79
column: 0
@ -215,7 +227,8 @@ expression: diagnostics
row: 83
column: 8
fix:
content: ""
content:
- ""
location:
row: 83
column: 0
@ -232,7 +245,8 @@ expression: diagnostics
row: 87
column: 8
fix:
content: ""
content:
- ""
location:
row: 87
column: 0
@ -249,7 +263,8 @@ expression: diagnostics
row: 92
column: 8
fix:
content: ""
content:
- ""
location:
row: 92
column: 0
@ -266,7 +281,8 @@ expression: diagnostics
row: 96
column: 8
fix:
content: ""
content:
- ""
location:
row: 96
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 4
column: 24
fix:
content: ""
content:
- ""
location:
row: 4
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 13
column: 24
fix:
content: ""
content:
- ""
location:
row: 13
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 23
column: 23
fix:
content: ""
content:
- ""
location:
row: 23
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 40
column: 23
fix:
content: ""
content:
- ""
location:
row: 40
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 53
fix:
content: list
content:
- list
location:
row: 3
column: 43
@ -28,7 +29,8 @@ expression: diagnostics
row: 7
column: 45
fix:
content: list
content:
- list
location:
row: 7
column: 35
@ -45,7 +47,8 @@ expression: diagnostics
row: 11
column: 37
fix:
content: list
content:
- list
location:
row: 11
column: 27

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 4
column: 5
fix:
content: ""
content:
- ""
location:
row: 4
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 5
column: 5
fix:
content: ""
content:
- ""
location:
row: 5
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 6
column: 5
fix:
content: ""
content:
- ""
location:
row: 6
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 7
column: 5
fix:
content: ""
content:
- ""
location:
row: 7
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 6
fix:
content: ""
content:
- ""
location:
row: 3
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 7
column: 13
fix:
content: ""
content:
- ""
location:
row: 7
column: 0

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 9
column: 15
fix:
content: ()
content:
- ()
location:
row: 9
column: 15
@ -32,7 +33,8 @@ expression: diagnostics
row: 34
column: 8
fix:
content: ()
content:
- ()
location:
row: 34
column: 8
@ -51,7 +53,8 @@ expression: diagnostics
row: 59
column: 8
fix:
content: ()
content:
- ()
location:
row: 59
column: 8

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 14
column: 17
fix:
content: ""
content:
- ""
location:
row: 14
column: 15
@ -32,7 +33,8 @@ expression: diagnostics
row: 26
column: 1
fix:
content: ""
content:
- ""
location:
row: 24
column: 15
@ -51,7 +53,8 @@ expression: diagnostics
row: 39
column: 10
fix:
content: ""
content:
- ""
location:
row: 39
column: 8
@ -70,7 +73,8 @@ expression: diagnostics
row: 51
column: 1
fix:
content: ""
content:
- ""
location:
row: 49
column: 8
@ -89,7 +93,8 @@ expression: diagnostics
row: 64
column: 10
fix:
content: ""
content:
- ""
location:
row: 64
column: 8
@ -108,7 +113,8 @@ expression: diagnostics
row: 76
column: 1
fix:
content: ""
content:
- ""
location:
row: 74
column: 8

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 24
column: 45
fix:
content: "\"param1,param2\""
content:
- "\"param1,param2\""
location:
row: 24
column: 25
@ -28,7 +29,8 @@ expression: diagnostics
row: 29
column: 36
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 29
column: 25
@ -45,7 +47,8 @@ expression: diagnostics
row: 34
column: 45
fix:
content: "\"param1,param2\""
content:
- "\"param1,param2\""
location:
row: 34
column: 25
@ -62,7 +65,8 @@ expression: diagnostics
row: 39
column: 35
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 39
column: 25

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 9
column: 40
fix:
content: "(\"param1\", \"param2\")"
content:
- "(\"param1\", \"param2\")"
location:
row: 9
column: 25
@ -28,7 +29,8 @@ expression: diagnostics
row: 14
column: 56
fix:
content: "(\"param1\", \"param2\")"
content:
- "(\"param1\", \"param2\")"
location:
row: 14
column: 25
@ -45,7 +47,8 @@ expression: diagnostics
row: 19
column: 40
fix:
content: "(\"param1\", \"param2\")"
content:
- "(\"param1\", \"param2\")"
location:
row: 19
column: 25
@ -62,7 +65,8 @@ expression: diagnostics
row: 29
column: 36
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 29
column: 25
@ -79,7 +83,8 @@ expression: diagnostics
row: 34
column: 45
fix:
content: "(\"param1\", \"param2\")"
content:
- "(\"param1\", \"param2\")"
location:
row: 34
column: 25
@ -96,7 +101,8 @@ expression: diagnostics
row: 39
column: 35
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 39
column: 25
@ -113,7 +119,8 @@ expression: diagnostics
row: 44
column: 50
fix:
content: "(some_expr, another_expr)"
content:
- "(some_expr, another_expr)"
location:
row: 44
column: 25
@ -130,7 +137,8 @@ expression: diagnostics
row: 49
column: 46
fix:
content: "(some_expr, \"param2\")"
content:
- "(some_expr, \"param2\")"
location:
row: 49
column: 25

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 9
column: 40
fix:
content: "[\"param1\", \"param2\"]"
content:
- "[\"param1\", \"param2\"]"
location:
row: 9
column: 25
@ -28,7 +29,8 @@ expression: diagnostics
row: 14
column: 56
fix:
content: "[\"param1\", \"param2\"]"
content:
- "[\"param1\", \"param2\"]"
location:
row: 14
column: 25
@ -45,7 +47,8 @@ expression: diagnostics
row: 19
column: 40
fix:
content: "[\"param1\", \"param2\"]"
content:
- "[\"param1\", \"param2\"]"
location:
row: 19
column: 25
@ -62,7 +65,8 @@ expression: diagnostics
row: 24
column: 45
fix:
content: "[\"param1\", \"param2\"]"
content:
- "[\"param1\", \"param2\"]"
location:
row: 24
column: 25
@ -79,7 +83,8 @@ expression: diagnostics
row: 29
column: 36
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 29
column: 25
@ -96,7 +101,8 @@ expression: diagnostics
row: 39
column: 35
fix:
content: "\"param1\""
content:
- "\"param1\""
location:
row: 39
column: 25

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 11
column: 23
fix:
content: assert expr is True
content:
- assert expr is True
location:
row: 11
column: 8
@ -28,7 +29,8 @@ expression: diagnostics
row: 12
column: 23
fix:
content: assert expr is True
content:
- assert expr is True
location:
row: 12
column: 8
@ -45,7 +47,8 @@ expression: diagnostics
row: 13
column: 23
fix:
content: assert expr is True
content:
- assert expr is True
location:
row: 13
column: 8
@ -62,7 +65,8 @@ expression: diagnostics
row: 14
column: 23
fix:
content: "assert expr is True, msg"
content:
- "assert expr is True, msg"
location:
row: 14
column: 8
@ -79,7 +83,8 @@ expression: diagnostics
row: 15
column: 23
fix:
content: "assert expr is True, msg"
content:
- "assert expr is True, msg"
location:
row: 15
column: 8
@ -136,7 +141,8 @@ expression: diagnostics
row: 22
column: 24
fix:
content: assert True is False
content:
- assert True is False
location:
row: 22
column: 8
@ -153,7 +159,8 @@ expression: diagnostics
row: 25
column: 24
fix:
content: assert 1 == 2
content:
- assert 1 == 2
location:
row: 25
column: 8
@ -170,7 +177,8 @@ expression: diagnostics
row: 28
column: 27
fix:
content: assert 1 != 1
content:
- assert 1 != 1
location:
row: 28
column: 8
@ -187,7 +195,8 @@ expression: diagnostics
row: 31
column: 26
fix:
content: assert 1 > 2
content:
- assert 1 > 2
location:
row: 31
column: 8
@ -204,7 +213,8 @@ expression: diagnostics
row: 34
column: 31
fix:
content: assert 1 >= 2
content:
- assert 1 >= 2
location:
row: 34
column: 8
@ -221,7 +231,8 @@ expression: diagnostics
row: 37
column: 23
fix:
content: assert 2 < 1
content:
- assert 2 < 1
location:
row: 37
column: 8
@ -238,7 +249,8 @@ expression: diagnostics
row: 40
column: 28
fix:
content: assert 1 <= 2
content:
- assert 1 <= 2
location:
row: 40
column: 8
@ -255,7 +267,8 @@ expression: diagnostics
row: 43
column: 21
fix:
content: "assert 1 in [2, 3]"
content:
- "assert 1 in [2, 3]"
location:
row: 43
column: 8
@ -272,7 +285,8 @@ expression: diagnostics
row: 46
column: 24
fix:
content: "assert 2 not in [2, 3]"
content:
- "assert 2 not in [2, 3]"
location:
row: 46
column: 8
@ -289,7 +303,8 @@ expression: diagnostics
row: 49
column: 25
fix:
content: assert 0 is None
content:
- assert 0 is None
location:
row: 49
column: 8
@ -306,7 +321,8 @@ expression: diagnostics
row: 52
column: 28
fix:
content: assert 0 is not None
content:
- assert 0 is not None
location:
row: 52
column: 8
@ -323,7 +339,8 @@ expression: diagnostics
row: 55
column: 21
fix:
content: "assert [] is []"
content:
- "assert [] is []"
location:
row: 55
column: 8
@ -340,7 +357,8 @@ expression: diagnostics
row: 58
column: 24
fix:
content: assert 1 is not 1
content:
- assert 1 is not 1
location:
row: 58
column: 8
@ -357,7 +375,8 @@ expression: diagnostics
row: 61
column: 29
fix:
content: "assert isinstance(1, str)"
content:
- "assert isinstance(1, str)"
location:
row: 61
column: 8
@ -374,7 +393,8 @@ expression: diagnostics
row: 64
column: 32
fix:
content: "assert not isinstance(1, int)"
content:
- "assert not isinstance(1, int)"
location:
row: 64
column: 8
@ -391,7 +411,8 @@ expression: diagnostics
row: 67
column: 24
fix:
content: "assert re.search(\"def\", \"abc\")"
content:
- "assert re.search(\"def\", \"abc\")"
location:
row: 67
column: 8
@ -408,7 +429,8 @@ expression: diagnostics
row: 70
column: 27
fix:
content: "assert not re.search(\"abc\", \"abc\")"
content:
- "assert not re.search(\"abc\", \"abc\")"
location:
row: 70
column: 8
@ -425,7 +447,8 @@ expression: diagnostics
row: 73
column: 32
fix:
content: "assert re.search(\"def\", \"abc\")"
content:
- "assert re.search(\"def\", \"abc\")"
location:
row: 73
column: 8
@ -442,7 +465,8 @@ expression: diagnostics
row: 76
column: 27
fix:
content: "assert not re.search(\"abc\", \"abc\")"
content:
- "assert not re.search(\"abc\", \"abc\")"
location:
row: 76
column: 8

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 17
column: 18
fix:
content: return
content:
- return
location:
row: 17
column: 4

View File

@ -14,7 +14,8 @@ expression: diagnostics
row: 12
column: 16
fix:
content: ()
content:
- ()
location:
row: 12
column: 16
@ -34,7 +35,8 @@ expression: diagnostics
row: 17
column: 16
fix:
content: ()
content:
- ()
location:
row: 17
column: 16
@ -54,7 +56,8 @@ expression: diagnostics
row: 24
column: 20
fix:
content: ()
content:
- ()
location:
row: 24
column: 20
@ -74,7 +77,8 @@ expression: diagnostics
row: 30
column: 20
fix:
content: ()
content:
- ()
location:
row: 30
column: 20
@ -94,7 +98,8 @@ expression: diagnostics
row: 38
column: 24
fix:
content: ()
content:
- ()
location:
row: 38
column: 24

View File

@ -14,7 +14,8 @@ expression: diagnostics
row: 46
column: 18
fix:
content: ""
content:
- ""
location:
row: 46
column: 16
@ -34,7 +35,8 @@ expression: diagnostics
row: 51
column: 18
fix:
content: ""
content:
- ""
location:
row: 51
column: 16
@ -54,7 +56,8 @@ expression: diagnostics
row: 58
column: 22
fix:
content: ""
content:
- ""
location:
row: 58
column: 20
@ -74,7 +77,8 @@ expression: diagnostics
row: 64
column: 22
fix:
content: ""
content:
- ""
location:
row: 64
column: 20
@ -94,7 +98,8 @@ expression: diagnostics
row: 72
column: 26
fix:
content: ""
content:
- ""
location:
row: 72
column: 24

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 14
column: 22
fix:
content: ""
content:
- ""
location:
row: 14
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 20
column: 20
fix:
content: ""
content:
- ""
location:
row: 20
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 27
column: 22
fix:
content: ""
content:
- ""
location:
row: 27
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 33
column: 20
fix:
content: ""
content:
- ""
location:
row: 33
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 9
column: 29
fix:
content: ""
content:
- ""
location:
row: 9
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 16
column: 29
fix:
content: ""
content:
- ""
location:
row: 16
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 19
column: 26
fix:
content: ""
content:
- ""
location:
row: 19
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 24
column: 24
fix:
content: ""
content:
- ""
location:
row: 24
column: 0

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 7
column: 3
fix:
content: "'''\nthis is not a docstring\n'''"
content:
- "'''"
- this is not a docstring
- "'''"
location:
row: 5
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 18
column: 7
fix:
content: "'''\n this is not a docstring\n '''"
content:
- "'''"
- " this is not a docstring"
- " '''"
location:
row: 16
column: 4
@ -45,7 +51,9 @@ expression: diagnostics
row: 22
column: 37
fix:
content: "'''\n definitely not a docstring'''"
content:
- "'''"
- " definitely not a docstring'''"
location:
row: 21
column: 20
@ -62,7 +70,10 @@ expression: diagnostics
row: 32
column: 11
fix:
content: "'''\n this is not a docstring\n '''"
content:
- "'''"
- " this is not a docstring"
- " '''"
location:
row: 30
column: 8
@ -79,7 +90,10 @@ 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 '''"
content:
- "'''"
- " Looks like a docstring, but in reality it isn't - only modules, classes and functions"
- " '''"
location:
row: 35
column: 12

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 27
fix:
content: "''' Not a docstring '''"
content:
- "''' Not a docstring '''"
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 5
column: 43
fix:
content: "'''not a docstring'''"
content:
- "'''not a docstring'''"
location:
row: 5
column: 22

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 26
fix:
content: "''' not a docstring'''"
content:
- "''' not a docstring'''"
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 11
column: 26
fix:
content: "''' not a docstring'''"
content:
- "''' not a docstring'''"
location:
row: 11
column: 4
@ -45,7 +47,10 @@ expression: diagnostics
row: 17
column: 3
fix:
content: "'''\n not a\n'''"
content:
- "'''"
- " not a"
- "'''"
location:
row: 15
column: 38
@ -62,7 +67,8 @@ expression: diagnostics
row: 17
column: 19
fix:
content: "'''docstring'''"
content:
- "'''docstring'''"
location:
row: 17
column: 4
@ -79,7 +85,8 @@ expression: diagnostics
row: 22
column: 27
fix:
content: "''' not a docstring '''"
content:
- "''' not a docstring '''"
location:
row: 22
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 6
column: 3
fix:
content: "'''\nthis is not a docstring\n'''"
content:
- "'''"
- this is not a docstring
- "'''"
location:
row: 4
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 11
column: 3
fix:
content: "'''\nthis is not a docstring\n'''"
content:
- "'''"
- this is not a docstring
- "'''"
location:
row: 9
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 31
fix:
content: "''' this is not a docstring '''"
content:
- "''' this is not a docstring '''"
location:
row: 2
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 6
column: 31
fix:
content: "''' this is not a docstring '''"
content:
- "''' this is not a docstring '''"
location:
row: 6
column: 0

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 3
fix:
content: "\"\"\"\nSingle quotes multiline module docstring\n\"\"\""
content:
- "\"\"\""
- Single quotes multiline module docstring
- "\"\"\""
location:
row: 1
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 16
column: 7
fix:
content: "\"\"\"\n Single quotes multiline class docstring\n \"\"\""
content:
- "\"\"\""
- " Single quotes multiline class docstring"
- " \"\"\""
location:
row: 14
column: 4
@ -45,7 +51,10 @@ expression: diagnostics
row: 28
column: 11
fix:
content: "\"\"\"\n Single quotes multiline function docstring\n \"\"\""
content:
- "\"\"\""
- " Single quotes multiline function docstring"
- " \"\"\""
location:
row: 26
column: 8

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 53
fix:
content: "\"\"\" Double quotes single line class docstring \"\"\""
content:
- "\"\"\" Double quotes single line class docstring \"\"\""
location:
row: 2
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 6
column: 57
fix:
content: "\"\"\" Double quotes single line method docstring\"\"\""
content:
- "\"\"\" Double quotes single line method docstring\"\"\""
location:
row: 6
column: 8
@ -45,7 +47,8 @@ expression: diagnostics
row: 9
column: 52
fix:
content: "\"\"\" inline docstring \"\"\""
content:
- "\"\"\" inline docstring \"\"\""
location:
row: 9
column: 28

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 56
fix:
content: "\"\"\"function without params, single line docstring\"\"\""
content:
- "\"\"\"function without params, single line docstring\"\"\""
location:
row: 2
column: 4
@ -28,7 +29,10 @@ expression: diagnostics
row: 10
column: 7
fix:
content: "\"\"\"\n function without params, multiline docstring\n \"\"\""
content:
- "\"\"\""
- " function without params, multiline docstring"
- " \"\"\""
location:
row: 8
column: 4
@ -45,7 +49,8 @@ expression: diagnostics
row: 27
column: 27
fix:
content: "\"Single line docstring\""
content:
- "\"Single line docstring\""
location:
row: 27
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 3
fix:
content: "\"\"\"\nDouble quotes multiline module docstring\n\"\"\""
content:
- "\"\"\""
- Double quotes multiline module docstring
- "\"\"\""
location:
row: 1
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 49
fix:
content: "\"\"\" Double quotes singleline module docstring \"\"\""
content:
- "\"\"\" Double quotes singleline module docstring \"\"\""
location:
row: 1
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 45
fix:
content: "'double quote string'"
content:
- "'double quote string'"
location:
row: 1
column: 24
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 46
fix:
content: "u'double quote string'"
content:
- "u'double quote string'"
location:
row: 2
column: 24

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 47
fix:
content: "\"This is a 'string'\""
content:
- "\"This is a 'string'\""
location:
row: 1
column: 25
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 52
fix:
content: "\"This is \\\\ a \\\\'string'\""
content:
- "\"This is \\\\ a \\\\'string'\""
location:
row: 2
column: 25

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 12
fix:
content: "''' This \"should\"\nbe\n\"linted\" '''"
content:
- "''' This \"should\""
- be
- "\"linted\" '''"
location:
row: 1
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 3
fix:
content: "'''\nDouble quotes multiline module docstring\n'''"
content:
- "'''"
- Double quotes multiline module docstring
- "'''"
location:
row: 1
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 14
column: 7
fix:
content: "'''\n Double quotes multiline class docstring\n '''"
content:
- "'''"
- " Double quotes multiline class docstring"
- " '''"
location:
row: 12
column: 4
@ -45,7 +51,10 @@ expression: diagnostics
row: 26
column: 11
fix:
content: "'''\n Double quotes multiline function docstring\n '''"
content:
- "'''"
- " Double quotes multiline function docstring"
- " '''"
location:
row: 24
column: 8

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 53
fix:
content: "''' Double quotes single line class docstring '''"
content:
- "''' Double quotes single line class docstring '''"
location:
row: 2
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 6
column: 57
fix:
content: "''' Double quotes single line method docstring'''"
content:
- "''' Double quotes single line method docstring'''"
location:
row: 6
column: 8
@ -45,7 +47,8 @@ expression: diagnostics
row: 9
column: 52
fix:
content: "''' inline docstring '''"
content:
- "''' inline docstring '''"
location:
row: 9
column: 28

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 56
fix:
content: "'''function without params, single line docstring'''"
content:
- "'''function without params, single line docstring'''"
location:
row: 2
column: 4
@ -28,7 +29,10 @@ expression: diagnostics
row: 10
column: 7
fix:
content: "'''\n function without params, multiline docstring\n '''"
content:
- "'''"
- " function without params, multiline docstring"
- " '''"
location:
row: 8
column: 4
@ -45,7 +49,8 @@ expression: diagnostics
row: 27
column: 27
fix:
content: "'Single line docstring'"
content:
- "'Single line docstring'"
location:
row: 27
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 3
fix:
content: "'''\nDouble quotes multiline module docstring\n'''"
content:
- "'''"
- Double quotes multiline module docstring
- "'''"
location:
row: 1
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 49
fix:
content: "''' Double quotes singleline module docstring '''"
content:
- "''' Double quotes singleline module docstring '''"
location:
row: 1
column: 0

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 7
column: 3
fix:
content: "\"\"\"\nthis is not a docstring\n\"\"\""
content:
- "\"\"\""
- this is not a docstring
- "\"\"\""
location:
row: 5
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 13
column: 3
fix:
content: "\"\"\"\n class params \\t not a docstring\n\"\"\""
content:
- "\"\"\""
- " class params \\t not a docstring"
- "\"\"\""
location:
row: 11
column: 20
@ -45,7 +51,10 @@ expression: diagnostics
row: 20
column: 7
fix:
content: "\"\"\"\n this is not a docstring\n \"\"\""
content:
- "\"\"\""
- " this is not a docstring"
- " \"\"\""
location:
row: 18
column: 4
@ -62,7 +71,9 @@ expression: diagnostics
row: 24
column: 37
fix:
content: "\"\"\"\n definitely not a docstring\"\"\""
content:
- "\"\"\""
- " definitely not a docstring\"\"\""
location:
row: 23
column: 20
@ -79,7 +90,10 @@ expression: diagnostics
row: 34
column: 11
fix:
content: "\"\"\"\n this is not a docstring\n \"\"\""
content:
- "\"\"\""
- " this is not a docstring"
- " \"\"\""
location:
row: 32
column: 8
@ -96,7 +110,10 @@ 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 \"\"\""
content:
- "\"\"\""
- " Looks like a docstring, but in reality it isn't - only modules, classes and functions"
- " \"\"\""
location:
row: 37
column: 12

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 27
fix:
content: "\"\"\" Not a docstring \"\"\""
content:
- "\"\"\" Not a docstring \"\"\""
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 5
column: 43
fix:
content: "\"\"\"not a docstring\"\"\""
content:
- "\"\"\"not a docstring\"\"\""
location:
row: 5
column: 22

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 26
fix:
content: "\"\"\" not a docstring\"\"\""
content:
- "\"\"\" not a docstring\"\"\""
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 11
column: 26
fix:
content: "\"\"\" not a docstring\"\"\""
content:
- "\"\"\" not a docstring\"\"\""
location:
row: 11
column: 4
@ -45,7 +47,10 @@ expression: diagnostics
row: 17
column: 3
fix:
content: "\"\"\"\n not a\n\"\"\""
content:
- "\"\"\""
- " not a"
- "\"\"\""
location:
row: 15
column: 38
@ -62,7 +67,8 @@ expression: diagnostics
row: 17
column: 19
fix:
content: "\"\"\"docstring\"\"\""
content:
- "\"\"\"docstring\"\"\""
location:
row: 17
column: 4
@ -79,7 +85,8 @@ expression: diagnostics
row: 22
column: 27
fix:
content: "\"\"\" not a docstring \"\"\""
content:
- "\"\"\" not a docstring \"\"\""
location:
row: 22
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 6
column: 3
fix:
content: "\"\"\"\nthis is not a docstring\n\"\"\""
content:
- "\"\"\""
- this is not a docstring
- "\"\"\""
location:
row: 4
column: 0
@ -28,7 +31,10 @@ expression: diagnostics
row: 11
column: 3
fix:
content: "\"\"\"\nthis is not a docstring\n\"\"\""
content:
- "\"\"\""
- this is not a docstring
- "\"\"\""
location:
row: 9
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 2
column: 31
fix:
content: "\"\"\" this is not a docstring \"\"\""
content:
- "\"\"\" this is not a docstring \"\"\""
location:
row: 2
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 6
column: 31
fix:
content: "\"\"\" this is not a docstring \"\"\""
content:
- "\"\"\" this is not a docstring \"\"\""
location:
row: 6
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 45
fix:
content: "\"single quote string\""
content:
- "\"single quote string\""
location:
row: 1
column: 24
@ -28,7 +29,8 @@ expression: diagnostics
row: 2
column: 46
fix:
content: "u\"double quote string\""
content:
- "u\"double quote string\""
location:
row: 2
column: 24

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 47
fix:
content: "'This is a \"string\"'"
content:
- "'This is a \"string\"'"
location:
row: 1
column: 25

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 12
fix:
content: "\"\"\" This 'should'\nbe\n'linted' \"\"\""
content:
- "\"\"\" This 'should'"
- be
- "'linted' \"\"\""
location:
row: 1
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 4
column: 15
fix:
content: return
content:
- return
location:
row: 4
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 3
column: 14
fix:
content: return None
content:
- return None
location:
row: 3
column: 8

View File

@ -21,7 +21,9 @@ expression: diagnostics
row: 14
column: 15
fix:
content: " return None\n"
content:
- " return None"
- ""
location:
row: 15
column: 0
@ -38,7 +40,9 @@ expression: diagnostics
row: 23
column: 11
fix:
content: " return None\n"
content:
- " return None"
- ""
location:
row: 24
column: 0
@ -65,7 +69,9 @@ expression: diagnostics
row: 39
column: 15
fix:
content: " return None\n"
content:
- " return None"
- ""
location:
row: 40
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 45
fix:
content: "isinstance(a, (int, float))"
content:
- "isinstance(a, (int, float))"
location:
row: 1
column: 3
@ -28,7 +29,8 @@ expression: diagnostics
row: 4
column: 53
fix:
content: "isinstance(a, (int, float, bool))"
content:
- "isinstance(a, (int, float, bool))"
location:
row: 4
column: 3
@ -45,7 +47,8 @@ expression: diagnostics
row: 7
column: 68
fix:
content: "isinstance(a, (int, float)) or isinstance(b, bool)"
content:
- "isinstance(a, (int, float)) or isinstance(b, bool)"
location:
row: 7
column: 3
@ -62,7 +65,8 @@ expression: diagnostics
row: 10
column: 68
fix:
content: "isinstance(a, (int, float)) or isinstance(b, bool)"
content:
- "isinstance(a, (int, float)) or isinstance(b, bool)"
location:
row: 10
column: 3
@ -79,7 +83,8 @@ expression: diagnostics
row: 13
column: 68
fix:
content: "isinstance(a, (int, float)) or isinstance(b, bool)"
content:
- "isinstance(a, (int, float)) or isinstance(b, bool)"
location:
row: 13
column: 3
@ -96,7 +101,8 @@ expression: diagnostics
row: 16
column: 46
fix:
content: "isinstance(a, (int, float))"
content:
- "isinstance(a, (int, float))"
location:
row: 16
column: 4

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 9
fix:
content: "if a and b:\n c\n"
content:
- "if a and b:"
- " c"
- ""
location:
row: 2
column: 0
@ -28,7 +31,11 @@ expression: diagnostics
row: 9
column: 13
fix:
content: "if a and b:\n if c:\n d\n"
content:
- "if a and b:"
- " if c:"
- " d"
- ""
location:
row: 7
column: 0
@ -45,7 +52,10 @@ expression: diagnostics
row: 16
column: 9
fix:
content: "elif b and c:\n d\n"
content:
- "elif b and c:"
- " d"
- ""
location:
row: 15
column: 0
@ -72,7 +82,11 @@ expression: diagnostics
row: 27
column: 9
fix:
content: "if a and b:\n # Fixable due to placement of this comment.\n c\n"
content:
- "if a and b:"
- " # Fixable due to placement of this comment."
- " c"
- ""
location:
row: 26
column: 0
@ -89,7 +103,20 @@ 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"
content:
- " if True and True:"
- " \"\"\"this"
- "is valid\"\"\""
- ""
- " \"\"\"the indentation on"
- " this line is significant\"\"\""
- ""
- " \"this is\" \\"
- "\"allowed too\""
- ""
- " (\"so is\""
- "\"this for some reason\")"
- ""
location:
row: 51
column: 0
@ -106,7 +133,20 @@ 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"
content:
- "if True and True:"
- " \"\"\"this"
- "is valid\"\"\""
- ""
- " \"\"\"the indentation on"
- " this line is significant\"\"\""
- ""
- " \"this is\" \\"
- "\"allowed too\""
- ""
- " (\"so is\""
- "\"this for some reason\")"
- ""
location:
row: 67
column: 0
@ -123,7 +163,12 @@ 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"
content:
- " if node.module and (node.module == \"multiprocessing\" or node.module.startswith("
- " \"multiprocessing.\""
- " )):"
- " print(\"Bad module!\")"
- ""
location:
row: 83
column: 0
@ -140,7 +185,12 @@ 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"
content:
- "if node.module and (node.module == \"multiprocessing\" or node.module.startswith("
- " \"multiprocessing.\""
- ")):"
- " print(\"Bad module!\")"
- ""
location:
row: 90
column: 0
@ -157,7 +207,10 @@ expression: diagnostics
row: 118
column: 13
fix:
content: " if b and c:\n print(\"foo\")\n"
content:
- " if b and c:"
- " print(\"foo\")"
- ""
location:
row: 117
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 6
column: 20
fix:
content: return a
content:
- return a
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 16
column: 20
fix:
content: return b
content:
- return b
location:
row: 13
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 27
column: 24
fix:
content: return b
content:
- return b
location:
row: 24
column: 8

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 5
column: 9
fix:
content: b = c if a else d
content:
- b = c if a else d
location:
row: 2
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 85
column: 45
fix:
content: b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd
content:
- b = cccccccccccccccccccccccccccccccccccc if a else ddddddddddddddddddddddddddddddddddddd
location:
row: 82
column: 0

View File

@ -12,7 +12,8 @@ expression: diagnostics
row: 2
column: 19
fix:
content: "a in (b, c)"
content:
- "a in (b, c)"
location:
row: 2
column: 3
@ -30,7 +31,8 @@ expression: diagnostics
row: 6
column: 20
fix:
content: "a in (b, c)"
content:
- "a in (b, c)"
location:
row: 6
column: 4
@ -48,7 +50,8 @@ expression: diagnostics
row: 10
column: 27
fix:
content: "a in (b, c) or None"
content:
- "a in (b, c) or None"
location:
row: 10
column: 3
@ -66,7 +69,8 @@ expression: diagnostics
row: 14
column: 27
fix:
content: "a in (b, c) or None"
content:
- "a in (b, c) or None"
location:
row: 14
column: 3

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 5
column: 23
fix:
content: return any(check(x) for x in iterable)
content:
- return any(check(x) for x in iterable)
location:
row: 3
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 59
column: 20
fix:
content: return any(check(x) for x in iterable)
content:
- return any(check(x) for x in iterable)
location:
row: 55
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 77
column: 20
fix:
content: return any(check(x) for x in iterable)
content:
- return any(check(x) for x in iterable)
location:
row: 73
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 27
column: 24
fix:
content: return all(not check(x) for x in iterable)
content:
- return all(not check(x) for x in iterable)
location:
row: 25
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 35
column: 24
fix:
content: return all(x.is_empty() for x in iterable)
content:
- return all(x.is_empty() for x in iterable)
location:
row: 33
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 68
column: 19
fix:
content: return all(not check(x) for x in iterable)
content:
- return all(not check(x) for x in iterable)
location:
row: 64
column: 4
@ -62,7 +65,8 @@ expression: diagnostics
row: 87
column: 19
fix:
content: return all(not check(x) for x in iterable)
content:
- return all(not check(x) for x in iterable)
location:
row: 83
column: 4

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 4
column: 16
fix:
content: "'FOO'"
content:
- "'FOO'"
location:
row: 4
column: 11
@ -32,7 +33,8 @@ expression: diagnostics
row: 6
column: 20
fix:
content: "'FOO'"
content:
- "'FOO'"
location:
row: 6
column: 15
@ -51,7 +53,8 @@ expression: diagnostics
row: 8
column: 20
fix:
content: "'FOO'"
content:
- "'FOO'"
location:
row: 8
column: 15
@ -70,7 +73,8 @@ expression: diagnostics
row: 10
column: 15
fix:
content: "'FOO'"
content:
- "'FOO'"
location:
row: 10
column: 10

View File

@ -11,7 +11,10 @@ expression: diagnostics
row: 3
column: 18
fix:
content: "with A() as a, B() as b:\n print(\"hello\")\n"
content:
- "with A() as a, B() as b:"
- " print(\"hello\")"
- ""
location:
row: 2
column: 0
@ -28,7 +31,11 @@ expression: diagnostics
row: 9
column: 17
fix:
content: "with A(), B():\n with C():\n print(\"hello\")\n"
content:
- "with A(), B():"
- " with C():"
- " print(\"hello\")"
- ""
location:
row: 7
column: 0
@ -55,7 +62,11 @@ 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"
content:
- "with A() as a, B() as b:"
- " # Fixable due to placement of this comment."
- " print(\"hello\")"
- ""
location:
row: 19
column: 0
@ -72,7 +83,20 @@ 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"
content:
- " with A() as a, B() as b:"
- " \"\"\"this"
- "is valid\"\"\""
- ""
- " \"\"\"the indentation on"
- " this line is significant\"\"\""
- ""
- " \"this is\" \\"
- "\"allowed too\""
- ""
- " (\"so is\""
- "\"this for some reason\")"
- ""
location:
row: 53
column: 0
@ -89,7 +113,13 @@ 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"
content:
- with (
- " A() as a,"
- " B() as b,C() as c"
- "):"
- " print(\"hello\")"
- ""
location:
row: 68
column: 0
@ -106,7 +136,13 @@ 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"
content:
- with (
- " A() as a, B() as b,"
- " C() as c,"
- "):"
- " print(\"hello\")"
- ""
location:
row: 76
column: 0
@ -123,7 +159,14 @@ 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"
content:
- with (
- " A() as a,"
- " B() as b,C() as c,"
- " D() as d,"
- "):"
- " print(\"hello\")"
- ""
location:
row: 84
column: 0

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 1
column: 17
fix:
content: obj
content:
- obj
location:
row: 1
column: 7
@ -32,7 +33,8 @@ expression: diagnostics
row: 3
column: 24
fix:
content: obj
content:
- obj
location:
row: 3
column: 14
@ -51,7 +53,8 @@ expression: diagnostics
row: 5
column: 24
fix:
content: obj
content:
- obj
location:
row: 5
column: 14
@ -70,7 +73,8 @@ expression: diagnostics
row: 7
column: 19
fix:
content: obj
content:
- obj
location:
row: 7
column: 9
@ -89,7 +93,8 @@ expression: diagnostics
row: 9
column: 21
fix:
content: obj
content:
- obj
location:
row: 9
column: 11
@ -108,7 +113,8 @@ expression: diagnostics
row: 16
column: 22
fix:
content: obj
content:
- obj
location:
row: 16
column: 12
@ -127,7 +133,8 @@ expression: diagnostics
row: 18
column: 22
fix:
content: obj
content:
- obj
location:
row: 18
column: 12
@ -146,7 +153,8 @@ expression: diagnostics
row: 20
column: 25
fix:
content: obj
content:
- obj
location:
row: 20
column: 15
@ -165,7 +173,8 @@ expression: diagnostics
row: 22
column: 22
fix:
content: obj
content:
- obj
location:
row: 22
column: 12

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 2
column: 13
fix:
content: a != b
content:
- a != b
location:
row: 2
column: 3
@ -32,7 +33,8 @@ expression: diagnostics
row: 6
column: 19
fix:
content: a != b + c
content:
- a != b + c
location:
row: 6
column: 3
@ -51,7 +53,8 @@ expression: diagnostics
row: 10
column: 19
fix:
content: a + b != c
content:
- a + b != c
location:
row: 10
column: 3

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 2
column: 13
fix:
content: a == b
content:
- a == b
location:
row: 2
column: 3
@ -32,7 +33,8 @@ expression: diagnostics
row: 6
column: 19
fix:
content: a == b + c
content:
- a == b + c
location:
row: 6
column: 3
@ -51,7 +53,8 @@ expression: diagnostics
row: 10
column: 19
fix:
content: a + b == c
content:
- a + b == c
location:
row: 10
column: 3

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 14
fix:
content: a
content:
- a
location:
row: 1
column: 3
@ -28,7 +29,8 @@ expression: diagnostics
row: 4
column: 21
fix:
content: a == b
content:
- a == b
location:
row: 4
column: 3

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 24
fix:
content: bool(b)
content:
- bool(b)
location:
row: 1
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 3
column: 29
fix:
content: bool(b != c)
content:
- bool(b != c)
location:
row: 3
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 5
column: 28
fix:
content: bool(b + c)
content:
- bool(b + c)
location:
row: 5
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 24
fix:
content: not b
content:
- not b
location:
row: 1
column: 4
@ -28,7 +29,8 @@ expression: diagnostics
row: 3
column: 29
fix:
content: not b != c
content:
- not b != c
location:
row: 3
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 5
column: 28
fix:
content: not b + c
content:
- not b + c
location:
row: 5
column: 4

View File

@ -13,7 +13,8 @@ expression: diagnostics
row: 1
column: 21
fix:
content: a if a else b
content:
- a if a else b
location:
row: 1
column: 4
@ -32,7 +33,8 @@ expression: diagnostics
row: 3
column: 25
fix:
content: a if a else b + c
content:
- a if a else b + c
location:
row: 3
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 14
fix:
content: "False"
content:
- "False"
location:
row: 1
column: 3
@ -28,7 +29,8 @@ expression: diagnostics
row: 4
column: 15
fix:
content: "False"
content:
- "False"
location:
row: 4
column: 4
@ -45,7 +47,8 @@ expression: diagnostics
row: 7
column: 15
fix:
content: "False"
content:
- "False"
location:
row: 7
column: 4

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 1
column: 14
fix:
content: "False"
content:
- "False"
location:
row: 1
column: 3
@ -28,7 +29,8 @@ expression: diagnostics
row: 4
column: 21
fix:
content: "False"
content:
- "False"
location:
row: 4
column: 3
@ -45,7 +47,8 @@ expression: diagnostics
row: 7
column: 20
fix:
content: "False"
content:
- "False"
location:
row: 7
column: 9

View File

@ -12,7 +12,8 @@ expression: diagnostics
row: 2
column: 17
fix:
content: "compare == \"yoda\""
content:
- "compare == \"yoda\""
location:
row: 2
column: 0
@ -30,7 +31,8 @@ expression: diagnostics
row: 3
column: 17
fix:
content: "compare == 'yoda'"
content:
- "compare == 'yoda'"
location:
row: 3
column: 0
@ -48,7 +50,8 @@ expression: diagnostics
row: 4
column: 9
fix:
content: age == 42
content:
- age == 42
location:
row: 4
column: 0
@ -66,7 +69,8 @@ expression: diagnostics
row: 5
column: 17
fix:
content: "compare >= \"yoda\""
content:
- "compare >= \"yoda\""
location:
row: 5
column: 0
@ -84,7 +88,8 @@ expression: diagnostics
row: 6
column: 16
fix:
content: "compare > 'yoda'"
content:
- "compare > 'yoda'"
location:
row: 6
column: 0
@ -102,7 +107,8 @@ expression: diagnostics
row: 7
column: 8
fix:
content: age < 42
content:
- age < 42
location:
row: 7
column: 0

View File

@ -11,7 +11,8 @@ expression: diagnostics
row: 9
column: 20
fix:
content: "var = a_dict.get(key, \"default1\")"
content:
- "var = a_dict.get(key, \"default1\")"
location:
row: 6
column: 0
@ -28,7 +29,8 @@ expression: diagnostics
row: 15
column: 21
fix:
content: "var = a_dict.get(key, \"default2\")"
content:
- "var = a_dict.get(key, \"default2\")"
location:
row: 12
column: 0
@ -45,7 +47,8 @@ expression: diagnostics
row: 21
column: 21
fix:
content: "var = a_dict.get(key, val1 + val2)"
content:
- "var = a_dict.get(key, val1 + val2)"
location:
row: 18
column: 0
@ -62,7 +65,8 @@ expression: diagnostics
row: 27
column: 19
fix:
content: "var = a_dict.get(keys[idx], \"default\")"
content:
- "var = a_dict.get(keys[idx], \"default\")"
location:
row: 24
column: 0
@ -79,7 +83,8 @@ expression: diagnostics
row: 33
column: 19
fix:
content: "var = dicts[idx].get(key, \"default\")"
content:
- "var = dicts[idx].get(key, \"default\")"
location:
row: 30
column: 0
@ -96,7 +101,8 @@ expression: diagnostics
row: 39
column: 25
fix:
content: "vars[idx] = a_dict.get(key, \"default\")"
content:
- "vars[idx] = a_dict.get(key, \"default\")"
location:
row: 36
column: 0

View File

@ -11,7 +11,18 @@ 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"
content:
- import os
- ""
- "# This is a comment in the same section, so we need to add one newline."
- import sys
- ""
- import numpy as np
- ""
- "# This is a comment, but it starts a new section, so we don't need to add a newline"
- "# before it."
- import leading_prefix
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,11 @@ expression: diagnostics
row: 4
column: 0
fix:
content: "from . import c\nfrom .. import b\nfrom ... import a\n"
content:
- from . import c
- from .. import b
- from ... import a
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,11 @@ 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"
content:
- "from module import CONSTANT, function"
- from module import Class as C
- from module import function as f
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,9 @@ expression: diagnostics
row: 5
column: 0
fix:
content: "from module import CONSTANT, Class as C, function, function as f\n"
content:
- "from module import CONSTANT, Class as C, function, function as f"
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,16 @@ 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"
content:
- from collections import (
- " AsyncIterable,"
- " Awaitable,"
- " ChainMap,"
- " Collection,"
- " MutableMapping,"
- " MutableSequence,"
- )
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,9 @@ expression: diagnostics
row: 1
column: 0
fix:
content: "\nfrom __future__ import annotations"
content:
- ""
- from __future__ import annotations
location:
row: 1
column: 19
@ -28,7 +30,9 @@ expression: diagnostics
row: 1
column: 0
fix:
content: "\nfrom __future__ import generator_stop"
content:
- ""
- from __future__ import generator_stop
location:
row: 1
column: 19

View File

@ -11,7 +11,31 @@ 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"
content:
- "import B # Comment 4"
- ""
- "# Comment 3a"
- "# Comment 3b"
- import C
- import D
- ""
- "# Comment 5"
- "# Comment 6"
- from A import (
- " a, # Comment 7 # Comment 9"
- " b, # Comment 10"
- " c, # Comment 8 # Comment 11"
- )
- from D import (
- " a_long_name_to_force_multiple_lines, # Comment 12"
- " another_long_name_to_force_multiple_lines, # Comment 13"
- )
- "from E import a # Comment 1"
- from F import (
- " a, # Comment 1"
- " b,"
- )
- ""
location:
row: 3
column: 0

View File

@ -11,7 +11,11 @@ expression: diagnostics
row: 5
column: 0
fix:
content: "import os\nimport os as os1\nimport os as os2\n"
content:
- import os
- import os as os1
- import os as os2
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,24 @@ 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"
content:
- " from line_with_88 import aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
- " from line_with_89 import ("
- " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,"
- " )"
- " from line_with_90 import ("
- " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,"
- " )"
- " from line_with_91 import ("
- " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,"
- " )"
- " from line_with_92 import ("
- " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,"
- " )"
- " from line_with_93 import ("
- " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,"
- " )"
- ""
location:
row: 7
column: 0

View File

@ -11,7 +11,15 @@ 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"
content:
- import a
- ""
- "# Don't take this comment into account when determining whether the next import can fit on one line."
- from b import c
- from d import (
- " e, # Do take this comment into account when determining whether the next import can fit on one line."
- )
- ""
location:
row: 1
column: 0

View File

@ -11,7 +11,28 @@ expression: diagnostics
row: 19
column: 0
fix:
content: "import math\nimport sys\nfrom logging.handlers import FileHandler, StreamHandler\nfrom os import path, uname\n\n# comment 5\nfrom bar import a # comment 6\nfrom bar import b # comment 7\nfrom foo import bar # comment 3\nfrom foo2 import bar2 # comment 4\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"
content:
- import math
- import sys
- "from logging.handlers import FileHandler, StreamHandler"
- "from os import path, uname"
- ""
- "# comment 5"
- "from bar import a # comment 6"
- "from bar import b # comment 7"
- "from foo import bar # comment 3"
- "from foo2 import bar2 # comment 4"
- ""
- "# comment 1"
- "# comment 2"
- from third_party import lib1
- from third_party import lib2
- from third_party import lib3
- from third_party import lib4
- from third_party import lib5
- from third_party import lib6
- from third_party import lib7
- ""
location:
row: 1
column: 0

Some files were not shown because too many files have changed in this diff Show More