Skip to content

Commit 943d4fc

Browse files
committed
Update formatter preview documentation (#15349)
1 parent 3ea4c63 commit 943d4fc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/formatter.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,8 @@ For a complete enumeration of these intentional deviations, see [_Known deviatio
400400
Unintentional deviations from Black are tracked in the [issue tracker](https://github.com/astral-sh/ruff/issues?q=is%3Aopen+is%3Aissue+label%3Aformatter).
401401

402402
### Preview style
403-
404-
Black gates formatting changes behind a [`preview`](https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#preview-style)
405-
flag. The formatter does not yet support Black's preview style, though the intention is to support
406-
it within the coming months behind Ruff's own [`preview`](https://docs.astral.sh/ruff/settings/#preview)
407-
flag.
408-
409-
Black promotes some of its preview styling to stable at the end of each year. Ruff will similarly
410-
implement formatting changes under the [`preview`](https://docs.astral.sh/ruff/settings/#preview)
411-
flag, promoting them to stable through minor releases, in accordance with our [versioning policy](https://github.com/astral-sh/ruff/discussions/6998#discussioncomment-7016766).
403+
Similar to [Black](https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#preview-style), Ruff implements formatting changes
404+
under the [`preview`](https://docs.astral.sh/ruff/settings/#format_preview) flag, promoting them to stable through minor releases, in accordance with our [versioning policy](https://github.com/astral-sh/ruff/discussions/6998#discussioncomment-7016766).
412405

413406
## Sorting imports
414407

0 commit comments

Comments
 (0)