ruff/crates
Micha Reiser 653c09001a
Use an empty vendored file system in Ruff (#13436)
## Summary

This PR changes removes the typeshed stubs from the vendored file system
shipped with ruff
and instead ships an empty "typeshed".

Making the typeshed files optional required extracting the typshed files
into a new `ruff_vendored` crate. I do like this even if all our builds
always include typeshed because it means `red_knot_python_semantic`
contains less code that needs compiling.

This also allows us to use deflate because the compression algorithm
doesn't matter for an archive containing a single, empty file.

## Test Plan

`cargo test`

I verified with ` cargo tree -f "{p} {f}" -p <package> ` that:

* red_knot_wasm: enables `deflate` compression
* red_knot: enables `zstd` compression
* `ruff`: uses stored


I'm not quiet sure how to build the binary that maturin builds but
comparing the release artifact size with `strip = true` shows a `1.5MB`
size reduction

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2024-09-21 16:31:42 +00:00
..
red_knot Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
red_knot_python_semantic Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
red_knot_server [red-knot] Support untitled files in the server (#13044) 2024-08-23 12:47:35 +05:30
red_knot_wasm Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
red_knot_workspace Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_benchmark [red-knot] use declared types in inference/checking (#13335) 2024-09-17 08:11:06 -07:00
ruff_cache Fix cache key collisions for paths with separators (#12159) 2024-07-03 07:36:46 -05:00
ruff_db Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_dev Fix parentheses around return type annotations (#13381) 2024-09-20 09:23:53 +02:00
ruff_diagnostics [Minor typo] Fix article in "an fix" (#12797) 2024-08-10 21:22:00 -04:00
ruff_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_graph Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_index [red-knot] small efficiency improvements and bugfixes to use-def map building (#12373) 2024-07-18 09:24:58 -07:00
ruff_linter [pycodestyle] Fix: Don't autofix if the first line ends in a question mark? (D400) (#13399) 2024-09-20 11:05:26 +00:00
ruff_macros Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_notebook Fallback to kernelspec to check if it's a Python notebook (#12875) 2024-08-14 12:36:09 +05:30
ruff_python_ast [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
ruff_python_ast_integration_tests [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
ruff_python_codegen Implement iter(), len() and is_empty() for all display-literal AST nodes (#12807) 2024-08-12 10:39:28 +00:00
ruff_python_formatter Fix parentheses around return type annotations (#13381) 2024-09-20 09:23:53 +02:00
ruff_python_index Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
ruff_python_literal Remove some unused pub functions (#11576) 2024-05-28 09:56:51 -04:00
ruff_python_parser Upgrade to Rust 1.81 (#13265) 2024-09-06 15:09:09 +02:00
ruff_python_resolver chore(deps): update rust crate insta to v1.38.0 (#10701) 2024-04-01 15:44:30 +00:00
ruff_python_semantic Optimize some SemanticModel methods (#13091) 2024-09-02 10:03:52 +01:00
ruff_python_stdlib Remove allocation from ruff_python_stdlib::builtins::python_builtins (#13317) 2024-09-10 16:34:24 -04:00
ruff_python_trivia Fix placement of inline parameter comments (#13379) 2024-09-18 08:26:06 +02:00
ruff_python_trivia_integration_tests Build CommentRanges outside the parser (#11792) 2024-06-09 09:55:17 +00:00
ruff_server Add support for extensionless Python files for server (#13326) 2024-09-12 00:35:26 +05:30
ruff_source_file Fix off-by one error in the LineIndex::offset calculation (#13407) 2024-09-19 11:58:45 +00:00
ruff_text_size Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
ruff_vendored Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_wasm Bump version to v0.6.6 (#13415) 2024-09-19 23:09:57 -04:00
ruff_workspace Add Python version support to ruff analyze CLI (#13426) 2024-09-20 15:40:47 -04:00