ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Multi-file analysis

Open DetachHead opened this issue 2 years ago • 2 comments

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

DetachHead avatar Sep 17 '23 00:09 DetachHead

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?

danieleades avatar Mar 29 '24 15:03 danieleades

We are designing this right now. The roadmap is still being determined. As always, performance will be very important to us :)

zanieb avatar Mar 29 '24 15:03 zanieb

Is there a branch I could track for this?

robtaylor avatar Mar 19 '25 10:03 robtaylor

You can follow our work on red-knot (see the red_knot crate and issues/PRs labeled with red-knot)

MichaReiser avatar Mar 19 '25 11:03 MichaReiser

Hi @MichaReiser, has red-knot been renamed?

jasha-hrp avatar May 09 '25 18:05 jasha-hrp

Aah, is this what the ty repo is for? https://github.com/astral-sh/ty

jasha-hrp avatar May 09 '25 19:05 jasha-hrp

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.

insane-dreamer avatar Aug 15 '25 04:08 insane-dreamer

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

MichaReiser avatar Aug 15 '25 06:08 MichaReiser