mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
## Summary Today, Ruff rebuilds the editor configuration and can reread an editor-specified configuration file for every project configuration it indexes. Script support will also need to merge editor settings with each script's configuration after reading its inline metadata, which would repeat the same work for individual documents. This PR separates preparing the editor configuration from merging it with filesystem configuration and reuses one prepared transformer per workspace index. This avoids repeated configuration loading and gives script support a transformer it can retain and apply when resolving individual scripts. Testing: Ran the Ruff server tests.