ruff
ruff copied to clipboard
Multi-file analysis
currently many rules are limited by the fact that ruff can't do multifile analysis (eg. #6932)
raising a central tracking issue for this as suggested in https://github.com/astral-sh/ruff/issues/6932#issuecomment-1696641747
is there any defined roadmap or plan for this? I can imagine it's a complicated problem to solve, especially without significant performance regressions. Would it be opt in?
We are designing this right now. The roadmap is still being determined. As always, performance will be very important to us :)
Is there a branch I could track for this?
You can follow our work on red-knot (see the red_knot crate and issues/PRs labeled with red-knot)
Hi @MichaReiser, has red-knot been renamed?
Aah, is this what the ty repo is for?
https://github.com/astral-sh/ty
Is there any hope we'll see this supported? Makes a big difference for codebases where there's a lot of inheritance, star imports, etc.
This is happening right now but we decided to build it outside ruff first because it's a pretty big architectural shift. See astral-sh/ty