mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Use max-line-length in converter.rs (#541)
This commit is contained in:
parent
878a94f9cb
commit
f6e14edc3e
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "flake8-to-ruff"
|
||||
version = "0.0.94-dev.0"
|
||||
version = "0.0.94-dev.1"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -22,7 +22,7 @@ pub fn convert(config: HashMap<String, HashMap<String, Option<String>>>) -> Resu
|
|||
if let Some(value) = value {
|
||||
match key.as_str() {
|
||||
// flake8
|
||||
"line-length" | "line_length" => match value.clone().parse::<usize>() {
|
||||
"max-line-length" | "max_line_length" => match value.clone().parse::<usize>() {
|
||||
Ok(line_length) => options.line_length = Some(line_length),
|
||||
Err(e) => eprintln!("Unable to parse '{key}' property: {e}"),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue