From 70ab4b8b59c0754383f3975a4305e5d61193be82 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 27 Sep 2023 09:46:57 -0500 Subject: [PATCH] Add nursery documentation note to preview section (#7671) Ref https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730016523 --------- Co-authored-by: Micha Reiser --- docs/preview.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/preview.md b/docs/preview.md index b1abd25a1a56b..58b892ba10986 100644 --- a/docs/preview.md +++ b/docs/preview.md @@ -46,3 +46,12 @@ preview = true Or, if you provided the `--preview` CLI flag. To see which rules are currently in preview, visit the [rules reference](rules.md). + +## Legacy behavior + +Before the preview mode was introduced, new rules were added in a "nursery" category that required selection of +rules with their exact code. + +The nursery category has been deprecated and all rules in the nursery are now considered to be in preview. For backwards +compatibility, nursery rules are selectable with their exact codes without enabling preview mode but a warning will +be displayed.