Skip to content

Commit 8118d29

Browse files
Rename ruff_cli crate to ruff (#9557)
## Summary Long ago, we had a single `ruff` crate. We started to break that up, and at some point, we wanted to separate the CLI from the core library. So we created `ruff_cli`, which created a `ruff` binary. Later, the `ruff` crate was renamed to `ruff_linter` and further broken up into additional crates. (This is all from memory -- I didn't bother to look through the history to ensure that this is 100% correct :)) Now that `ruff` no longer exists, this PR renames `ruff_cli` to `ruff`. The primary benefit is that the binary target and the crate name are now the same, which helps with downstream tooling like `cargo-dist`, and also removes some complexity from the crate and `Cargo.toml` itself. ## Test Plan - Ran `rm -rf target/release`. - Ran `cargo build --release`. - Verified that `./target/release/ruff` was created.
1 parent 45d374d commit 8118d29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+84
-87
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exclude: |
44
(?x)^(
55
crates/ruff_linter/resources/.*|
66
crates/ruff_linter/src/rules/.*/snapshots/.*|
7-
crates/ruff_cli/resources/.*|
7+
crates/ruff/resources/.*|
88
crates/ruff_python_formatter/resources/.*|
99
crates/ruff_python_formatter/tests/snapshots/.*|
1010
crates/ruff_python_resolver/resources/.*|

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions

Cargo.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ruff_cli/Cargo.toml renamed to crates/ruff/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ruff_cli"
2+
name = "ruff"
33
version = "0.1.13"
44
publish = false
55
authors = { workspace = true }
@@ -11,9 +11,6 @@ repository = { workspace = true }
1111
license = { workspace = true }
1212
readme = "../../README.md"
1313

14-
[[bin]]
15-
name = "ruff"
16-
1714
[dependencies]
1815
ruff_cache = { path = "../ruff_cache" }
1916
ruff_diagnostics = { path = "../ruff_diagnostics" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)