konsti
99baad12d8
Call chain formatting in fluent style ( #6151 )
...
Implement fluent style/call chains. See the `call_chains.py` formatting
for examples.
This isn't fully like black because in `raise A from B` they allow `A`
breaking can influence the formatting of `B` even if it is already
multiline.
Similarity index:
| project | main | PR |
|--------------|-------|-------|
| build | ??? | 0.753 |
| django | 0.991 | 0.998 |
| transformers | 0.993 | 0.994 |
| typeshed | 0.723 | 0.723 |
| warehouse | 0.978 | 0.994 |
| zulip | 0.992 | 0.994 |
Call chain formatting is affected by
https://github.com/astral-sh/ruff/issues/627 , but i'm cutting scope
here.
Closes #5343
**Test Plan**:
* Added a dedicated call chains test file
* The ecosystem checks found some bugs
* I manually check django and zulip formatting
---------
Co-authored-by: Micha Reiser <micha@reiser.io >
2023-08-04 13:58:01 +00:00
..
2023-07-19 13:01:58 +02:00
2023-06-30 06:32:50 +00:00
2023-08-01 08:26:30 +02:00
2023-07-11 06:08:08 +00:00
2023-06-30 06:32:50 +00:00
2023-08-01 08:26:30 +02:00
2023-07-11 16:40:28 +02:00
2023-08-01 08:26:30 +02:00
2023-06-30 06:32:50 +00:00
2023-08-01 08:26:30 +02:00
2023-07-19 11:47:56 +00:00
2023-07-15 15:50:47 +01:00
2023-07-29 10:06:26 -04:00
2023-06-30 06:32:50 +00:00
2023-07-11 16:40:28 +02:00
2023-08-01 08:26:30 +02:00
2023-06-30 06:32:50 +00:00
2023-07-03 21:48:44 +02:00
2023-07-19 13:01:58 +02:00
2023-06-30 06:32:50 +00:00
2023-07-24 07:04:40 +00:00
2023-06-30 06:32:50 +00:00
2023-07-31 10:46:40 +02:00
2023-07-11 06:08:08 +00:00
2023-07-31 16:58:15 -04:00
2023-07-04 07:07:20 +00:00
2023-08-03 20:45:03 +00:00
2023-08-03 20:45:03 +00:00
2023-08-01 08:26:30 +02:00
2023-06-30 06:32:50 +00:00
2023-08-01 08:26:30 +02:00
2023-08-04 13:58:01 +00:00
2023-07-14 09:01:33 +02:00
2023-06-30 06:32:50 +00:00
2023-07-03 21:48:44 +02:00
2023-07-13 08:57:29 +02:00
2023-08-04 13:58:01 +00:00
2023-06-30 06:32:50 +00:00
2023-06-30 06:32:50 +00:00
2023-07-11 16:51:24 +02:00
2023-06-30 06:32:50 +00:00
2023-07-26 16:21:23 +00:00
2023-06-30 06:32:50 +00:00
2023-08-01 15:30:59 +00:00
2023-08-04 13:58:01 +00:00
2023-07-26 16:21:23 +00:00
2023-07-04 07:07:20 +00:00
2023-07-19 17:28:07 +02:00
2023-07-21 12:07:51 +00:00
2023-07-10 21:23:49 +02:00
2023-07-19 11:47:56 +00:00
2023-08-01 08:26:30 +02:00
2023-07-11 16:40:28 +02:00
2023-07-14 09:01:33 +02:00
2023-07-11 14:07:39 +02:00
2023-07-14 09:01:33 +02:00
2023-07-31 10:46:40 +02:00
2023-06-30 06:32:50 +00:00
2023-08-04 13:58:01 +00:00
2023-06-30 10:13:23 +02:00
2023-07-11 16:40:28 +02:00
2023-08-04 13:58:01 +00:00
2023-07-24 18:30:42 +02:00
2023-07-20 10:07:22 +00:00
2023-06-27 09:29:40 +00:00
2023-07-31 10:46:40 +02:00
2023-08-04 13:58:01 +00:00
2023-07-14 17:54:58 +02:00
2023-08-04 01:28:05 +00:00
2023-08-04 01:28:05 +00:00
2023-08-04 01:28:05 +00:00
2023-07-10 15:55:19 +02:00
2023-08-01 08:26:30 +02:00
2023-08-02 19:31:20 +00:00
2023-07-24 14:44:36 +00:00
2023-08-04 01:28:05 +00:00
2023-07-29 10:06:26 -04:00
2023-07-20 10:07:22 +00:00
2023-07-20 15:05:18 +00:00
2023-07-25 11:49:05 +02:00
2023-07-31 19:25:16 +02:00
2023-08-04 01:28:05 +00:00
2023-07-11 14:07:39 +02:00
2023-07-21 12:07:51 +00:00
2023-07-21 12:07:51 +00:00
2023-07-27 10:22:13 -04:00
2023-07-13 10:51:25 +00:00
2023-07-14 09:01:33 +02:00
2023-07-13 16:00:49 +02:00
2023-07-13 10:51:25 +00:00
2023-06-26 14:15:55 +02:00
2023-08-02 20:29:28 +00:00
2023-08-02 11:54:22 -04:00
2023-07-13 08:57:29 +02:00
2023-08-02 20:29:28 +00:00
2023-08-02 19:55:00 +00:00
2023-08-01 15:30:59 +00:00
2023-08-01 18:58:05 +00:00
2023-07-04 07:07:20 +00:00
2023-08-02 19:55:00 +00:00
2023-08-04 01:28:05 +00:00
2023-08-03 20:45:03 +00:00
2023-08-02 20:40:32 +00:00
2023-07-13 08:57:29 +02:00
2023-07-24 18:12:07 +00:00
2023-06-26 14:15:55 +02:00