mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 21:25:08 +00:00
794 B
794 B
Getting started
- Unix:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
- Build ty:
cargo build --bin ty --release
cd
into the benchmark directory:cd scripts/ty_benchmark
- Run benchmarks:
uv run benchmark
Known limitations
ty only implements a tiny fraction of Mypy's and Pyright's functionality, so the benchmarks aren't in any way a fair comparison today. However, they'll become more meaningful as we build out more type checking features in ty.
Windows support
The script should work on Windows, but we haven't tested it yet.
We do make use of shlex
which has known limitations when using non-POSIX shells.