mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:34:40 +00:00

## Summary This PR removes the following dependencies from the `ruff_python_parser` crate: * `anyhow` (moved to dev dependencies) * `is-macro` * `itertools` The main motivation is that they aren't used much. Additionally, it updates the return type of `parse_type_annotation` to use a more specific `ParseError` instead of the generic `anyhow::Error`. ## Test Plan `cargo insta test`
38 lines
1,015 B
TOML
38 lines
1,015 B
TOML
[package]
|
|
name = "ruff_python_parser"
|
|
version = "0.0.0"
|
|
publish = false
|
|
authors = ["Charlie Marsh <charlie.r.marsh@gmail.com>", "RustPython Team"]
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
ruff_python_ast = { workspace = true }
|
|
ruff_python_trivia = { workspace = true }
|
|
ruff_text_size = { workspace = true }
|
|
|
|
bitflags = { workspace = true }
|
|
bstr = { workspace = true }
|
|
memchr = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
static_assertions = { workspace = true }
|
|
unicode-ident = { workspace = true }
|
|
unicode_names2 = { workspace = true }
|
|
unicode-normalization = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
ruff_source_file = { workspace = true }
|
|
|
|
annotate-snippets = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
insta = { workspace = true, features = ["glob"] }
|
|
walkdir = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|