Support allow_star_arg_any in flake8-to-ruff

This commit is contained in:
Charlie Marsh 2022-11-08 09:51:11 -05:00
parent 24aa177912
commit 1eb5f3ea75
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ pub fn convert(
Err(e) => eprintln!("Unable to parse '{key}' property: {e}"),
}
}
"allow-star-arg-any" | "allow_star_arg_any" => {
match parser::parse_bool(value.as_ref()) {
Ok(bool) => flake8_annotations.allow_star_arg_any = Some(bool),
Err(e) => eprintln!("Unable to parse '{key}' property: {e}"),
}
}
// flake8-quotes
"quotes" | "inline-quotes" | "inline_quotes" => match value.trim() {
"'" | "single" => flake8_quotes.inline_quotes = Some(Quote::Single),