diff --git a/pylsp_ruff/plugin.py b/pylsp_ruff/plugin.py index fa7a98c..6b73fae 100644 --- a/pylsp_ruff/plugin.py +++ b/pylsp_ruff/plugin.py @@ -514,7 +514,7 @@ def run_ruff( if executable is not None: log.debug(f"Calling {executable} with args: {arguments} on '{document_path}'") try: - cmd = [executable] + cmd = [executable, str(subcommand)] cmd.extend(arguments) p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE) except Exception: diff --git a/pyproject.toml b/pyproject.toml index 1058ae7..687b8ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "python-lsp-ruff" authors = [ {name = "Julian Hossbach", email = "julian.hossbach@gmx.de"} ] -version = "2.0.1" +version = "2.0.2" description = "Ruff linting plugin for pylsp" readme = "README.md" requires-python = ">=3.8"