ruff/crates/ruff_python_formatter/src
Charlie Marsh 4d6f5ff0a7
Remove Int wrapper type from parser (#7577)
## Summary

This is only used for the `level` field in relative imports (e.g., `from
..foo import bar`). It seems unnecessary to use a wrapper here, so this
PR changes to a `u32` directly.
2023-09-21 17:01:44 +00:00
..
comments Allow up to two newlines before trailing clause body comments (#7575) 2023-09-21 14:52:38 +00:00
expression Allow parenthesized content exceed configured line width (#7490) 2023-09-20 08:39:25 +02:00
module Fix handling of newlines in empty files (#7473) 2023-09-18 06:08:10 +00:00
other Avoiding grouping comprehension targets separately from conditions (#7429) 2023-09-16 17:19:34 +00:00
pattern Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
snapshots Remove exception-handler lexing from unused-bound-exception fix (#5851) 2023-07-18 18:27:46 +00:00
statement Remove Int wrapper type from parser (#7577) 2023-09-21 17:01:44 +00:00
type_param Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
builders.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
cli.rs Show header for formatter comment decoration info (#7228) 2023-09-08 09:25:06 +00:00
context.rs Implement DerefMut for WithNodeLevel (#6443) 2023-08-11 10:41:48 +00:00
generated.rs Introduce AST nodes for PatternMatchClass arguments (#6881) 2023-08-26 14:45:44 +00:00
lib.rs Introduce FormatterSettings (#7545) 2023-09-21 08:01:24 +02:00
main.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
options.rs Introduce FormatterSettings (#7545) 2023-09-21 08:01:24 +02:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00
settings.rs Introduce FormatterSettings (#7545) 2023-09-21 08:01:24 +02:00
verbatim.rs Memoize text width (#6552) 2023-09-06 07:10:13 +00:00