diff --git a/ruff.schema.json b/ruff.schema.json index eb6d572002..7704aecbef 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -933,6 +933,7 @@ "SIM102", "SIM105", "SIM11", + "SIM117", "SIM118", "SIM2", "SIM22", diff --git a/src/registry.rs b/src/registry.rs index 62c8cfa762..65d32e0021 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -2951,8 +2951,9 @@ impl CheckKind { CheckKind::KeyInDict(key, dict) => { format!("Use `{key} in {dict}` instead of `{key} in {dict}.keys()`") } - CheckKind::MultipleWithStatements => "Use a single `with` statement with multiple contexts instead of nested `with` \ - statements".to_string(), + CheckKind::MultipleWithStatements => "Use a single `with` statement with multiple \ + contexts instead of nested `with` statements" + .to_string(), CheckKind::NestedIfStatements => { "Use a single `if` statement instead of nested `if` statements".to_string() }