Skip to content

Commit 13f5555

Browse files
committed
crates: vendor annotate-snippets crate
This merely adds the crate to our repository. Some cosmetic changes are made to make it work in our repo and follow our conventions, such as changing the name to `ruff_annotate_snippets`. We retain the original license information. We do drop some things, such as benchmarks, but keep tests and examples.
1 parent d54c19b commit 13f5555

Some content is hidden

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

58 files changed

+6168
-7
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ license = "MIT"
1313

1414
[workspace.dependencies]
1515
ruff = { path = "crates/ruff" }
16+
ruff_annotate_snippets = { path = "crates/ruff_annotate_snippets" }
1617
ruff_cache = { path = "crates/ruff_cache" }
1718
ruff_db = { path = "crates/ruff_db", default-features = false }
1819
ruff_diagnostics = { path = "crates/ruff_diagnostics" }
@@ -44,6 +45,8 @@ red_knot_workspace = { path = "crates/red_knot_workspace", default-features = fa
4445

4546
aho-corasick = { version = "1.1.3" }
4647
annotate-snippets = { version = "0.9.2", features = ["color"] }
48+
anstream = { version = "0.6.18" }
49+
anstyle = { version = "1.0.10" }
4750
anyhow = { version = "1.0.80" }
4851
assert_fs = { version = "1.1.0" }
4952
argfile = { version = "0.2.0" }
@@ -132,6 +135,7 @@ serde_with = { version = "3.6.0", default-features = false, features = [
132135
shellexpand = { version = "3.0.0" }
133136
similar = { version = "2.4.0", features = ["inline"] }
134137
smallvec = { version = "1.13.2" }
138+
snapbox = { version = "0.6.0", features = ["diff", "term-svg", "cmd", "examples"] }
135139
static_assertions = "1.1.0"
136140
strum = { version = "0.26.0", features = ["strum_macros"] }
137141
strum_macros = { version = "0.26.0" }
@@ -149,6 +153,7 @@ tracing-subscriber = { version = "0.3.18", default-features = false, features =
149153
"fmt",
150154
] }
151155
tracing-tree = { version = "0.4.0" }
156+
tryfn = { version = "0.2.1" }
152157
typed-arena = { version = "2.0.2" }
153158
unic-ucd-category = { version = "0.9" }
154159
unicode-ident = { version = "1.0.12" }
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[package]
2+
name = "ruff_annotate_snippets"
3+
version = "0.1.0"
4+
publish = false
5+
authors = { workspace = true }
6+
edition = { workspace = true }
7+
rust-version = { workspace = true }
8+
homepage = { workspace = true }
9+
documentation = { workspace = true }
10+
repository = { workspace = true }
11+
license = "MIT OR Apache-2.0"
12+
13+
[lib]
14+
15+
[features]
16+
default = []
17+
testing-colors = []
18+
19+
[dependencies]
20+
anstyle = { workspace = true }
21+
memchr = { workspace = true }
22+
unicode-width = { workspace = true }
23+
24+
[dev-dependencies]
25+
ruff_annotate_snippets = { workspace = true, features = ["testing-colors"] }
26+
anstream = { workspace = true }
27+
serde = { workspace = true, features = ["derive"] }
28+
snapbox = { workspace = true, features = ["diff", "term-svg", "cmd", "examples"] }
29+
toml = { workspace = true }
30+
tryfn = { workspace = true }
31+
32+
[[test]]
33+
name = "fixtures"
34+
harness = false
35+
36+
[lints]
37+
workspace = true

0 commit comments

Comments
 (0)