Commit 738f998
committed
Disallow newlines in format specifiers of sinlge quoted f- or t-strings
1 parent b68f0a9 commit 738f998
File tree
16 files changed
+438
-477
lines changed- crates
- ruff_python_formatter
- resources/test/fixtures
- black/cases
- ruff/expression
- src/other
- tests
- snapshots
- ruff_python_parser
- src
- snapshots
- tests/snapshots
16 files changed
+438
-477
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 285 | + | |
295 | 286 | | |
296 | 287 | | |
297 | 288 | | |
| |||
315 | 306 | | |
316 | 307 | | |
317 | 308 | | |
318 | | - | |
| 309 | + | |
319 | 310 | | |
320 | 311 | | |
321 | 312 | | |
322 | 313 | | |
323 | 314 | | |
324 | 315 | | |
325 | | - | |
| 316 | + | |
326 | 317 | | |
327 | 318 | | |
328 | 319 | | |
| |||
336 | 327 | | |
337 | 328 | | |
338 | 329 | | |
339 | | - | |
340 | | - | |
| 330 | + | |
341 | 331 | | |
342 | 332 | | |
343 | 333 | | |
| |||
491 | 481 | | |
492 | 482 | | |
493 | 483 | | |
494 | | - | |
495 | | - | |
| 484 | + | |
496 | 485 | | |
497 | 486 | | |
498 | 487 | | |
499 | | - | |
500 | | - | |
| 488 | + | |
501 | 489 | | |
502 | 490 | | |
503 | 491 | | |
| |||
Lines changed: 5 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 281 | + | |
291 | 282 | | |
292 | 283 | | |
293 | 284 | | |
| |||
310 | 301 | | |
311 | 302 | | |
312 | 303 | | |
313 | | - | |
| 304 | + | |
314 | 305 | | |
315 | 306 | | |
316 | 307 | | |
317 | 308 | | |
318 | 309 | | |
319 | 310 | | |
320 | | - | |
| 311 | + | |
321 | 312 | | |
322 | 313 | | |
323 | 314 | | |
| |||
471 | 462 | | |
472 | 463 | | |
473 | 464 | | |
474 | | - | |
475 | | - | |
| 465 | + | |
476 | 466 | | |
477 | 467 | | |
478 | 468 | | |
479 | | - | |
480 | | - | |
| 469 | + | |
481 | 470 | | |
482 | 471 | | |
483 | 472 | | |
| |||
Lines changed: 1 addition & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 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 | 217 | | |
243 | 218 | | |
244 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
Lines changed: 10 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 291 | + | |
301 | 292 | | |
302 | 293 | | |
303 | 294 | | |
| |||
321 | 312 | | |
322 | 313 | | |
323 | 314 | | |
324 | | - | |
| 315 | + | |
325 | 316 | | |
326 | 317 | | |
327 | 318 | | |
328 | 319 | | |
329 | 320 | | |
330 | 321 | | |
331 | | - | |
| 322 | + | |
332 | 323 | | |
333 | 324 | | |
334 | 325 | | |
| |||
342 | 333 | | |
343 | 334 | | |
344 | 335 | | |
345 | | - | |
346 | | - | |
| 336 | + | |
347 | 337 | | |
348 | 338 | | |
349 | 339 | | |
| |||
497 | 487 | | |
498 | 488 | | |
499 | 489 | | |
500 | | - | |
501 | | - | |
| 490 | + | |
502 | 491 | | |
503 | 492 | | |
504 | 493 | | |
505 | | - | |
506 | | - | |
| 494 | + | |
507 | 495 | | |
508 | 496 | | |
509 | 497 | | |
| |||
1079 | 1067 | | |
1080 | 1068 | | |
1081 | 1069 | | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | 1070 | | |
1090 | 1071 | | |
1091 | 1072 | | |
| |||
1110 | 1091 | | |
1111 | 1092 | | |
1112 | 1093 | | |
1113 | | - | |
| 1094 | + | |
1114 | 1095 | | |
1115 | 1096 | | |
1116 | 1097 | | |
1117 | 1098 | | |
1118 | 1099 | | |
1119 | | - | |
| 1100 | + | |
1120 | 1101 | | |
1121 | 1102 | | |
1122 | 1103 | | |
| |||
1907 | 1888 | | |
1908 | 1889 | | |
1909 | 1890 | | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | 1891 | | |
1918 | 1892 | | |
1919 | 1893 | | |
| |||
1938 | 1912 | | |
1939 | 1913 | | |
1940 | 1914 | | |
1941 | | - | |
| 1915 | + | |
1942 | 1916 | | |
1943 | 1917 | | |
1944 | 1918 | | |
1945 | 1919 | | |
1946 | 1920 | | |
1947 | | - | |
| 1921 | + | |
1948 | 1922 | | |
1949 | 1923 | | |
1950 | 1924 | | |
| |||
Lines changed: 7 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 287 | + | |
297 | 288 | | |
298 | 289 | | |
299 | 290 | | |
| |||
316 | 307 | | |
317 | 308 | | |
318 | 309 | | |
319 | | - | |
| 310 | + | |
320 | 311 | | |
321 | 312 | | |
322 | 313 | | |
323 | 314 | | |
324 | 315 | | |
325 | 316 | | |
326 | | - | |
| 317 | + | |
327 | 318 | | |
328 | 319 | | |
329 | 320 | | |
| |||
477 | 468 | | |
478 | 469 | | |
479 | 470 | | |
480 | | - | |
481 | | - | |
| 471 | + | |
482 | 472 | | |
483 | 473 | | |
484 | 474 | | |
485 | | - | |
486 | | - | |
| 475 | + | |
487 | 476 | | |
488 | 477 | | |
489 | 478 | | |
| |||
1053 | 1042 | | |
1054 | 1043 | | |
1055 | 1044 | | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | 1045 | | |
1064 | 1046 | | |
1065 | 1047 | | |
| |||
1083 | 1065 | | |
1084 | 1066 | | |
1085 | 1067 | | |
1086 | | - | |
| 1068 | + | |
1087 | 1069 | | |
1088 | 1070 | | |
1089 | 1071 | | |
1090 | 1072 | | |
1091 | 1073 | | |
1092 | | - | |
| 1074 | + | |
1093 | 1075 | | |
1094 | 1076 | | |
1095 | 1077 | | |
| |||
0 commit comments