Skip to content

Commit

Permalink
other changes that were missed when moving the vendored stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Sep 30, 2024
1 parent 10f126c commit d60dd23
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_vendored/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand All @@ -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
Expand Down

0 comments on commit d60dd23

Please sign in to comment.