ruff/crates/ruff_linter
Charlie Marsh 8c146bbf11
Allow collapsed-ellipsis bodies in other statements (#8499)
## Summary

Black and Ruff's preview styles now collapse statements like:

```python
from contextlib import nullcontext

ctx = nullcontext()
with ctx: ...
```

Historically, we made an exception here for classes
(https://github.com/astral-sh/ruff/pull/2837). This PR extends it to
other statement kinds for consistency with the formatter.

Closes https://github.com/astral-sh/ruff/issues/8496.
2023-11-05 19:42:34 -05:00
..
resources/test Allow collapsed-ellipsis bodies in other statements (#8499) 2023-11-05 19:42:34 -05:00
src Allow collapsed-ellipsis bodies in other statements (#8499) 2023-11-05 19:42:34 -05:00
Cargo.toml Bump version to v0.1.4 (#8477) 2023-11-03 14:52:56 -04:00