-
Notifications
You must be signed in to change notification settings - Fork 901
/
ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap
262 lines (237 loc) · 5.72 KB
/
ruff_linter__rules__pycodestyle__tests__E203_E20.py.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
E20.py:51:10: E203 [*] Whitespace before ':'
|
50 | #: E203:1:10
51 | if x == 4 :
| ^ E203
52 | print x, y
53 | x, y = y, x
|
= help: Remove whitespace before ':'
ℹ Safe fix
48 48 |
49 49 |
50 50 | #: E203:1:10
51 |-if x == 4 :
51 |+if x == 4:
52 52 | print x, y
53 53 | x, y = y, x
54 54 | #: E203:1:10
E20.py:55:10: E203 [*] Whitespace before ':'
|
53 | x, y = y, x
54 | #: E203:1:10
55 | if x == 4 :
| ^^^ E203
56 | print x, y
57 | x, y = y, x
|
= help: Remove whitespace before ':'
ℹ Safe fix
52 52 | print x, y
53 53 | x, y = y, x
54 54 | #: E203:1:10
55 |-if x == 4 :
55 |+if x == 4:
56 56 | print x, y
57 57 | x, y = y, x
58 58 | #: E203:2:15 E702:2:16
E20.py:60:15: E203 [*] Whitespace before ';'
|
58 | #: E203:2:15 E702:2:16
59 | if x == 4:
60 | print x, y ; x, y = y, x
| ^ E203
61 | #: E203:2:15 E702:2:16
62 | if x == 4:
|
= help: Remove whitespace before ';'
ℹ Safe fix
57 57 | x, y = y, x
58 58 | #: E203:2:15 E702:2:16
59 59 | if x == 4:
60 |- print x, y ; x, y = y, x
60 |+ print x, y; x, y = y, x
61 61 | #: E203:2:15 E702:2:16
62 62 | if x == 4:
63 63 | print x, y ; x, y = y, x
E20.py:63:15: E203 [*] Whitespace before ';'
|
61 | #: E203:2:15 E702:2:16
62 | if x == 4:
63 | print x, y ; x, y = y, x
| ^^ E203
64 | #: E203:3:13
65 | if x == 4:
|
= help: Remove whitespace before ';'
ℹ Safe fix
60 60 | print x, y ; x, y = y, x
61 61 | #: E203:2:15 E702:2:16
62 62 | if x == 4:
63 |- print x, y ; x, y = y, x
63 |+ print x, y; x, y = y, x
64 64 | #: E203:3:13
65 65 | if x == 4:
66 66 | print x, y
E20.py:67:13: E203 [*] Whitespace before ','
|
65 | if x == 4:
66 | print x, y
67 | x, y = y , x
| ^ E203
68 | #: E203:3:13
69 | if x == 4:
|
= help: Remove whitespace before ','
ℹ Safe fix
64 64 | #: E203:3:13
65 65 | if x == 4:
66 66 | print x, y
67 |- x, y = y , x
67 |+ x, y = y, x
68 68 | #: E203:3:13
69 69 | if x == 4:
70 70 | print x, y
E20.py:71:13: E203 [*] Whitespace before ','
|
69 | if x == 4:
70 | print x, y
71 | x, y = y , x
| ^^^^ E203
72 | #: Okay
73 | if x == 4:
|
= help: Remove whitespace before ','
ℹ Safe fix
68 68 | #: E203:3:13
69 69 | if x == 4:
70 70 | print x, y
71 |- x, y = y , x
71 |+ x, y = y, x
72 72 | #: Okay
73 73 | if x == 4:
74 74 | print x, y
E20.py:100:19: E203 [*] Whitespace before ':'
|
99 | #: E203:1:19
100 | ham{lower + offset : upper + offset}
| ^ E203
101 |
102 | #: E203:1:19
|
= help: Remove whitespace before ':'
ℹ Safe fix
97 97 | ham[(lower + offset) : upper + offset]
98 98 |
99 99 | #: E203:1:19
100 |-ham{lower + offset : upper + offset}
100 |+ham{lower + offset: upper + offset}
101 101 |
102 102 | #: E203:1:19
103 103 | ham[lower + offset : upper + offset]
E20.py:103:19: E203 [*] Whitespace before ':'
|
102 | #: E203:1:19
103 | ham[lower + offset : upper + offset]
| ^^ E203
104 |
105 | #: Okay
|
= help: Remove whitespace before ':'
ℹ Safe fix
100 100 | ham{lower + offset : upper + offset}
101 101 |
102 102 | #: E203:1:19
103 |-ham[lower + offset : upper + offset]
103 |+ham[lower + offset: upper + offset]
104 104 |
105 105 | #: Okay
106 106 | release_lines = history_file_lines[history_file_lines.index('## Unreleased') + 1: -1]
E20.py:131:21: E203 [*] Whitespace before ':'
|
130 | #: E203:1:21
131 | ham[lower + offset : : upper + offset]
| ^ E203
132 |
133 | #: E203:1:20
|
= help: Remove whitespace before ':'
ℹ Safe fix
128 128 | ham[lower + offset::upper + offset]
129 129 |
130 130 | #: E203:1:21
131 |-ham[lower + offset : : upper + offset]
131 |+ham[lower + offset :: upper + offset]
132 132 |
133 133 | #: E203:1:20
134 134 | ham[lower + offset: :upper + offset]
E20.py:134:20: E203 [*] Whitespace before ':'
|
133 | #: E203:1:20
134 | ham[lower + offset: :upper + offset]
| ^ E203
135 |
136 | #: E203:1:20
|
= help: Remove whitespace before ':'
ℹ Safe fix
131 131 | ham[lower + offset : : upper + offset]
132 132 |
133 133 | #: E203:1:20
134 |-ham[lower + offset: :upper + offset]
134 |+ham[lower + offset::upper + offset]
135 135 |
136 136 | #: E203:1:20
137 137 | ham[{lower + offset : upper + offset} : upper + offset]
E20.py:137:20: E203 [*] Whitespace before ':'
|
136 | #: E203:1:20
137 | ham[{lower + offset : upper + offset} : upper + offset]
| ^ E203
138 |
139 | #: Okay
|
= help: Remove whitespace before ':'
ℹ Safe fix
134 134 | ham[lower + offset: :upper + offset]
135 135 |
136 136 | #: E203:1:20
137 |-ham[{lower + offset : upper + offset} : upper + offset]
137 |+ham[{lower + offset: upper + offset} : upper + offset]
138 138 |
139 139 | #: Okay
140 140 | ham[upper:]
E20.py:149:10: E203 [*] Whitespace before ':'
|
148 | #: E203:1:10
149 | ham[upper :]
| ^^ E203
150 |
151 | #: Okay
|
= help: Remove whitespace before ':'
ℹ Safe fix
146 146 | ham[upper : ]
147 147 |
148 148 | #: E203:1:10
149 |-ham[upper :]
149 |+ham[upper:]
150 150 |
151 151 | #: Okay
152 152 | ham[lower +1 :, "columnname"]
E20.py:155:14: E203 [*] Whitespace before ':'
|
154 | #: E203:1:13
155 | ham[lower + 1 :, "columnname"]
| ^^ E203
|
= help: Remove whitespace before ':'
ℹ Safe fix
152 152 | ham[lower +1 :, "columnname"]
153 153 |
154 154 | #: E203:1:13
155 |-ham[lower + 1 :, "columnname"]
155 |+ham[lower + 1:, "columnname"]