Skip to content

Commit

Permalink
chore: Update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed May 6, 2024
1 parent 8944468 commit 7f44e8d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 38 deletions.
43 changes: 10 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ resolver = "2"
anyhow = "1"
dprint-core = "0.66.1"
ruff_fmt_config = { path = "crates/ruff_fmt_config" }
ruff_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.3.4" }
ruff_python_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.3.4" }
ruff_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.4.3" }
ruff_python_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.4.3" }
serde = { version = "1.0" }
serde-wasm-bindgen = "0.6"
serde_json = { version = "1.0.116" }
Expand Down
1 change: 0 additions & 1 deletion crates/ruff_fmt/test_data/ruff/expression/named_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def f():
async for x in (y := [1, 2, 3]):
pass

del (x := 1)

try:
pass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ for x in (y := [1, 2, 3]):
async for x in (y := [1, 2, 3]):
pass

del (x := 1)

try:
pass
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_fmt_dprint/src/format_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ mod tests {
.err()
.unwrap()
.to_string();
assert!(message.contains("invalid syntax"));
assert!(message.contains("Expected 'in'"));
}
}

0 comments on commit 7f44e8d

Please sign in to comment.