diff --git a/_typos.toml b/_typos.toml index ec973338e4bba..b9176478b8eee 100644 --- a/_typos.toml +++ b/_typos.toml @@ -1,6 +1,6 @@ [files] # https://github.com/crate-ci/typos/issues/868 -extend-exclude = ["crates/red_knot_python_semantic/vendor/**/*", "**/resources/**/*", "**/snapshots/**/*"] +extend-exclude = ["crates/ruff_vendored/vendor/**/*", "**/resources/**/*", "**/snapshots/**/*"] [default.extend-words] "arange" = "arange" # e.g. `numpy.arange` diff --git a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap index d6e12085fe0f4..a471ade158452 100644 --- a/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap +++ b/crates/ruff/tests/snapshots/show_settings__display_default_settings.snap @@ -50,7 +50,7 @@ file_resolver.exclude = [ "venv", ] file_resolver.extend_exclude = [ - "crates/red_knot_python_semantic/vendor/", + "crates/ruff_vendored/vendor/", "crates/ruff/resources/", "crates/ruff_linter/resources/", "crates/ruff_python_formatter/resources/", diff --git a/crates/red_knot_python_semantic/README.md b/crates/ruff_vendored/README.md similarity index 87% rename from crates/red_knot_python_semantic/README.md rename to crates/ruff_vendored/README.md index b8ba1d2e1c45c..f229a7d2df941 100644 --- a/crates/red_knot_python_semantic/README.md +++ b/crates/ruff_vendored/README.md @@ -1,8 +1,4 @@ -# Red Knot - -Semantic analysis for the red-knot project. - -## Vendored types for the stdlib +# Vendored types for the stdlib This crate vendors [typeshed](https://github.com/python/typeshed)'s stubs for the standard library. The vendored stubs can be found in `crates/ruff_vendored/vendor/typeshed`. The file `crates/ruff_vendored/vendor/typeshed/source_commit.txt` tells you the typeshed commit that our vendored stdlib stubs currently correspond to. diff --git a/crates/ruff_vendored/build.rs b/crates/ruff_vendored/build.rs index 535585d657f30..2aacc5c37f310 100644 --- a/crates/ruff_vendored/build.rs +++ b/crates/ruff_vendored/build.rs @@ -3,7 +3,7 @@ //! //! This script should be automatically run at build time //! whenever the script itself changes, or whenever any files -//! in `crates/red_knot_python_semantic/vendor/typeshed` change. +//! in `crates/ruff_vendored/vendor/typeshed` change. use std::fs::File; use std::path::Path; diff --git a/pyproject.toml b/pyproject.toml index 69ad818d5af82..9f3d9ee0e0aaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ include = [ [tool.ruff] extend-exclude = [ - "crates/red_knot_python_semantic/vendor/", + "crates/ruff_vendored/vendor/", "crates/ruff/resources/", "crates/ruff_linter/resources/", "crates/ruff_python_formatter/resources/", @@ -75,7 +75,7 @@ ignore = [ [tool.black] force-exclude = ''' /( - | crates/red_knot_python_semantic/vendor + | crates/ruff_vendored/vendor | crates/ruff_linter/resources | crates/ruff_python_formatter/resources | crates/ruff_python_parser/resources