Skip to content

ruff server detects config file differently to ruff check #11506

Closed
@JaRoSchm

Description

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.

Metadata

Assignees

Labels

serverRelated to the LSP server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions