diff --git a/crates/ruff/src/rule_selector.rs b/crates/ruff/src/rule_selector.rs index fc3e3611af..667f6b430a 100644 --- a/crates/ruff/src/rule_selector.rs +++ b/crates/ruff/src/rule_selector.rs @@ -254,8 +254,9 @@ mod schema { instance_type: Some(InstanceType::String.into()), enum_values: Some( [ - // Include the non-standard "ALL" selector. + // Include the non-standard "ALL" and "NURSERY" selectors. "ALL".to_string(), + "NURSERY".to_string(), // Include the legacy "C" and "T" selectors. "C".to_string(), "T".to_string(), diff --git a/ruff.schema.json b/ruff.schema.json index 4402f3c797..9223d40546 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -2161,6 +2161,7 @@ "NPY001", "NPY002", "NPY003", + "NURSERY", "PD", "PD0", "PD00",