Commit d00b986
committed
Disallow newlines in format specifiers of sinlge quoted f- or t-strings
1 parent dd12dd9 commit d00b986
File tree
16 files changed
+438
-426
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
-426
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 & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
| 285 | + | |
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
| |||
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
311 | | - | |
| 309 | + | |
312 | 310 | | |
313 | 311 | | |
314 | 312 | | |
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
318 | | - | |
| 316 | + | |
319 | 317 | | |
320 | 318 | | |
321 | 319 | | |
| |||
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
332 | | - | |
333 | | - | |
| 330 | + | |
334 | 331 | | |
335 | 332 | | |
336 | 333 | | |
| |||
484 | 481 | | |
485 | 482 | | |
486 | 483 | | |
487 | | - | |
488 | | - | |
| 484 | + | |
489 | 485 | | |
490 | 486 | | |
491 | 487 | | |
492 | | - | |
493 | | - | |
| 488 | + | |
494 | 489 | | |
495 | 490 | | |
496 | 491 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 281 | + | |
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
| |||
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
469 | | - | |
470 | | - | |
| 467 | + | |
471 | 468 | | |
472 | 469 | | |
473 | 470 | | |
474 | | - | |
475 | | - | |
| 471 | + | |
476 | 472 | | |
477 | 473 | | |
478 | 474 | | |
| |||
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: 16 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
| 291 | + | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| |||
314 | 312 | | |
315 | 313 | | |
316 | 314 | | |
317 | | - | |
| 315 | + | |
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | | - | |
| 322 | + | |
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
| |||
335 | 333 | | |
336 | 334 | | |
337 | 335 | | |
338 | | - | |
339 | | - | |
| 336 | + | |
340 | 337 | | |
341 | 338 | | |
342 | 339 | | |
| |||
490 | 487 | | |
491 | 488 | | |
492 | 489 | | |
493 | | - | |
494 | | - | |
| 490 | + | |
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
498 | | - | |
499 | | - | |
| 494 | + | |
500 | 495 | | |
501 | 496 | | |
502 | 497 | | |
| |||
1096 | 1091 | | |
1097 | 1092 | | |
1098 | 1093 | | |
1099 | | - | |
| 1094 | + | |
1100 | 1095 | | |
1101 | 1096 | | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1105 | 1101 | | |
1106 | 1102 | | |
1107 | 1103 | | |
| |||
1916 | 1912 | | |
1917 | 1913 | | |
1918 | 1914 | | |
1919 | | - | |
| 1915 | + | |
1920 | 1916 | | |
1921 | 1917 | | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1925 | 1922 | | |
1926 | 1923 | | |
1927 | 1924 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
472 | 470 | | |
473 | 471 | | |
474 | 472 | | |
475 | | - | |
476 | | - | |
| 473 | + | |
477 | 474 | | |
478 | 475 | | |
479 | 476 | | |
480 | | - | |
481 | | - | |
| 477 | + | |
482 | 478 | | |
483 | 479 | | |
484 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 70 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
| |||
402 | 398 | | |
403 | 399 | | |
404 | 400 | | |
| 401 | + | |
| 402 | + | |
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
| |||
423 | 421 | | |
424 | 422 | | |
425 | 423 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | | - | |
433 | | - | |
| 430 | + | |
| 431 | + | |
434 | 432 | | |
435 | 433 | | |
436 | | - | |
| 434 | + | |
437 | 435 | | |
438 | 436 | | |
439 | | - | |
| 437 | + | |
440 | 438 | | |
441 | 439 | | |
442 | | - | |
443 | | - | |
444 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
445 | 443 | | |
446 | 444 | | |
447 | | - | |
| 445 | + | |
448 | 446 | | |
449 | 447 | | |
450 | | - | |
| 448 | + | |
451 | 449 | | |
452 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
453 | 457 | | |
454 | 458 | | |
455 | 459 | | |
| |||
0 commit comments