ruff/crates/ruff_python_formatter/src
Charlie Marsh 7842c82a0a
Preserve end-of-line comments on import-from statements (#6216)
## Summary

Ensures that we keep comments at the end-of-line in cases like:

```python
from foo import (  # comment
  bar,
)
```

Closes https://github.com/astral-sh/ruff/issues/6067.
2023-08-01 18:58:05 +00:00
..
comments Preserve end-of-line comments on import-from statements (#6216) 2023-08-01 18:58:05 +00:00
expression Rename Arguments to Parameters in the AST (#6253) 2023-08-01 13:53:28 -04:00
module Add empty lines before nested functions and classes (#6206) 2023-08-01 15:30:59 +00:00
other Rename Parameter#arg and ParameterWithDefault#def fields (#6255) 2023-08-01 14:28:34 -04:00
pattern Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
snapshots Remove exception-handler lexing from unused-bound-exception fix (#5851) 2023-07-18 18:27:46 +00:00
statement Preserve end-of-line comments on import-from statements (#6216) 2023-08-01 18:58:05 +00:00
builders.rs formatter: WithNodeLevel helper (#6212) 2023-07-31 21:22:17 +00:00
cli.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
context.rs formatter: WithNodeLevel helper (#6212) 2023-07-31 21:22:17 +00:00
generated.rs Rename Arguments to Parameters in the AST (#6253) 2023-08-01 13:53:28 -04:00
lib.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00: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