Move corpus tests to `ty_python_semantic` (#18609)

This commit is contained in:
Micha Reiser 2025-06-11 08:55:30 +02:00 committed by GitHub
parent 0724bee59c
commit 5dcfc9f074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
311 changed files with 119 additions and 30 deletions

View File

@ -5,6 +5,7 @@ exclude: |
.github/workflows/release.yml| .github/workflows/release.yml|
crates/ty_vendored/vendor/.*| crates/ty_vendored/vendor/.*|
crates/ty_project/resources/.*| crates/ty_project/resources/.*|
crates/ty_python_semantic/resources/corpus/.*|
crates/ty/docs/(configuration|rules|cli).md| crates/ty/docs/(configuration|rules|cli).md|
crates/ruff_benchmark/resources/.*| crates/ruff_benchmark/resources/.*|
crates/ruff_linter/resources/.*| crates/ruff_linter/resources/.*|

2
Cargo.lock generated
View File

@ -3934,7 +3934,6 @@ version = "0.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"crossbeam", "crossbeam",
"glob",
"insta", "insta",
"notify", "notify",
"pep440_rs", "pep440_rs",
@ -3970,6 +3969,7 @@ dependencies = [
"countme", "countme",
"dir-test", "dir-test",
"drop_bomb", "drop_bomb",
"glob",
"hashbrown 0.15.4", "hashbrown 0.15.4",
"indexmap", "indexmap",
"insta", "insta",

View File

@ -25,7 +25,6 @@ ty_vendored = { workspace = true }
anyhow = { workspace = true } anyhow = { workspace = true }
crossbeam = { workspace = true } crossbeam = { workspace = true }
glob = { workspace = true }
notify = { workspace = true } notify = { workspace = true }
pep440_rs = { workspace = true, features = ["version-ranges"] } pep440_rs = { workspace = true, features = ["version-ranges"] }
rayon = { workspace = true } rayon = { workspace = true }
@ -39,7 +38,6 @@ tracing = { workspace = true }
[dev-dependencies] [dev-dependencies]
ruff_db = { workspace = true, features = ["testing"] } ruff_db = { workspace = true, features = ["testing"] }
glob = { workspace = true }
insta = { workspace = true, features = ["redactions", "ron"] } insta = { workspace = true, features = ["redactions", "ron"] }
[features] [features]

View File

@ -1 +0,0 @@
../../../../ruff_python_parser/resources/invalid/statements/invalid_assignment_targets.py

View File

@ -1 +0,0 @@
../../../../ruff_python_parser/resources/invalid/expressions/named/invalid_target.py

View File

@ -1 +0,0 @@
../../../../ruff_python_parser/resources/invalid/statements/invalid_augmented_assignment_target.py

View File

@ -1 +0,0 @@
../../../../ruff_notebook/resources/test/fixtures/jupyter/unused_variable.ipynb

View File

@ -1 +0,0 @@
../../../../ruff_python_parser/resources/inline/err/type_param_invalid_bound_expr.py

View File

@ -1 +0,0 @@
../../../../ruff_python_parser/resources/inline/err/ann_assign_stmt_invalid_target.py

View File

@ -55,6 +55,7 @@ ty_vendored = { workspace = true }
anyhow = { workspace = true } anyhow = { workspace = true }
dir-test = { workspace = true } dir-test = { workspace = true }
glob = { workspace = true }
insta = { workspace = true } insta = { workspace = true }
tempfile = { workspace = true } tempfile = { workspace = true }
quickcheck = { version = "1.0.3", default-features = false } quickcheck = { version = "1.0.3", default-features = false }

Some files were not shown because too many files have changed in this diff Show More