diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b465bd93b7936..b8881ec08dbe3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ exclude: | crates/ruff_python_formatter/tests/snapshots/.*| crates/ruff_python_resolver/resources/.*| crates/ruff_python_resolver/tests/snapshots/.*| - crates/red_knot/resources/.* + crates/red_knot_workspace/resources/.* )$ repos: diff --git a/Cargo.lock b/Cargo.lock index e4b3156f04f3d..ab8ead5b80cb5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1945,13 +1945,10 @@ dependencies = [ "crossbeam", "ctrlc", "filetime", - "notify", "rayon", "red_knot_module_resolver", - "red_knot_python_semantic", + "red_knot_workspace", "ruff_db", - "ruff_python_ast", - "rustc-hash 2.0.0", "salsa", "tempfile", "tracing", @@ -1999,6 +1996,22 @@ dependencies = [ "tracing", ] +[[package]] +name = "red_knot_workspace" +version = "0.0.0" +dependencies = [ + "anyhow", + "crossbeam", + "notify", + "red_knot_module_resolver", + "red_knot_python_semantic", + "ruff_db", + "ruff_python_ast", + "rustc-hash 2.0.0", + "salsa", + "tracing", +] + [[package]] name = "redox_syscall" version = "0.4.1" @@ -2137,7 +2150,7 @@ dependencies = [ "codspeed-criterion-compat", "mimalloc", "once_cell", - "red_knot", + "red_knot_workspace", "ruff_db", "ruff_linter", "ruff_python_ast", diff --git a/Cargo.toml b/Cargo.toml index 771d9311eff07..a6bfb5d5e79d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,9 +35,9 @@ ruff_source_file = { path = "crates/ruff_source_file" } ruff_text_size = { path = "crates/ruff_text_size" } ruff_workspace = { path = "crates/ruff_workspace" } -red_knot = { path = "crates/red_knot" } red_knot_module_resolver = { path = "crates/red_knot_module_resolver" } red_knot_python_semantic = { path = "crates/red_knot_python_semantic" } +red_knot_workspace = { path = "crates/red_knot_workspace" } aho-corasick = { version = "1.1.3" } annotate-snippets = { version = "0.9.2", features = ["color"] } diff --git a/crates/red_knot/Cargo.toml b/crates/red_knot/Cargo.toml index ad59355a18642..622cf7fc00324 100644 --- a/crates/red_knot/Cargo.toml +++ b/crates/red_knot/Cargo.toml @@ -13,19 +13,16 @@ license.workspace = true [dependencies] red_knot_module_resolver = { workspace = true } -red_knot_python_semantic = { workspace = true } +red_knot_workspace = { workspace = true } ruff_db = { workspace = true, features = ["os", "cache"] } -ruff_python_ast = { workspace = true } anyhow = { workspace = true } clap = { workspace = true, features = ["wrap_help"] } countme = { workspace = true, features = ["enable"] } crossbeam = { workspace = true } ctrlc = { version = "3.4.4" } -notify = { workspace = true } rayon = { workspace = true } -rustc-hash = { workspace = true } salsa = { workspace = true } tracing = { workspace = true } tracing-subscriber = { workspace = true } diff --git a/crates/red_knot/src/main.rs b/crates/red_knot/src/main.rs index 8846d4ef4129b..812d994d3a152 100644 --- a/crates/red_knot/src/main.rs +++ b/crates/red_knot/src/main.rs @@ -9,10 +9,10 @@ use tracing_subscriber::layer::{Context, Filter, SubscriberExt}; use tracing_subscriber::{Layer, Registry}; use tracing_tree::time::Uptime; -use red_knot::db::RootDatabase; -use red_knot::watch; -use red_knot::watch::WorkspaceWatcher; -use red_knot::workspace::WorkspaceMetadata; +use red_knot_workspace::db::RootDatabase; +use red_knot_workspace::watch; +use red_knot_workspace::watch::WorkspaceWatcher; +use red_knot_workspace::workspace::WorkspaceMetadata; use ruff_db::program::{ProgramSettings, SearchPathSettings}; use ruff_db::system::{OsSystem, System, SystemPathBuf}; diff --git a/crates/red_knot/tests/file_watching.rs b/crates/red_knot/tests/file_watching.rs index bcbaf9507f2a9..c74ab4efdb287 100644 --- a/crates/red_knot/tests/file_watching.rs +++ b/crates/red_knot/tests/file_watching.rs @@ -6,11 +6,11 @@ use std::time::Duration; use anyhow::{anyhow, Context}; use salsa::Setter; -use red_knot::db::RootDatabase; -use red_knot::watch; -use red_knot::watch::{directory_watcher, WorkspaceWatcher}; -use red_knot::workspace::WorkspaceMetadata; use red_knot_module_resolver::{resolve_module, ModuleName}; +use red_knot_workspace::db::RootDatabase; +use red_knot_workspace::watch; +use red_knot_workspace::watch::{directory_watcher, WorkspaceWatcher}; +use red_knot_workspace::workspace::WorkspaceMetadata; use ruff_db::files::{system_path_to_file, File, FileError}; use ruff_db::program::{Program, ProgramSettings, SearchPathSettings, TargetVersion}; use ruff_db::source::source_text; diff --git a/crates/red_knot_workspace/Cargo.toml b/crates/red_knot_workspace/Cargo.toml new file mode 100644 index 0000000000000..3bcb9688a5c05 --- /dev/null +++ b/crates/red_knot_workspace/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "red_knot_workspace" +version = "0.0.0" +edition.workspace = true +rust-version.workspace = true +homepage.workspace = true +documentation.workspace = true +repository.workspace = true +authors.workspace = true +license.workspace = true + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +red_knot_module_resolver = { workspace = true } +red_knot_python_semantic = { workspace = true } + +ruff_db = { workspace = true, features = ["os", "cache"] } +ruff_python_ast = { workspace = true } + +anyhow = { workspace = true } +crossbeam = { workspace = true } +notify = { workspace = true } +rustc-hash = { workspace = true } +salsa = { workspace = true } +tracing = { workspace = true } + +[dev-dependencies] + +[lints] +workspace = true diff --git a/crates/red_knot/resources/test/corpus/00_const.py b/crates/red_knot_workspace/resources/test/corpus/00_const.py similarity index 100% rename from crates/red_knot/resources/test/corpus/00_const.py rename to crates/red_knot_workspace/resources/test/corpus/00_const.py diff --git a/crates/red_knot/resources/test/corpus/00_empty.py b/crates/red_knot_workspace/resources/test/corpus/00_empty.py similarity index 100% rename from crates/red_knot/resources/test/corpus/00_empty.py rename to crates/red_knot_workspace/resources/test/corpus/00_empty.py diff --git a/crates/red_knot/resources/test/corpus/00_expr_discard.py b/crates/red_knot_workspace/resources/test/corpus/00_expr_discard.py similarity index 100% rename from crates/red_knot/resources/test/corpus/00_expr_discard.py rename to crates/red_knot_workspace/resources/test/corpus/00_expr_discard.py diff --git a/crates/red_knot/resources/test/corpus/00_expr_var1.py b/crates/red_knot_workspace/resources/test/corpus/00_expr_var1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/00_expr_var1.py rename to crates/red_knot_workspace/resources/test/corpus/00_expr_var1.py diff --git a/crates/red_knot/resources/test/corpus/01_expr_unary.py b/crates/red_knot_workspace/resources/test/corpus/01_expr_unary.py similarity index 100% rename from crates/red_knot/resources/test/corpus/01_expr_unary.py rename to crates/red_knot_workspace/resources/test/corpus/01_expr_unary.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_attr.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_attr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_attr.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_attr.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_attr_multiline.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_attr_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_attr_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_attr_multiline.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_attr_multiline_assign.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_attr_multiline_assign.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_attr_multiline_assign.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_attr_multiline_assign.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_bin_bool.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_bin_bool.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_bin_bool.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_bin_bool.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_binary.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_binary.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_binary.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_binary.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_bool_op_multiline.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_bool_op_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_bool_op_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_bool_op_multiline.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_bool_op_multiline2.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_bool_op_multiline2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_bool_op_multiline2.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_bool_op_multiline2.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_rel.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_rel.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_rel.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_rel.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_rel_multiple.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_rel_multiple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_rel_multiple.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_rel_multiple.py diff --git a/crates/red_knot/resources/test/corpus/02_expr_subscr.py b/crates/red_knot_workspace/resources/test/corpus/02_expr_subscr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/02_expr_subscr.py rename to crates/red_knot_workspace/resources/test/corpus/02_expr_subscr.py diff --git a/crates/red_knot/resources/test/corpus/03_dict.py b/crates/red_knot_workspace/resources/test/corpus/03_dict.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_dict.py rename to crates/red_knot_workspace/resources/test/corpus/03_dict.py diff --git a/crates/red_knot/resources/test/corpus/03_dict_ex.py b/crates/red_knot_workspace/resources/test/corpus/03_dict_ex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_dict_ex.py rename to crates/red_knot_workspace/resources/test/corpus/03_dict_ex.py diff --git a/crates/red_knot/resources/test/corpus/03_dict_literal_large.py b/crates/red_knot_workspace/resources/test/corpus/03_dict_literal_large.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_dict_literal_large.py rename to crates/red_knot_workspace/resources/test/corpus/03_dict_literal_large.py diff --git a/crates/red_knot/resources/test/corpus/03_dict_unpack_huge.py b/crates/red_knot_workspace/resources/test/corpus/03_dict_unpack_huge.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_dict_unpack_huge.py rename to crates/red_knot_workspace/resources/test/corpus/03_dict_unpack_huge.py diff --git a/crates/red_knot/resources/test/corpus/03_list.py b/crates/red_knot_workspace/resources/test/corpus/03_list.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_list.py rename to crates/red_knot_workspace/resources/test/corpus/03_list.py diff --git a/crates/red_knot/resources/test/corpus/03_list_ex.py b/crates/red_knot_workspace/resources/test/corpus/03_list_ex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_list_ex.py rename to crates/red_knot_workspace/resources/test/corpus/03_list_ex.py diff --git a/crates/red_knot/resources/test/corpus/03_list_large.py b/crates/red_knot_workspace/resources/test/corpus/03_list_large.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_list_large.py rename to crates/red_knot_workspace/resources/test/corpus/03_list_large.py diff --git a/crates/red_knot/resources/test/corpus/03_set.py b/crates/red_knot_workspace/resources/test/corpus/03_set.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_set.py rename to crates/red_knot_workspace/resources/test/corpus/03_set.py diff --git a/crates/red_knot/resources/test/corpus/03_set_multi.py b/crates/red_knot_workspace/resources/test/corpus/03_set_multi.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_set_multi.py rename to crates/red_knot_workspace/resources/test/corpus/03_set_multi.py diff --git a/crates/red_knot/resources/test/corpus/03_slice.py b/crates/red_knot_workspace/resources/test/corpus/03_slice.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_slice.py rename to crates/red_knot_workspace/resources/test/corpus/03_slice.py diff --git a/crates/red_knot/resources/test/corpus/03_slice_ext.py b/crates/red_knot_workspace/resources/test/corpus/03_slice_ext.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_slice_ext.py rename to crates/red_knot_workspace/resources/test/corpus/03_slice_ext.py diff --git a/crates/red_knot/resources/test/corpus/03_tuple.py b/crates/red_knot_workspace/resources/test/corpus/03_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/03_tuple.py diff --git a/crates/red_knot/resources/test/corpus/03_tuple_ex.py b/crates/red_knot_workspace/resources/test/corpus/03_tuple_ex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/03_tuple_ex.py rename to crates/red_knot_workspace/resources/test/corpus/03_tuple_ex.py diff --git a/crates/red_knot/resources/test/corpus/04_assign.py b/crates/red_knot_workspace/resources/test/corpus/04_assign.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_attr.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_attr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_attr.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_attr.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_attr_func.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_attr_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_attr_func.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_attr_func.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_subscr.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_subscr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_subscr.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_subscr.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_unpack.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_unpack.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_unpack.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_unpack.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_unpack_ex.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_unpack_ex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_unpack_ex.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_unpack_ex.py diff --git a/crates/red_knot/resources/test/corpus/04_assign_unpack_tuple.py b/crates/red_knot_workspace/resources/test/corpus/04_assign_unpack_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_assign_unpack_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/04_assign_unpack_tuple.py diff --git a/crates/red_knot/resources/test/corpus/04_aug_assign.py b/crates/red_knot_workspace/resources/test/corpus/04_aug_assign.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_aug_assign.py rename to crates/red_knot_workspace/resources/test/corpus/04_aug_assign.py diff --git a/crates/red_knot/resources/test/corpus/04_aug_assign_attr_multiline.py b/crates/red_knot_workspace/resources/test/corpus/04_aug_assign_attr_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_aug_assign_attr_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/04_aug_assign_attr_multiline.py diff --git a/crates/red_knot/resources/test/corpus/04_aug_assign_attr_sub.py b/crates/red_knot_workspace/resources/test/corpus/04_aug_assign_attr_sub.py similarity index 100% rename from crates/red_knot/resources/test/corpus/04_aug_assign_attr_sub.py rename to crates/red_knot_workspace/resources/test/corpus/04_aug_assign_attr_sub.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_1.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_1.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_1.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_2.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_2.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_2.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_in_multiline_tuple.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_in_multiline_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_in_multiline_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_in_multiline_tuple.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_kw.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_kw.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_kw.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_kw.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_kw_many.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_kw_many.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_kw_many.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_kw_many.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_kw_pos.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_kw_pos.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_kw_pos.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_kw_pos.py diff --git a/crates/red_knot/resources/test/corpus/05_funcall_method_multiline.py b/crates/red_knot_workspace/resources/test/corpus/05_funcall_method_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/05_funcall_method_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/05_funcall_method_multiline.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_kwargs.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_kwargs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_kwargs.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_kwargs.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_many_args.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_many_args.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_many_args.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_many_args.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_starargs_ex.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_starargs_ex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_starargs_ex.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_starargs_ex.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_varargs.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_varargs.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_varargs_kwargs.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs_kwargs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_varargs_kwargs.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs_kwargs.py diff --git a/crates/red_knot/resources/test/corpus/06_funcall_varargs_kwargs_mixed.py b/crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs_kwargs_mixed.py similarity index 100% rename from crates/red_knot/resources/test/corpus/06_funcall_varargs_kwargs_mixed.py rename to crates/red_knot_workspace/resources/test/corpus/06_funcall_varargs_kwargs_mixed.py diff --git a/crates/red_knot/resources/test/corpus/07_ifexpr.py b/crates/red_knot_workspace/resources/test/corpus/07_ifexpr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/07_ifexpr.py rename to crates/red_knot_workspace/resources/test/corpus/07_ifexpr.py diff --git a/crates/red_knot/resources/test/corpus/07_ifexpr_multiline.py b/crates/red_knot_workspace/resources/test/corpus/07_ifexpr_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/07_ifexpr_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/07_ifexpr_multiline.py diff --git a/crates/red_knot/resources/test/corpus/07_ifexpr_multiline2.py b/crates/red_knot_workspace/resources/test/corpus/07_ifexpr_multiline2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/07_ifexpr_multiline2.py rename to crates/red_knot_workspace/resources/test/corpus/07_ifexpr_multiline2.py diff --git a/crates/red_knot/resources/test/corpus/08_del.py b/crates/red_knot_workspace/resources/test/corpus/08_del.py similarity index 100% rename from crates/red_knot/resources/test/corpus/08_del.py rename to crates/red_knot_workspace/resources/test/corpus/08_del.py diff --git a/crates/red_knot/resources/test/corpus/08_del_multi.py b/crates/red_knot_workspace/resources/test/corpus/08_del_multi.py similarity index 100% rename from crates/red_knot/resources/test/corpus/08_del_multi.py rename to crates/red_knot_workspace/resources/test/corpus/08_del_multi.py diff --git a/crates/red_knot/resources/test/corpus/09_pass.py b/crates/red_knot_workspace/resources/test/corpus/09_pass.py similarity index 100% rename from crates/red_knot/resources/test/corpus/09_pass.py rename to crates/red_knot_workspace/resources/test/corpus/09_pass.py diff --git a/crates/red_knot/resources/test/corpus/10_if.py b/crates/red_knot_workspace/resources/test/corpus/10_if.py similarity index 100% rename from crates/red_knot/resources/test/corpus/10_if.py rename to crates/red_knot_workspace/resources/test/corpus/10_if.py diff --git a/crates/red_knot/resources/test/corpus/10_if_chained_compare.py b/crates/red_knot_workspace/resources/test/corpus/10_if_chained_compare.py similarity index 100% rename from crates/red_knot/resources/test/corpus/10_if_chained_compare.py rename to crates/red_knot_workspace/resources/test/corpus/10_if_chained_compare.py diff --git a/crates/red_knot/resources/test/corpus/10_if_false.py b/crates/red_knot_workspace/resources/test/corpus/10_if_false.py similarity index 100% rename from crates/red_knot/resources/test/corpus/10_if_false.py rename to crates/red_knot_workspace/resources/test/corpus/10_if_false.py diff --git a/crates/red_knot/resources/test/corpus/10_if_true.py b/crates/red_knot_workspace/resources/test/corpus/10_if_true.py similarity index 100% rename from crates/red_knot/resources/test/corpus/10_if_true.py rename to crates/red_knot_workspace/resources/test/corpus/10_if_true.py diff --git a/crates/red_knot/resources/test/corpus/11_if_else.py b/crates/red_knot_workspace/resources/test/corpus/11_if_else.py similarity index 100% rename from crates/red_knot/resources/test/corpus/11_if_else.py rename to crates/red_knot_workspace/resources/test/corpus/11_if_else.py diff --git a/crates/red_knot/resources/test/corpus/11_if_else_deeply_nested_for.py b/crates/red_knot_workspace/resources/test/corpus/11_if_else_deeply_nested_for.py similarity index 100% rename from crates/red_knot/resources/test/corpus/11_if_else_deeply_nested_for.py rename to crates/red_knot_workspace/resources/test/corpus/11_if_else_deeply_nested_for.py diff --git a/crates/red_knot/resources/test/corpus/11_if_else_false.py b/crates/red_knot_workspace/resources/test/corpus/11_if_else_false.py similarity index 100% rename from crates/red_knot/resources/test/corpus/11_if_else_false.py rename to crates/red_knot_workspace/resources/test/corpus/11_if_else_false.py diff --git a/crates/red_knot/resources/test/corpus/11_if_else_true.py b/crates/red_knot_workspace/resources/test/corpus/11_if_else_true.py similarity index 100% rename from crates/red_knot/resources/test/corpus/11_if_else_true.py rename to crates/red_knot_workspace/resources/test/corpus/11_if_else_true.py diff --git a/crates/red_knot/resources/test/corpus/12_if_elif.py b/crates/red_knot_workspace/resources/test/corpus/12_if_elif.py similarity index 100% rename from crates/red_knot/resources/test/corpus/12_if_elif.py rename to crates/red_knot_workspace/resources/test/corpus/12_if_elif.py diff --git a/crates/red_knot/resources/test/corpus/12_if_elif_else.py b/crates/red_knot_workspace/resources/test/corpus/12_if_elif_else.py similarity index 100% rename from crates/red_knot/resources/test/corpus/12_if_elif_else.py rename to crates/red_knot_workspace/resources/test/corpus/12_if_elif_else.py diff --git a/crates/red_knot/resources/test/corpus/13_ifelse_complex1.py b/crates/red_knot_workspace/resources/test/corpus/13_ifelse_complex1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/13_ifelse_complex1.py rename to crates/red_knot_workspace/resources/test/corpus/13_ifelse_complex1.py diff --git a/crates/red_knot/resources/test/corpus/13_ifelse_many.py b/crates/red_knot_workspace/resources/test/corpus/13_ifelse_many.py similarity index 100% rename from crates/red_knot/resources/test/corpus/13_ifelse_many.py rename to crates/red_knot_workspace/resources/test/corpus/13_ifelse_many.py diff --git a/crates/red_knot/resources/test/corpus/15_while.py b/crates/red_knot_workspace/resources/test/corpus/15_while.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while.py rename to crates/red_knot_workspace/resources/test/corpus/15_while.py diff --git a/crates/red_knot/resources/test/corpus/15_while_break.py b/crates/red_knot_workspace/resources/test/corpus/15_while_break.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_break.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_break.py diff --git a/crates/red_knot/resources/test/corpus/15_while_break_in_finally.py b/crates/red_knot_workspace/resources/test/corpus/15_while_break_in_finally.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_break_in_finally.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_break_in_finally.py diff --git a/crates/red_knot/resources/test/corpus/15_while_break_non_empty.py b/crates/red_knot_workspace/resources/test/corpus/15_while_break_non_empty.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_break_non_empty.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_break_non_empty.py diff --git a/crates/red_knot/resources/test/corpus/15_while_break_non_exit.py b/crates/red_knot_workspace/resources/test/corpus/15_while_break_non_exit.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_break_non_exit.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_break_non_exit.py diff --git a/crates/red_knot/resources/test/corpus/15_while_continue.py b/crates/red_knot_workspace/resources/test/corpus/15_while_continue.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_continue.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_continue.py diff --git a/crates/red_knot/resources/test/corpus/15_while_false.py b/crates/red_knot_workspace/resources/test/corpus/15_while_false.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_false.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_false.py diff --git a/crates/red_knot/resources/test/corpus/15_while_infinite.py b/crates/red_knot_workspace/resources/test/corpus/15_while_infinite.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_infinite.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_infinite.py diff --git a/crates/red_knot/resources/test/corpus/15_while_true.py b/crates/red_knot_workspace/resources/test/corpus/15_while_true.py similarity index 100% rename from crates/red_knot/resources/test/corpus/15_while_true.py rename to crates/red_knot_workspace/resources/test/corpus/15_while_true.py diff --git a/crates/red_knot/resources/test/corpus/16_for.py b/crates/red_knot_workspace/resources/test/corpus/16_for.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for.py rename to crates/red_knot_workspace/resources/test/corpus/16_for.py diff --git a/crates/red_knot/resources/test/corpus/16_for_break.py b/crates/red_knot_workspace/resources/test/corpus/16_for_break.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for_break.py rename to crates/red_knot_workspace/resources/test/corpus/16_for_break.py diff --git a/crates/red_knot/resources/test/corpus/16_for_continue.py b/crates/red_knot_workspace/resources/test/corpus/16_for_continue.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for_continue.py rename to crates/red_knot_workspace/resources/test/corpus/16_for_continue.py diff --git a/crates/red_knot/resources/test/corpus/16_for_else.py b/crates/red_knot_workspace/resources/test/corpus/16_for_else.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for_else.py rename to crates/red_knot_workspace/resources/test/corpus/16_for_else.py diff --git a/crates/red_knot/resources/test/corpus/16_for_list_literal.py b/crates/red_knot_workspace/resources/test/corpus/16_for_list_literal.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for_list_literal.py rename to crates/red_knot_workspace/resources/test/corpus/16_for_list_literal.py diff --git a/crates/red_knot/resources/test/corpus/16_for_nested_ifs.py b/crates/red_knot_workspace/resources/test/corpus/16_for_nested_ifs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/16_for_nested_ifs.py rename to crates/red_knot_workspace/resources/test/corpus/16_for_nested_ifs.py diff --git a/crates/red_knot/resources/test/corpus/20_lambda.py b/crates/red_knot_workspace/resources/test/corpus/20_lambda.py similarity index 100% rename from crates/red_knot/resources/test/corpus/20_lambda.py rename to crates/red_knot_workspace/resources/test/corpus/20_lambda.py diff --git a/crates/red_knot/resources/test/corpus/20_lambda_const.py b/crates/red_knot_workspace/resources/test/corpus/20_lambda_const.py similarity index 100% rename from crates/red_knot/resources/test/corpus/20_lambda_const.py rename to crates/red_knot_workspace/resources/test/corpus/20_lambda_const.py diff --git a/crates/red_knot/resources/test/corpus/20_lambda_default_arg.py b/crates/red_knot_workspace/resources/test/corpus/20_lambda_default_arg.py similarity index 100% rename from crates/red_knot/resources/test/corpus/20_lambda_default_arg.py rename to crates/red_knot_workspace/resources/test/corpus/20_lambda_default_arg.py diff --git a/crates/red_knot/resources/test/corpus/20_lambda_ifelse.py b/crates/red_knot_workspace/resources/test/corpus/20_lambda_ifelse.py similarity index 100% rename from crates/red_knot/resources/test/corpus/20_lambda_ifelse.py rename to crates/red_knot_workspace/resources/test/corpus/20_lambda_ifelse.py diff --git a/crates/red_knot/resources/test/corpus/21_func1.py b/crates/red_knot_workspace/resources/test/corpus/21_func1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/21_func1.py rename to crates/red_knot_workspace/resources/test/corpus/21_func1.py diff --git a/crates/red_knot/resources/test/corpus/21_func1_ret.py b/crates/red_knot_workspace/resources/test/corpus/21_func1_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/21_func1_ret.py rename to crates/red_knot_workspace/resources/test/corpus/21_func1_ret.py diff --git a/crates/red_knot/resources/test/corpus/21_func_assign.py b/crates/red_knot_workspace/resources/test/corpus/21_func_assign.py similarity index 100% rename from crates/red_knot/resources/test/corpus/21_func_assign.py rename to crates/red_knot_workspace/resources/test/corpus/21_func_assign.py diff --git a/crates/red_knot/resources/test/corpus/21_func_assign2.py b/crates/red_knot_workspace/resources/test/corpus/21_func_assign2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/21_func_assign2.py rename to crates/red_knot_workspace/resources/test/corpus/21_func_assign2.py diff --git a/crates/red_knot/resources/test/corpus/22_func_arg.py b/crates/red_knot_workspace/resources/test/corpus/22_func_arg.py similarity index 100% rename from crates/red_knot/resources/test/corpus/22_func_arg.py rename to crates/red_knot_workspace/resources/test/corpus/22_func_arg.py diff --git a/crates/red_knot/resources/test/corpus/22_func_vararg.py b/crates/red_knot_workspace/resources/test/corpus/22_func_vararg.py similarity index 100% rename from crates/red_knot/resources/test/corpus/22_func_vararg.py rename to crates/red_knot_workspace/resources/test/corpus/22_func_vararg.py diff --git a/crates/red_knot/resources/test/corpus/23_func_ret.py b/crates/red_knot_workspace/resources/test/corpus/23_func_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/23_func_ret.py rename to crates/red_knot_workspace/resources/test/corpus/23_func_ret.py diff --git a/crates/red_knot/resources/test/corpus/23_func_ret_val.py b/crates/red_knot_workspace/resources/test/corpus/23_func_ret_val.py similarity index 100% rename from crates/red_knot/resources/test/corpus/23_func_ret_val.py rename to crates/red_knot_workspace/resources/test/corpus/23_func_ret_val.py diff --git a/crates/red_knot/resources/test/corpus/24_func_if_ret.py b/crates/red_knot_workspace/resources/test/corpus/24_func_if_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/24_func_if_ret.py rename to crates/red_knot_workspace/resources/test/corpus/24_func_if_ret.py diff --git a/crates/red_knot/resources/test/corpus/24_func_ifelse_ret.py b/crates/red_knot_workspace/resources/test/corpus/24_func_ifelse_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/24_func_ifelse_ret.py rename to crates/red_knot_workspace/resources/test/corpus/24_func_ifelse_ret.py diff --git a/crates/red_knot/resources/test/corpus/24_func_ifnot_ret.py b/crates/red_knot_workspace/resources/test/corpus/24_func_ifnot_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/24_func_ifnot_ret.py rename to crates/red_knot_workspace/resources/test/corpus/24_func_ifnot_ret.py diff --git a/crates/red_knot/resources/test/corpus/25_func_annotations.py b/crates/red_knot_workspace/resources/test/corpus/25_func_annotations.py similarity index 100% rename from crates/red_knot/resources/test/corpus/25_func_annotations.py rename to crates/red_knot_workspace/resources/test/corpus/25_func_annotations.py diff --git a/crates/red_knot/resources/test/corpus/25_func_annotations_nested.py b/crates/red_knot_workspace/resources/test/corpus/25_func_annotations_nested.py similarity index 100% rename from crates/red_knot/resources/test/corpus/25_func_annotations_nested.py rename to crates/red_knot_workspace/resources/test/corpus/25_func_annotations_nested.py diff --git a/crates/red_knot/resources/test/corpus/25_func_annotations_scope.py b/crates/red_knot_workspace/resources/test/corpus/25_func_annotations_scope.py similarity index 100% rename from crates/red_knot/resources/test/corpus/25_func_annotations_scope.py rename to crates/red_knot_workspace/resources/test/corpus/25_func_annotations_scope.py diff --git a/crates/red_knot/resources/test/corpus/26_func_const_defaults.py b/crates/red_knot_workspace/resources/test/corpus/26_func_const_defaults.py similarity index 100% rename from crates/red_knot/resources/test/corpus/26_func_const_defaults.py rename to crates/red_knot_workspace/resources/test/corpus/26_func_const_defaults.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_bound.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_bound.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_bound.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_bound.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_constraint.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_constraint.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_constraint.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_constraint.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_default.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_default.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_default.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_paramspec.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_paramspec.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_paramspec.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_paramspec.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_paramspec_default.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_paramspec_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_paramspec_default.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_paramspec_default.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_tuple.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_tuple.py diff --git a/crates/red_knot/resources/test/corpus/27_func_generic_tuple_default.py b/crates/red_knot_workspace/resources/test/corpus/27_func_generic_tuple_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/27_func_generic_tuple_default.py rename to crates/red_knot_workspace/resources/test/corpus/27_func_generic_tuple_default.py diff --git a/crates/red_knot/resources/test/corpus/30_func_enclosed.py b/crates/red_knot_workspace/resources/test/corpus/30_func_enclosed.py similarity index 100% rename from crates/red_knot/resources/test/corpus/30_func_enclosed.py rename to crates/red_knot_workspace/resources/test/corpus/30_func_enclosed.py diff --git a/crates/red_knot/resources/test/corpus/30_func_enclosed_many.py b/crates/red_knot_workspace/resources/test/corpus/30_func_enclosed_many.py similarity index 100% rename from crates/red_knot/resources/test/corpus/30_func_enclosed_many.py rename to crates/red_knot_workspace/resources/test/corpus/30_func_enclosed_many.py diff --git a/crates/red_knot/resources/test/corpus/31_func_global.py b/crates/red_knot_workspace/resources/test/corpus/31_func_global.py similarity index 100% rename from crates/red_knot/resources/test/corpus/31_func_global.py rename to crates/red_knot_workspace/resources/test/corpus/31_func_global.py diff --git a/crates/red_knot/resources/test/corpus/31_func_global_annotated_later.py b/crates/red_knot_workspace/resources/test/corpus/31_func_global_annotated_later.py similarity index 100% rename from crates/red_knot/resources/test/corpus/31_func_global_annotated_later.py rename to crates/red_knot_workspace/resources/test/corpus/31_func_global_annotated_later.py diff --git a/crates/red_knot/resources/test/corpus/31_func_nonlocal.py b/crates/red_knot_workspace/resources/test/corpus/31_func_nonlocal.py similarity index 100% rename from crates/red_knot/resources/test/corpus/31_func_nonlocal.py rename to crates/red_knot_workspace/resources/test/corpus/31_func_nonlocal.py diff --git a/crates/red_knot/resources/test/corpus/32_func_global_nested.py b/crates/red_knot_workspace/resources/test/corpus/32_func_global_nested.py similarity index 100% rename from crates/red_knot/resources/test/corpus/32_func_global_nested.py rename to crates/red_knot_workspace/resources/test/corpus/32_func_global_nested.py diff --git a/crates/red_knot/resources/test/corpus/33_func_with_docstring_optimizable_tuple_and_return.py b/crates/red_knot_workspace/resources/test/corpus/33_func_with_docstring_optimizable_tuple_and_return.py similarity index 100% rename from crates/red_knot/resources/test/corpus/33_func_with_docstring_optimizable_tuple_and_return.py rename to crates/red_knot_workspace/resources/test/corpus/33_func_with_docstring_optimizable_tuple_and_return.py diff --git a/crates/red_knot/resources/test/corpus/40_import.py b/crates/red_knot_workspace/resources/test/corpus/40_import.py similarity index 100% rename from crates/red_knot/resources/test/corpus/40_import.py rename to crates/red_knot_workspace/resources/test/corpus/40_import.py diff --git a/crates/red_knot/resources/test/corpus/41_from_import.py b/crates/red_knot_workspace/resources/test/corpus/41_from_import.py similarity index 100% rename from crates/red_knot/resources/test/corpus/41_from_import.py rename to crates/red_knot_workspace/resources/test/corpus/41_from_import.py diff --git a/crates/red_knot/resources/test/corpus/42_import_from_dot.py b/crates/red_knot_workspace/resources/test/corpus/42_import_from_dot.py similarity index 100% rename from crates/red_knot/resources/test/corpus/42_import_from_dot.py rename to crates/red_knot_workspace/resources/test/corpus/42_import_from_dot.py diff --git a/crates/red_knot/resources/test/corpus/50_yield.py b/crates/red_knot_workspace/resources/test/corpus/50_yield.py similarity index 100% rename from crates/red_knot/resources/test/corpus/50_yield.py rename to crates/red_knot_workspace/resources/test/corpus/50_yield.py diff --git a/crates/red_knot/resources/test/corpus/51_gen_comp.py b/crates/red_knot_workspace/resources/test/corpus/51_gen_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/51_gen_comp.py rename to crates/red_knot_workspace/resources/test/corpus/51_gen_comp.py diff --git a/crates/red_knot/resources/test/corpus/51_gen_comp2.py b/crates/red_knot_workspace/resources/test/corpus/51_gen_comp2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/51_gen_comp2.py rename to crates/red_knot_workspace/resources/test/corpus/51_gen_comp2.py diff --git a/crates/red_knot/resources/test/corpus/52_gen_comp_if.py b/crates/red_knot_workspace/resources/test/corpus/52_gen_comp_if.py similarity index 100% rename from crates/red_knot/resources/test/corpus/52_gen_comp_if.py rename to crates/red_knot_workspace/resources/test/corpus/52_gen_comp_if.py diff --git a/crates/red_knot/resources/test/corpus/53_dict_comp.py b/crates/red_knot_workspace/resources/test/corpus/53_dict_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/53_dict_comp.py rename to crates/red_knot_workspace/resources/test/corpus/53_dict_comp.py diff --git a/crates/red_knot/resources/test/corpus/53_list_comp.py b/crates/red_knot_workspace/resources/test/corpus/53_list_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/53_list_comp.py rename to crates/red_knot_workspace/resources/test/corpus/53_list_comp.py diff --git a/crates/red_knot/resources/test/corpus/53_list_comp_method.py b/crates/red_knot_workspace/resources/test/corpus/53_list_comp_method.py similarity index 100% rename from crates/red_knot/resources/test/corpus/53_list_comp_method.py rename to crates/red_knot_workspace/resources/test/corpus/53_list_comp_method.py diff --git a/crates/red_knot/resources/test/corpus/53_set_comp.py b/crates/red_knot_workspace/resources/test/corpus/53_set_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/53_set_comp.py rename to crates/red_knot_workspace/resources/test/corpus/53_set_comp.py diff --git a/crates/red_knot/resources/test/corpus/54_list_comp_func.py b/crates/red_knot_workspace/resources/test/corpus/54_list_comp_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/54_list_comp_func.py rename to crates/red_knot_workspace/resources/test/corpus/54_list_comp_func.py diff --git a/crates/red_knot/resources/test/corpus/54_list_comp_lambda.py b/crates/red_knot_workspace/resources/test/corpus/54_list_comp_lambda.py similarity index 100% rename from crates/red_knot/resources/test/corpus/54_list_comp_lambda.py rename to crates/red_knot_workspace/resources/test/corpus/54_list_comp_lambda.py diff --git a/crates/red_knot/resources/test/corpus/54_list_comp_lambda_listcomp.py b/crates/red_knot_workspace/resources/test/corpus/54_list_comp_lambda_listcomp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/54_list_comp_lambda_listcomp.py rename to crates/red_knot_workspace/resources/test/corpus/54_list_comp_lambda_listcomp.py diff --git a/crates/red_knot/resources/test/corpus/54_list_comp_recur_func.py b/crates/red_knot_workspace/resources/test/corpus/54_list_comp_recur_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/54_list_comp_recur_func.py rename to crates/red_knot_workspace/resources/test/corpus/54_list_comp_recur_func.py diff --git a/crates/red_knot/resources/test/corpus/55_list_comp_nested.py b/crates/red_knot_workspace/resources/test/corpus/55_list_comp_nested.py similarity index 100% rename from crates/red_knot/resources/test/corpus/55_list_comp_nested.py rename to crates/red_knot_workspace/resources/test/corpus/55_list_comp_nested.py diff --git a/crates/red_knot/resources/test/corpus/56_yield_from.py b/crates/red_knot_workspace/resources/test/corpus/56_yield_from.py similarity index 100% rename from crates/red_knot/resources/test/corpus/56_yield_from.py rename to crates/red_knot_workspace/resources/test/corpus/56_yield_from.py diff --git a/crates/red_knot/resources/test/corpus/57_await.py b/crates/red_knot_workspace/resources/test/corpus/57_await.py similarity index 100% rename from crates/red_knot/resources/test/corpus/57_await.py rename to crates/red_knot_workspace/resources/test/corpus/57_await.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_break.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_break.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_break.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_break.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_continue.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_continue.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_continue.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_continue.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_dict_comp.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_dict_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_dict_comp.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_dict_comp.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_else.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_else.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_else.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_else.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_gen_comp.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_gen_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_gen_comp.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_gen_comp.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_list_comp.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_list_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_list_comp.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_list_comp.py diff --git a/crates/red_knot/resources/test/corpus/58_async_for_set_comp.py b/crates/red_knot_workspace/resources/test/corpus/58_async_for_set_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/58_async_for_set_comp.py rename to crates/red_knot_workspace/resources/test/corpus/58_async_for_set_comp.py diff --git a/crates/red_knot/resources/test/corpus/59_async_with.py b/crates/red_knot_workspace/resources/test/corpus/59_async_with.py similarity index 100% rename from crates/red_knot/resources/test/corpus/59_async_with.py rename to crates/red_knot_workspace/resources/test/corpus/59_async_with.py diff --git a/crates/red_knot/resources/test/corpus/59_async_with_nested_with.py b/crates/red_knot_workspace/resources/test/corpus/59_async_with_nested_with.py similarity index 100% rename from crates/red_knot/resources/test/corpus/59_async_with_nested_with.py rename to crates/red_knot_workspace/resources/test/corpus/59_async_with_nested_with.py diff --git a/crates/red_knot/resources/test/corpus/60_try_except.py b/crates/red_knot_workspace/resources/test/corpus/60_try_except.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_except.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_except.py diff --git a/crates/red_knot/resources/test/corpus/60_try_except2.py b/crates/red_knot_workspace/resources/test/corpus/60_try_except2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_except2.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_except2.py diff --git a/crates/red_knot/resources/test/corpus/60_try_except_bare.py b/crates/red_knot_workspace/resources/test/corpus/60_try_except_bare.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_except_bare.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_except_bare.py diff --git a/crates/red_knot/resources/test/corpus/60_try_finally.py b/crates/red_knot_workspace/resources/test/corpus/60_try_finally.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_finally.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_finally.py diff --git a/crates/red_knot/resources/test/corpus/60_try_finally_codeobj.py b/crates/red_knot_workspace/resources/test/corpus/60_try_finally_codeobj.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_finally_codeobj.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_finally_codeobj.py diff --git a/crates/red_knot/resources/test/corpus/60_try_finally_cond.py b/crates/red_knot_workspace/resources/test/corpus/60_try_finally_cond.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_finally_cond.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_finally_cond.py diff --git a/crates/red_knot/resources/test/corpus/60_try_finally_for.py b/crates/red_knot_workspace/resources/test/corpus/60_try_finally_for.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_finally_for.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_finally_for.py diff --git a/crates/red_knot/resources/test/corpus/60_try_finally_ret.py b/crates/red_knot_workspace/resources/test/corpus/60_try_finally_ret.py similarity index 100% rename from crates/red_knot/resources/test/corpus/60_try_finally_ret.py rename to crates/red_knot_workspace/resources/test/corpus/60_try_finally_ret.py diff --git a/crates/red_knot/resources/test/corpus/61_try_except_finally.py b/crates/red_knot_workspace/resources/test/corpus/61_try_except_finally.py similarity index 100% rename from crates/red_knot/resources/test/corpus/61_try_except_finally.py rename to crates/red_knot_workspace/resources/test/corpus/61_try_except_finally.py diff --git a/crates/red_knot/resources/test/corpus/62_try_except_as.py b/crates/red_knot_workspace/resources/test/corpus/62_try_except_as.py similarity index 100% rename from crates/red_knot/resources/test/corpus/62_try_except_as.py rename to crates/red_knot_workspace/resources/test/corpus/62_try_except_as.py diff --git a/crates/red_knot/resources/test/corpus/62_try_except_break.py b/crates/red_knot_workspace/resources/test/corpus/62_try_except_break.py similarity index 100% rename from crates/red_knot/resources/test/corpus/62_try_except_break.py rename to crates/red_knot_workspace/resources/test/corpus/62_try_except_break.py diff --git a/crates/red_knot/resources/test/corpus/62_try_except_cond.py b/crates/red_knot_workspace/resources/test/corpus/62_try_except_cond.py similarity index 100% rename from crates/red_knot/resources/test/corpus/62_try_except_cond.py rename to crates/red_knot_workspace/resources/test/corpus/62_try_except_cond.py diff --git a/crates/red_knot/resources/test/corpus/62_try_except_double_nested_inside_if_else.py b/crates/red_knot_workspace/resources/test/corpus/62_try_except_double_nested_inside_if_else.py similarity index 100% rename from crates/red_knot/resources/test/corpus/62_try_except_double_nested_inside_if_else.py rename to crates/red_knot_workspace/resources/test/corpus/62_try_except_double_nested_inside_if_else.py diff --git a/crates/red_knot/resources/test/corpus/62_try_except_return.py b/crates/red_knot_workspace/resources/test/corpus/62_try_except_return.py similarity index 100% rename from crates/red_knot/resources/test/corpus/62_try_except_return.py rename to crates/red_knot_workspace/resources/test/corpus/62_try_except_return.py diff --git a/crates/red_knot/resources/test/corpus/63_raise.py b/crates/red_knot_workspace/resources/test/corpus/63_raise.py similarity index 100% rename from crates/red_knot/resources/test/corpus/63_raise.py rename to crates/red_knot_workspace/resources/test/corpus/63_raise.py diff --git a/crates/red_knot/resources/test/corpus/63_raise_func.py b/crates/red_knot_workspace/resources/test/corpus/63_raise_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/63_raise_func.py rename to crates/red_knot_workspace/resources/test/corpus/63_raise_func.py diff --git a/crates/red_knot/resources/test/corpus/63_raise_x.py b/crates/red_knot_workspace/resources/test/corpus/63_raise_x.py similarity index 100% rename from crates/red_knot/resources/test/corpus/63_raise_x.py rename to crates/red_knot_workspace/resources/test/corpus/63_raise_x.py diff --git a/crates/red_knot/resources/test/corpus/63_raise_x_from_y.py b/crates/red_knot_workspace/resources/test/corpus/63_raise_x_from_y.py similarity index 100% rename from crates/red_knot/resources/test/corpus/63_raise_x_from_y.py rename to crates/red_knot_workspace/resources/test/corpus/63_raise_x_from_y.py diff --git a/crates/red_knot/resources/test/corpus/64_assert.py b/crates/red_knot_workspace/resources/test/corpus/64_assert.py similarity index 100% rename from crates/red_knot/resources/test/corpus/64_assert.py rename to crates/red_knot_workspace/resources/test/corpus/64_assert.py diff --git a/crates/red_knot/resources/test/corpus/67_with.py b/crates/red_knot_workspace/resources/test/corpus/67_with.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with.py rename to crates/red_knot_workspace/resources/test/corpus/67_with.py diff --git a/crates/red_knot/resources/test/corpus/67_with_as.py b/crates/red_knot_workspace/resources/test/corpus/67_with_as.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_as.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_as.py diff --git a/crates/red_knot/resources/test/corpus/67_with_as_func.py b/crates/red_knot_workspace/resources/test/corpus/67_with_as_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_as_func.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_as_func.py diff --git a/crates/red_knot/resources/test/corpus/67_with_cond_return.py b/crates/red_knot_workspace/resources/test/corpus/67_with_cond_return.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_cond_return.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_cond_return.py diff --git a/crates/red_knot/resources/test/corpus/67_with_inside_try_finally_multiple_terminal_elif.py b/crates/red_knot_workspace/resources/test/corpus/67_with_inside_try_finally_multiple_terminal_elif.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_inside_try_finally_multiple_terminal_elif.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_inside_try_finally_multiple_terminal_elif.py diff --git a/crates/red_knot/resources/test/corpus/67_with_inside_try_finally_preceding_terminal_except.py b/crates/red_knot_workspace/resources/test/corpus/67_with_inside_try_finally_preceding_terminal_except.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_inside_try_finally_preceding_terminal_except.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_inside_try_finally_preceding_terminal_except.py diff --git a/crates/red_knot/resources/test/corpus/67_with_multi_exit.py b/crates/red_knot_workspace/resources/test/corpus/67_with_multi_exit.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_multi_exit.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_multi_exit.py diff --git a/crates/red_knot/resources/test/corpus/67_with_return.py b/crates/red_knot_workspace/resources/test/corpus/67_with_return.py similarity index 100% rename from crates/red_knot/resources/test/corpus/67_with_return.py rename to crates/red_knot_workspace/resources/test/corpus/67_with_return.py diff --git a/crates/red_knot/resources/test/corpus/68_with2.py b/crates/red_knot_workspace/resources/test/corpus/68_with2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/68_with2.py rename to crates/red_knot_workspace/resources/test/corpus/68_with2.py diff --git a/crates/red_knot/resources/test/corpus/69_for_try_except_continue1.py b/crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/69_for_try_except_continue1.py rename to crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue1.py diff --git a/crates/red_knot/resources/test/corpus/69_for_try_except_continue2.py b/crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/69_for_try_except_continue2.py rename to crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue2.py diff --git a/crates/red_knot/resources/test/corpus/69_for_try_except_continue3.py b/crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue3.py similarity index 100% rename from crates/red_knot/resources/test/corpus/69_for_try_except_continue3.py rename to crates/red_knot_workspace/resources/test/corpus/69_for_try_except_continue3.py diff --git a/crates/red_knot/resources/test/corpus/70_class.py b/crates/red_knot_workspace/resources/test/corpus/70_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/70_class.py rename to crates/red_knot_workspace/resources/test/corpus/70_class.py diff --git a/crates/red_knot/resources/test/corpus/70_class_base.py b/crates/red_knot_workspace/resources/test/corpus/70_class_base.py similarity index 100% rename from crates/red_knot/resources/test/corpus/70_class_base.py rename to crates/red_knot_workspace/resources/test/corpus/70_class_base.py diff --git a/crates/red_knot/resources/test/corpus/70_class_doc_str.py b/crates/red_knot_workspace/resources/test/corpus/70_class_doc_str.py similarity index 100% rename from crates/red_knot/resources/test/corpus/70_class_doc_str.py rename to crates/red_knot_workspace/resources/test/corpus/70_class_doc_str.py diff --git a/crates/red_knot/resources/test/corpus/71_class_meth.py b/crates/red_knot_workspace/resources/test/corpus/71_class_meth.py similarity index 100% rename from crates/red_knot/resources/test/corpus/71_class_meth.py rename to crates/red_knot_workspace/resources/test/corpus/71_class_meth.py diff --git a/crates/red_knot/resources/test/corpus/71_class_var.py b/crates/red_knot_workspace/resources/test/corpus/71_class_var.py similarity index 100% rename from crates/red_knot/resources/test/corpus/71_class_var.py rename to crates/red_knot_workspace/resources/test/corpus/71_class_var.py diff --git a/crates/red_knot/resources/test/corpus/72_class_mix.py b/crates/red_knot_workspace/resources/test/corpus/72_class_mix.py similarity index 100% rename from crates/red_knot/resources/test/corpus/72_class_mix.py rename to crates/red_knot_workspace/resources/test/corpus/72_class_mix.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_bounds.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_bounds.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_bounds.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_bounds.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_constraints.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_constraints.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_constraints.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_constraints.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_defaults.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_defaults.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_defaults.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_defaults.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_paramspec.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_paramspec.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_paramspec.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_paramspec.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_paramspec_default.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_paramspec_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_paramspec_default.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_paramspec_default.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_tuple.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_tuple.py diff --git a/crates/red_knot/resources/test/corpus/73_class_generic_tuple_default.py b/crates/red_knot_workspace/resources/test/corpus/73_class_generic_tuple_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/73_class_generic_tuple_default.py rename to crates/red_knot_workspace/resources/test/corpus/73_class_generic_tuple_default.py diff --git a/crates/red_knot/resources/test/corpus/74_class_kwargs.py b/crates/red_knot_workspace/resources/test/corpus/74_class_kwargs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/74_class_kwargs.py rename to crates/red_knot_workspace/resources/test/corpus/74_class_kwargs.py diff --git a/crates/red_knot/resources/test/corpus/74_class_kwargs_2.py b/crates/red_knot_workspace/resources/test/corpus/74_class_kwargs_2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/74_class_kwargs_2.py rename to crates/red_knot_workspace/resources/test/corpus/74_class_kwargs_2.py diff --git a/crates/red_knot/resources/test/corpus/74_class_super.py b/crates/red_knot_workspace/resources/test/corpus/74_class_super.py similarity index 100% rename from crates/red_knot/resources/test/corpus/74_class_super.py rename to crates/red_knot_workspace/resources/test/corpus/74_class_super.py diff --git a/crates/red_knot/resources/test/corpus/74_class_super_nested.py b/crates/red_knot_workspace/resources/test/corpus/74_class_super_nested.py similarity index 100% rename from crates/red_knot/resources/test/corpus/74_class_super_nested.py rename to crates/red_knot_workspace/resources/test/corpus/74_class_super_nested.py diff --git a/crates/red_knot/resources/test/corpus/74_just_super.py b/crates/red_knot_workspace/resources/test/corpus/74_just_super.py similarity index 100% rename from crates/red_knot/resources/test/corpus/74_just_super.py rename to crates/red_knot_workspace/resources/test/corpus/74_just_super.py diff --git a/crates/red_knot/resources/test/corpus/75_classderef.py b/crates/red_knot_workspace/resources/test/corpus/75_classderef.py similarity index 100% rename from crates/red_knot/resources/test/corpus/75_classderef.py rename to crates/red_knot_workspace/resources/test/corpus/75_classderef.py diff --git a/crates/red_knot/resources/test/corpus/75_classderef_no.py b/crates/red_knot_workspace/resources/test/corpus/75_classderef_no.py similarity index 100% rename from crates/red_knot/resources/test/corpus/75_classderef_no.py rename to crates/red_knot_workspace/resources/test/corpus/75_classderef_no.py diff --git a/crates/red_knot/resources/test/corpus/76_class_nonlocal1.py b/crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/76_class_nonlocal1.py rename to crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal1.py diff --git a/crates/red_knot/resources/test/corpus/76_class_nonlocal2.py b/crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/76_class_nonlocal2.py rename to crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal2.py diff --git a/crates/red_knot/resources/test/corpus/76_class_nonlocal3.py b/crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal3.py similarity index 100% rename from crates/red_knot/resources/test/corpus/76_class_nonlocal3.py rename to crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal3.py diff --git a/crates/red_knot/resources/test/corpus/76_class_nonlocal4.py b/crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal4.py similarity index 100% rename from crates/red_knot/resources/test/corpus/76_class_nonlocal4.py rename to crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal4.py diff --git a/crates/red_knot/resources/test/corpus/76_class_nonlocal5.py b/crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal5.py similarity index 100% rename from crates/red_knot/resources/test/corpus/76_class_nonlocal5.py rename to crates/red_knot_workspace/resources/test/corpus/76_class_nonlocal5.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__nested.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__nested.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__nested.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__nested.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__no_class.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__no_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__no_class.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__no_class.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__nonlocals.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__nonlocals.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__nonlocals.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__nonlocals.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__nonlocals_2.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__nonlocals_2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__nonlocals_2.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__nonlocals_2.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__param.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__param.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__param.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__param.py diff --git a/crates/red_knot/resources/test/corpus/77_class__class__param_lambda.py b/crates/red_knot_workspace/resources/test/corpus/77_class__class__param_lambda.py similarity index 100% rename from crates/red_knot/resources/test/corpus/77_class__class__param_lambda.py rename to crates/red_knot_workspace/resources/test/corpus/77_class__class__param_lambda.py diff --git a/crates/red_knot/resources/test/corpus/78_class_body_cond.py b/crates/red_knot_workspace/resources/test/corpus/78_class_body_cond.py similarity index 100% rename from crates/red_knot/resources/test/corpus/78_class_body_cond.py rename to crates/red_knot_workspace/resources/test/corpus/78_class_body_cond.py diff --git a/crates/red_knot/resources/test/corpus/78_class_dec.py b/crates/red_knot_workspace/resources/test/corpus/78_class_dec.py similarity index 100% rename from crates/red_knot/resources/test/corpus/78_class_dec.py rename to crates/red_knot_workspace/resources/test/corpus/78_class_dec.py diff --git a/crates/red_knot/resources/test/corpus/78_class_dec_member.py b/crates/red_knot_workspace/resources/test/corpus/78_class_dec_member.py similarity index 100% rename from crates/red_knot/resources/test/corpus/78_class_dec_member.py rename to crates/red_knot_workspace/resources/test/corpus/78_class_dec_member.py diff --git a/crates/red_knot/resources/test/corpus/78_class_dec_member_func.py b/crates/red_knot_workspace/resources/test/corpus/78_class_dec_member_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/78_class_dec_member_func.py rename to crates/red_knot_workspace/resources/test/corpus/78_class_dec_member_func.py diff --git a/crates/red_knot/resources/test/corpus/79_metaclass.py b/crates/red_knot_workspace/resources/test/corpus/79_metaclass.py similarity index 100% rename from crates/red_knot/resources/test/corpus/79_metaclass.py rename to crates/red_knot_workspace/resources/test/corpus/79_metaclass.py diff --git a/crates/red_knot/resources/test/corpus/80_func_kwonlyargs1.py b/crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/80_func_kwonlyargs1.py rename to crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs1.py diff --git a/crates/red_knot/resources/test/corpus/80_func_kwonlyargs2.py b/crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/80_func_kwonlyargs2.py rename to crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs2.py diff --git a/crates/red_knot/resources/test/corpus/80_func_kwonlyargs3.py b/crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs3.py similarity index 100% rename from crates/red_knot/resources/test/corpus/80_func_kwonlyargs3.py rename to crates/red_knot_workspace/resources/test/corpus/80_func_kwonlyargs3.py diff --git a/crates/red_knot/resources/test/corpus/81_func_kwonlyargs_defaults.py b/crates/red_knot_workspace/resources/test/corpus/81_func_kwonlyargs_defaults.py similarity index 100% rename from crates/red_knot/resources/test/corpus/81_func_kwonlyargs_defaults.py rename to crates/red_knot_workspace/resources/test/corpus/81_func_kwonlyargs_defaults.py diff --git a/crates/red_knot/resources/test/corpus/85_match.py b/crates/red_knot_workspace/resources/test/corpus/85_match.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match.py rename to crates/red_knot_workspace/resources/test/corpus/85_match.py diff --git a/crates/red_knot/resources/test/corpus/85_match_as.py b/crates/red_knot_workspace/resources/test/corpus/85_match_as.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_as.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_as.py diff --git a/crates/red_knot/resources/test/corpus/85_match_attr.py b/crates/red_knot_workspace/resources/test/corpus/85_match_attr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_attr.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_attr.py diff --git a/crates/red_knot/resources/test/corpus/85_match_class.py b/crates/red_knot_workspace/resources/test/corpus/85_match_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_class.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_class.py diff --git a/crates/red_knot/resources/test/corpus/85_match_default.py b/crates/red_knot_workspace/resources/test/corpus/85_match_default.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_default.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_default.py diff --git a/crates/red_knot/resources/test/corpus/85_match_guard.py b/crates/red_knot_workspace/resources/test/corpus/85_match_guard.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_guard.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_guard.py diff --git a/crates/red_knot/resources/test/corpus/85_match_in_func.py b/crates/red_knot_workspace/resources/test/corpus/85_match_in_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_in_func.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_in_func.py diff --git a/crates/red_knot/resources/test/corpus/85_match_in_func_with_rest.py b/crates/red_knot_workspace/resources/test/corpus/85_match_in_func_with_rest.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_in_func_with_rest.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_in_func_with_rest.py diff --git a/crates/red_knot/resources/test/corpus/85_match_in_func_with_star.py b/crates/red_knot_workspace/resources/test/corpus/85_match_in_func_with_star.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_in_func_with_star.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_in_func_with_star.py diff --git a/crates/red_knot/resources/test/corpus/85_match_mapping.py b/crates/red_knot_workspace/resources/test/corpus/85_match_mapping.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_mapping.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_mapping.py diff --git a/crates/red_knot/resources/test/corpus/85_match_mapping_subpattern.py b/crates/red_knot_workspace/resources/test/corpus/85_match_mapping_subpattern.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_mapping_subpattern.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_mapping_subpattern.py diff --git a/crates/red_knot/resources/test/corpus/85_match_or.py b/crates/red_knot_workspace/resources/test/corpus/85_match_or.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_or.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_or.py diff --git a/crates/red_knot/resources/test/corpus/85_match_sequence.py b/crates/red_knot_workspace/resources/test/corpus/85_match_sequence.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_sequence.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_sequence.py diff --git a/crates/red_knot/resources/test/corpus/85_match_sequence_wildcard.py b/crates/red_knot_workspace/resources/test/corpus/85_match_sequence_wildcard.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_sequence_wildcard.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_sequence_wildcard.py diff --git a/crates/red_knot/resources/test/corpus/85_match_singleton.py b/crates/red_knot_workspace/resources/test/corpus/85_match_singleton.py similarity index 100% rename from crates/red_knot/resources/test/corpus/85_match_singleton.py rename to crates/red_knot_workspace/resources/test/corpus/85_match_singleton.py diff --git a/crates/red_knot/resources/test/corpus/89_type_alias.py b/crates/red_knot_workspace/resources/test/corpus/89_type_alias.py similarity index 100% rename from crates/red_knot/resources/test/corpus/89_type_alias.py rename to crates/red_knot_workspace/resources/test/corpus/89_type_alias.py diff --git a/crates/red_knot/resources/test/corpus/90_docstring_class.py b/crates/red_knot_workspace/resources/test/corpus/90_docstring_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/90_docstring_class.py rename to crates/red_knot_workspace/resources/test/corpus/90_docstring_class.py diff --git a/crates/red_knot/resources/test/corpus/90_docstring_func.py b/crates/red_knot_workspace/resources/test/corpus/90_docstring_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/90_docstring_func.py rename to crates/red_knot_workspace/resources/test/corpus/90_docstring_func.py diff --git a/crates/red_knot/resources/test/corpus/90_docstring_mod.py b/crates/red_knot_workspace/resources/test/corpus/90_docstring_mod.py similarity index 100% rename from crates/red_knot/resources/test/corpus/90_docstring_mod.py rename to crates/red_knot_workspace/resources/test/corpus/90_docstring_mod.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers1.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers1.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers1.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers1.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers2.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers2.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers2.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers2.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers2_comp.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers2_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers2_comp.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers2_comp.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers3.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers3.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers3.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers3.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers4.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers4.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers4.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers4.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers_dict.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers_dict.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers_dict.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers_dict.py diff --git a/crates/red_knot/resources/test/corpus/91_line_numbers_dict_comp.py b/crates/red_knot_workspace/resources/test/corpus/91_line_numbers_dict_comp.py similarity index 100% rename from crates/red_knot/resources/test/corpus/91_line_numbers_dict_comp.py rename to crates/red_knot_workspace/resources/test/corpus/91_line_numbers_dict_comp.py diff --git a/crates/red_knot/resources/test/corpus/92_qual_class_in_class.py b/crates/red_knot_workspace/resources/test/corpus/92_qual_class_in_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/92_qual_class_in_class.py rename to crates/red_knot_workspace/resources/test/corpus/92_qual_class_in_class.py diff --git a/crates/red_knot/resources/test/corpus/92_qual_class_in_func.py b/crates/red_knot_workspace/resources/test/corpus/92_qual_class_in_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/92_qual_class_in_func.py rename to crates/red_knot_workspace/resources/test/corpus/92_qual_class_in_func.py diff --git a/crates/red_knot/resources/test/corpus/93_deadcode.py b/crates/red_knot_workspace/resources/test/corpus/93_deadcode.py similarity index 100% rename from crates/red_knot/resources/test/corpus/93_deadcode.py rename to crates/red_knot_workspace/resources/test/corpus/93_deadcode.py diff --git a/crates/red_knot/resources/test/corpus/94_strformat.py b/crates/red_knot_workspace/resources/test/corpus/94_strformat.py similarity index 100% rename from crates/red_knot/resources/test/corpus/94_strformat.py rename to crates/red_knot_workspace/resources/test/corpus/94_strformat.py diff --git a/crates/red_knot/resources/test/corpus/94_strformat_complex.py b/crates/red_knot_workspace/resources/test/corpus/94_strformat_complex.py similarity index 100% rename from crates/red_knot/resources/test/corpus/94_strformat_complex.py rename to crates/red_knot_workspace/resources/test/corpus/94_strformat_complex.py diff --git a/crates/red_knot/resources/test/corpus/94_strformat_conv.py b/crates/red_knot_workspace/resources/test/corpus/94_strformat_conv.py similarity index 100% rename from crates/red_knot/resources/test/corpus/94_strformat_conv.py rename to crates/red_knot_workspace/resources/test/corpus/94_strformat_conv.py diff --git a/crates/red_knot/resources/test/corpus/94_strformat_spec.py b/crates/red_knot_workspace/resources/test/corpus/94_strformat_spec.py similarity index 100% rename from crates/red_knot/resources/test/corpus/94_strformat_spec.py rename to crates/red_knot_workspace/resources/test/corpus/94_strformat_spec.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_assign_subscript_no_rhs.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_assign_subscript_no_rhs.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_assign_subscript_no_rhs.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_assign_subscript_no_rhs.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_assign_tuple.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_assign_tuple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_assign_tuple.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_assign_tuple.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_class.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_class.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_class.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_class.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_class_multiline.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_class_multiline.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_class_multiline.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_class_multiline.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_class_no_value.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_class_no_value.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_class_no_value.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_class_no_value.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_func.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_func.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_func.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_func.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_func_future.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_func_future.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_func_future.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_func_future.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_global.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_global.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_global.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_global.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_global_simple.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_global_simple.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_global_simple.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_global_simple.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_local_attr.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_local_attr.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_local_attr.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_local_attr.py diff --git a/crates/red_knot/resources/test/corpus/95_annotation_module.py b/crates/red_knot_workspace/resources/test/corpus/95_annotation_module.py similarity index 100% rename from crates/red_knot/resources/test/corpus/95_annotation_module.py rename to crates/red_knot_workspace/resources/test/corpus/95_annotation_module.py diff --git a/crates/red_knot/resources/test/corpus/96_debug.py b/crates/red_knot_workspace/resources/test/corpus/96_debug.py similarity index 100% rename from crates/red_knot/resources/test/corpus/96_debug.py rename to crates/red_knot_workspace/resources/test/corpus/96_debug.py diff --git a/crates/red_knot/resources/test/corpus/97_global_nonlocal_store.py b/crates/red_knot_workspace/resources/test/corpus/97_global_nonlocal_store.py similarity index 100% rename from crates/red_knot/resources/test/corpus/97_global_nonlocal_store.py rename to crates/red_knot_workspace/resources/test/corpus/97_global_nonlocal_store.py diff --git a/crates/red_knot/resources/test/corpus/98_ann_assign_annotation_future_annotations.py b/crates/red_knot_workspace/resources/test/corpus/98_ann_assign_annotation_future_annotations.py similarity index 100% rename from crates/red_knot/resources/test/corpus/98_ann_assign_annotation_future_annotations.py rename to crates/red_knot_workspace/resources/test/corpus/98_ann_assign_annotation_future_annotations.py diff --git a/crates/red_knot/resources/test/corpus/98_ann_assign_annotation_wrong_future.py b/crates/red_knot_workspace/resources/test/corpus/98_ann_assign_annotation_wrong_future.py similarity index 100% rename from crates/red_knot/resources/test/corpus/98_ann_assign_annotation_wrong_future.py rename to crates/red_knot_workspace/resources/test/corpus/98_ann_assign_annotation_wrong_future.py diff --git a/crates/red_knot/resources/test/corpus/98_ann_assign_simple_annotation.py b/crates/red_knot_workspace/resources/test/corpus/98_ann_assign_simple_annotation.py similarity index 100% rename from crates/red_knot/resources/test/corpus/98_ann_assign_simple_annotation.py rename to crates/red_knot_workspace/resources/test/corpus/98_ann_assign_simple_annotation.py diff --git a/crates/red_knot/resources/test/corpus/99_empty_jump_target_insts.py b/crates/red_knot_workspace/resources/test/corpus/99_empty_jump_target_insts.py similarity index 100% rename from crates/red_knot/resources/test/corpus/99_empty_jump_target_insts.py rename to crates/red_knot_workspace/resources/test/corpus/99_empty_jump_target_insts.py diff --git a/crates/red_knot/src/db.rs b/crates/red_knot_workspace/src/db.rs similarity index 100% rename from crates/red_knot/src/db.rs rename to crates/red_knot_workspace/src/db.rs diff --git a/crates/red_knot/src/db/changes.rs b/crates/red_knot_workspace/src/db/changes.rs similarity index 100% rename from crates/red_knot/src/db/changes.rs rename to crates/red_knot_workspace/src/db/changes.rs diff --git a/crates/red_knot/src/lib.rs b/crates/red_knot_workspace/src/lib.rs similarity index 100% rename from crates/red_knot/src/lib.rs rename to crates/red_knot_workspace/src/lib.rs diff --git a/crates/red_knot/src/lint.rs b/crates/red_knot_workspace/src/lint.rs similarity index 100% rename from crates/red_knot/src/lint.rs rename to crates/red_knot_workspace/src/lint.rs diff --git a/crates/red_knot/src/watch.rs b/crates/red_knot_workspace/src/watch.rs similarity index 100% rename from crates/red_knot/src/watch.rs rename to crates/red_knot_workspace/src/watch.rs diff --git a/crates/red_knot/src/watch/watcher.rs b/crates/red_knot_workspace/src/watch/watcher.rs similarity index 100% rename from crates/red_knot/src/watch/watcher.rs rename to crates/red_knot_workspace/src/watch/watcher.rs diff --git a/crates/red_knot/src/watch/workspace_watcher.rs b/crates/red_knot_workspace/src/watch/workspace_watcher.rs similarity index 100% rename from crates/red_knot/src/watch/workspace_watcher.rs rename to crates/red_knot_workspace/src/watch/workspace_watcher.rs diff --git a/crates/red_knot/src/workspace.rs b/crates/red_knot_workspace/src/workspace.rs similarity index 100% rename from crates/red_knot/src/workspace.rs rename to crates/red_knot_workspace/src/workspace.rs diff --git a/crates/red_knot/src/workspace/files.rs b/crates/red_knot_workspace/src/workspace/files.rs similarity index 100% rename from crates/red_knot/src/workspace/files.rs rename to crates/red_knot_workspace/src/workspace/files.rs diff --git a/crates/red_knot/src/workspace/metadata.rs b/crates/red_knot_workspace/src/workspace/metadata.rs similarity index 100% rename from crates/red_knot/src/workspace/metadata.rs rename to crates/red_knot_workspace/src/workspace/metadata.rs diff --git a/crates/red_knot/tests/check.rs b/crates/red_knot_workspace/tests/check.rs similarity index 92% rename from crates/red_knot/tests/check.rs rename to crates/red_knot_workspace/tests/check.rs index c91c0515478bf..a2d0f99207f02 100644 --- a/crates/red_knot/tests/check.rs +++ b/crates/red_knot_workspace/tests/check.rs @@ -1,6 +1,6 @@ -use red_knot::db::RootDatabase; -use red_knot::lint::lint_semantic; -use red_knot::workspace::WorkspaceMetadata; +use red_knot_workspace::db::RootDatabase; +use red_knot_workspace::lint::lint_semantic; +use red_knot_workspace::workspace::WorkspaceMetadata; use ruff_db::files::system_path_to_file; use ruff_db::program::{ProgramSettings, SearchPathSettings, TargetVersion}; use ruff_db::system::{OsSystem, SystemPathBuf}; diff --git a/crates/ruff_benchmark/Cargo.toml b/crates/ruff_benchmark/Cargo.toml index 763a622988fe7..98cac7185b5ec 100644 --- a/crates/ruff_benchmark/Cargo.toml +++ b/crates/ruff_benchmark/Cargo.toml @@ -50,7 +50,7 @@ ruff_python_ast = { workspace = true } ruff_python_formatter = { workspace = true } ruff_python_parser = { workspace = true } ruff_python_trivia = { workspace = true } -red_knot = { workspace = true } +red_knot_workspace = { workspace = true } [lints] workspace = true diff --git a/crates/ruff_benchmark/benches/red_knot.rs b/crates/ruff_benchmark/benches/red_knot.rs index 07abdafa6b4fa..079bd17200814 100644 --- a/crates/ruff_benchmark/benches/red_knot.rs +++ b/crates/ruff_benchmark/benches/red_knot.rs @@ -2,8 +2,8 @@ use codspeed_criterion_compat::{criterion_group, criterion_main, BatchSize, Criterion}; -use red_knot::db::RootDatabase; -use red_knot::workspace::WorkspaceMetadata; +use red_knot_workspace::db::RootDatabase; +use red_knot_workspace::workspace::WorkspaceMetadata; use ruff_db::files::{system_path_to_file, vendored_path_to_file, File}; use ruff_db::parsed::parsed_module; use ruff_db::program::{ProgramSettings, SearchPathSettings, TargetVersion};