From d9267132d67326ee55dde59f3ee4ea170a6c7dd8 Mon Sep 17 00:00:00 2001 From: aditya pillai <29032680+pilleye@users.noreply.github.com> Date: Mon, 30 Sep 2024 06:32:02 -0500 Subject: [PATCH] Fix leftover references to `red_knot_python_semantic/vendor/` (#13561) Co-authored-by: Alex Waygood --- _typos.toml | 2 +- .../show_settings__display_default_settings.snap | 2 +- .../{red_knot_python_semantic => ruff_vendored}/README.md | 8 ++------ crates/ruff_vendored/build.rs | 2 +- pyproject.toml | 4 ++-- 5 files changed, 7 insertions(+), 11 deletions(-) rename crates/{red_knot_python_semantic => ruff_vendored}/README.md (58%) diff --git a/_typos.toml b/_typos.toml index ec973338e4..b9176478b8 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 d6e12085fe..a471ade158 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 58% rename from crates/red_knot_python_semantic/README.md rename to crates/ruff_vendored/README.md index 9fbf313194..f229a7d2df 100644 --- a/crates/red_knot_python_semantic/README.md +++ b/crates/ruff_vendored/README.md @@ -1,9 +1,5 @@ -# Red Knot +# Vendored types for the stdlib -Semantic analysis for the red-knot project. - -## 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/red_knot_python_semantic/vendor/typeshed`. The file `crates/red_knot_python_semantic/vendor/typeshed/source_commit.txt` tells you the typeshed commit that our vendored stdlib stubs currently correspond to. +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. The typeshed stubs are updated every two weeks via an automated PR using the `sync_typeshed.yaml` workflow in the `.github/workflows` directory. This workflow can also be triggered at any time via [workflow dispatch](https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow#running-a-workflow). diff --git a/crates/ruff_vendored/build.rs b/crates/ruff_vendored/build.rs index 535585d657..2aacc5c37f 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 69ad818d5a..9f3d9ee0e0 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