ruff/crates/ruff_python_formatter/src
konsti 787e2fd49d
Format import statements (#5493)
## Summary

Format import statements in all their variants. Specifically, this
implemented formatting `StmtImport`, `StmtImportFrom` and `Alias`.

## Test Plan

I added some custom snapshots, even though this has been covered well by
black's tests.
2023-07-04 07:07:20 +00:00
..
comments Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00
expression Change generator formatting dummy to include NOT_YET_IMPLEMENTED (#5464) 2023-07-03 09:11:14 +02:00
module Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
other Format import statements (#5493) 2023-07-04 07:07:20 +00:00
pattern Use dedicated structs in comparable.rs (#5042) 2023-06-13 03:57:34 +00:00
snapshots Use insta::glob instead of fixture macro (#5364) 2023-06-26 08:46:18 +00:00
statement Format import statements (#5493) 2023-07-04 07:07:20 +00:00
builders.rs Don't add a magic trailing comma for a single entry (#5463) 2023-07-03 21:48:44 +02:00
cli.rs Create PyFormatOptions 2023-06-26 14:02:17 +02:00
context.rs Create PyFormatOptions 2023-06-26 14:02:17 +02:00
generated.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
lib.rs Create PyFormatOptions 2023-06-26 14:02:17 +02:00
main.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
options.rs Prefer the configured quote style 2023-06-26 14:24:25 +02:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00
trivia.rs Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00