Hi,
I just tried the new ruff server (ruff 0.4.5) and noticed that it detects its configuration file differently to ruff check. I have a repo with a pyproject.toml containing no ruff configuration. In the directory above there is a pyproject.toml containing configuration for ruff (in this case enabling additional rules). If I use ruff check from inside the repo, it works as expected and uses the enabled rules. Using ruff server inside of vim using the plugin vim-lsp doesn't enable the additional rules. If I add the rules to the pyproject.toml inside of the repo, they are detected by ruff server too.
From the documentation of ruff server it is not clear to me, if this is expected behaviour. As a user of ruff check and ruff server I would expect them to behave equivalently.
Hi,
I just tried the new
ruff server(ruff 0.4.5) and noticed that it detects its configuration file differently toruff check. I have a repo with apyproject.tomlcontaining noruffconfiguration. In the directory above there is apyproject.tomlcontaining configuration forruff(in this case enabling additional rules). If I useruff checkfrom inside the repo, it works as expected and uses the enabled rules. Usingruff serverinside of vim using the plugin vim-lsp doesn't enable the additional rules. If I add the rules to thepyproject.tomlinside of the repo, they are detected byruff servertoo.From the documentation of
ruff serverit is not clear to me, if this is expected behaviour. As a user ofruff checkandruff serverI would expect them to behave equivalently.