Skip to content

Commit

Permalink
0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 4, 2024
1 parent f63a470 commit 1e4e0e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dprint-plugin-ruff"
version = "0.0.5"
version = "0.0.6"
authors = ["David Sherret <[email protected]>"]
edition = "2021"
homepage = "https://github.com/dprint/dprint-plugin-ruff"
Expand All @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.74.0"
channel = "1.75.0"
components = ["clippy", "rustfmt"]
5 changes: 1 addition & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"#);
}

0 comments on commit 1e4e0e3

Please sign in to comment.