konsti
61195bc7b1
Don't format trailing comma for lambda arguments (#5946)
**Summary** lambda arguments don't have parentheses, so they shouldn't
get a magic trailing comma either. This fixes some unstable formatting
**Test Plan** Added a regression test.
89 (from previously 145) instances of unstable formatting remaining.
```
$ cargo run --bin ruff_dev --release -- format-dev --stability-check --error-file formatter-ecosystem-errors.txt --multi-project target/checkouts > formatter-ecosystem-progress.txt
$ rg "Unstable formatting" target/formatter-ecosystem-errors.txt | wc -l
89
```
Closes #5892
2023-07-27 12:32:10 +02:00
..
2023-07-21 22:36:13 -04:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-06-19 17:46:13 +02:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-04 14:27:23 +00:00
2023-07-26 17:47:22 +02:00
2023-07-27 11:46:18 +02:00
2023-07-27 09:29:11 +00:00
2023-07-27 12:32:10 +02:00
2023-07-27 09:29:11 +00:00
2023-07-27 11:46:18 +02:00
2023-07-27 11:46:18 +02:00
2023-07-08 14:54:49 +00:00
2023-07-27 09:29:11 +00:00
2023-07-24 05:14:48 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 09:29:11 +00:00
2023-07-27 11:46:18 +02:00
2023-07-27 09:29:11 +00:00