Skip to content

Commit 7f3dd27

Browse files
committed
TOML dicts are formatted {"tool" {"ruff": {..}}}
And not as {"tool.ruff": {..}}
1 parent f6707df commit 7f3dd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp_ruff/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def load_settings(workspace: Workspace, document_path: str) -> PluginSettings:
569569
toml_dict = tomllib.load(f)
570570
except tomllib.TOMLDecodeError:
571571
log.warn("Error while parsing toml file, ignoring config.")
572-
if "tool.ruff" in toml_dict:
572+
if "tool" in toml_dict and "ruff" in toml_dict["tool"]:
573573
config_in_pyproject = True
574574

575575
ruff_toml = find_parents(

0 commit comments

Comments
 (0)