mirror of https://github.com/astral-sh/ruff
Run generation steps
This commit is contained in:
parent
6a1edeb694
commit
ef7777703b
|
|
@ -933,6 +933,7 @@
|
||||||
"SIM102",
|
"SIM102",
|
||||||
"SIM105",
|
"SIM105",
|
||||||
"SIM11",
|
"SIM11",
|
||||||
|
"SIM117",
|
||||||
"SIM118",
|
"SIM118",
|
||||||
"SIM2",
|
"SIM2",
|
||||||
"SIM22",
|
"SIM22",
|
||||||
|
|
|
||||||
|
|
@ -2951,8 +2951,9 @@ impl CheckKind {
|
||||||
CheckKind::KeyInDict(key, dict) => {
|
CheckKind::KeyInDict(key, dict) => {
|
||||||
format!("Use `{key} in {dict}` instead of `{key} in {dict}.keys()`")
|
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` \
|
CheckKind::MultipleWithStatements => "Use a single `with` statement with multiple \
|
||||||
statements".to_string(),
|
contexts instead of nested `with` statements"
|
||||||
|
.to_string(),
|
||||||
CheckKind::NestedIfStatements => {
|
CheckKind::NestedIfStatements => {
|
||||||
"Use a single `if` statement instead of nested `if` statements".to_string()
|
"Use a single `if` statement instead of nested `if` statements".to_string()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue