mirror of https://github.com/astral-sh/ruff
Use max-line-length in converter.rs (#541)
This commit is contained in:
parent
878a94f9cb
commit
f6e14edc3e
|
|
@ -920,7 +920,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
|||
|
||||
[[package]]
|
||||
name = "flake8-to-ruff"
|
||||
version = "0.0.94-dev.0"
|
||||
version = "0.0.94-dev.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap 4.0.15",
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue