Get cargo shear passing (#11392)

## Summary

Remove some unused dependencies, add a few ignores.
This commit is contained in:
Charlie Marsh 2024-05-12 21:56:24 -04:00 committed by GitHub
parent 5ab4cc86c2
commit 6cec82fff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 20 additions and 19 deletions

5
Cargo.lock generated
View file

@ -1821,7 +1821,6 @@ dependencies = [
"dashmap",
"hashbrown 0.14.5",
"indexmap",
"log",
"notify",
"parking_lot",
"rayon",
@ -1829,10 +1828,8 @@ dependencies = [
"ruff_notebook",
"ruff_python_ast",
"ruff_python_parser",
"ruff_python_trivia",
"ruff_text_size",
"rustc-hash",
"smallvec",
"smol_str",
"tempfile",
"textwrap",
@ -2200,7 +2197,6 @@ version = "0.0.0"
dependencies = [
"aho-corasick",
"bitflags 2.5.0",
"insta",
"is-macro",
"itertools 0.12.1",
"once_cell",
@ -2348,7 +2344,6 @@ dependencies = [
name = "ruff_python_trivia"
version = "0.0.0"
dependencies = [
"insta",
"itertools 0.12.1",
"ruff_source_file",
"ruff_text_size",

View file

@ -37,7 +37,6 @@ drop_bomb = { version = "0.1.5" }
env_logger = { version = "0.11.0" }
fern = { version = "0.6.1" }
filetime = { version = "0.2.23" }
fs-err = { version = "2.11.0" }
glob = { version = "0.3.1" }
globset = { version = "0.4.14" }
hashbrown = "0.14.3"

View file

@ -14,31 +14,28 @@ license.workspace = true
[dependencies]
ruff_python_parser = { path = "../ruff_python_parser" }
ruff_python_ast = { path = "../ruff_python_ast" }
ruff_python_trivia = { path = "../ruff_python_trivia" }
ruff_text_size = { path = "../ruff_text_size" }
ruff_index = { path = "../ruff_index" }
ruff_notebook = { path = "../ruff_notebook" }
anyhow = { workspace = true }
bitflags = { workspace = true }
ctrlc = "3.4.4"
crossbeam = { workspace = true }
ctrlc = { version = "3.4.4" }
dashmap = { workspace = true }
hashbrown = { workspace = true }
indexmap = { workspace = true }
log = { workspace = true }
notify = { workspace = true }
parking_lot = { workspace = true }
rayon = { workspace = true }
rustc-hash = { workspace = true }
smallvec = { workspace = true }
smol_str = "0.2.1"
smol_str = { version = "0.2.1" }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
tracing-tree = { workspace = true }
[dev-dependencies]
textwrap = "0.16.1"
textwrap = { version = "0.16.1" }
tempfile = { workspace = true }
[lints]

View file

@ -68,6 +68,10 @@ insta-cmd = { workspace = true }
tempfile = { workspace = true }
test-case = { workspace = true }
[package.metadata.cargo-shear]
# Used via macro expansion.
ignored = ["chrono"]
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = { workspace = true }

View file

@ -25,6 +25,10 @@ unicode-width = { workspace = true }
[dev-dependencies]
[package.metadata.cargo-shear]
# Used via `CacheKey` macro expansion.
ignored = ["ruff_cache"]
[features]
serde = ["dep:serde", "ruff_text_size/serde"]
schemars = ["dep:schemars", "ruff_text_size/schemars"]

View file

@ -25,9 +25,6 @@ once_cell = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true, optional = true }
[dev-dependencies]
insta = { workspace = true }
[features]
serde = ["dep:serde", "ruff_text_size/serde"]

View file

@ -49,6 +49,10 @@ serde = { workspace = true }
serde_json = { workspace = true }
similar = { workspace = true }
[package.metadata.cargo-shear]
# Used via `CacheKey` macro expansion.
ignored = ["ruff_cache"]
[[test]]
name = "ruff_python_formatter_fixtures"
path = "tests/fixtures.rs"

View file

@ -19,8 +19,5 @@ ruff_source_file = { path = "../ruff_source_file" }
itertools = { workspace = true }
unicode-ident = { workspace = true }
[dev-dependencies]
insta = { workspace = true }
[lints]
workspace = true

View file

@ -47,6 +47,10 @@ toml = { workspace = true }
ruff_linter = { path = "../ruff_linter", features = ["clap", "test-rules"] }
tempfile = { workspace = true }
[package.metadata.cargo-shear]
# Used via macro expansion.
ignored = ["colored"]
[features]
default = []
schemars = ["dep:schemars", "ruff_formatter/schemars", "ruff_python_formatter/schemars"]