diff --git a/Cargo.toml b/Cargo.toml index 6e8457c..f8974e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dprint-plugin-ruff" -version = "0.0.5" +version = "0.0.6" authors = ["David Sherret "] edition = "2021" homepage = "https://github.com/dprint/dprint-plugin-ruff" @@ -26,9 +26,9 @@ wasm = ["serde_json", "dprint-core/wasm"] [dependencies] anyhow = "1.0.51" dprint-core = { version = "0.63.3", default-features = false } -ruff_formatter = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.9" } -ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.9" } -ruff_python_formatter = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.9" } +ruff_formatter = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.11" } +ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.11" } +ruff_python_formatter = { git = "https://github.com/astral-sh/ruff", tag = "v0.1.11" } serde = { version = "1.0.108", features = ["derive"] } serde_json = { version = "1.0", optional = true } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7737e53..f743517 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.74.0" +channel = "1.75.0" components = ["clippy", "rustfmt"] diff --git a/tests/test.rs b/tests/test.rs index c5833ca..553c68c 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -41,8 +41,5 @@ fn test_specs() { fn should_fail_on_parse_error_js() { let config = Configuration::default(); let err = format_text(&PathBuf::from("./file.py"), "$*&(#*$&#", &config).unwrap_err(); - assert_eq!( - err.to_string(), - r#"source contains syntax errors: LexicalError { error: UnrecognizedToken { tok: '$' }, location: 0 }"# - ); + assert_eq!(err.to_string(), r#"Got unexpected token $ at byte offset 0"#); }