Skip to content

Commit 4ccbacd

Browse files
authored
Error if the NURSERY selector is used with preview (#9682)
Changes our warning for combined use of `--preview` and `--select NURSERY` to a hard error. This should go out _before_ #9680 where we will ban use of `NURSERY` outside of preview as well (see #9683). Part of #7992
1 parent 05a2f52 commit 4ccbacd

File tree

2 files changed

+89
-69
lines changed

2 files changed

+89
-69
lines changed

crates/ruff/tests/integration_test.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -878,15 +878,12 @@ fn nursery_group_selector_preview_enabled() {
878878
assert_cmd_snapshot!(cmd
879879
.pass_stdin("I=42\n"), @r###"
880880
success: false
881-
exit_code: 1
881+
exit_code: 2
882882
----- stdout -----
883-
-:1:1: CPY001 Missing copyright notice at top of file
884-
-:1:2: E225 [*] Missing whitespace around operator
885-
Found 2 errors.
886-
[*] 1 fixable with the `--fix` option.
887883
888884
----- stderr -----
889-
warning: The `NURSERY` selector has been deprecated.
885+
ruff failed
886+
Cause: The `NURSERY` selector is deprecated and cannot be used with preview mode enabled.
890887
"###);
891888
}
892889

0 commit comments

Comments
 (0)