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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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