From 3650c4bfa719f437ac798bb9315ab16e9fcda3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Ho=C3=9Fbach?= Date: Fri, 12 Jan 2024 09:37:56 +0100 Subject: [PATCH 1/2] add subcommand to ruff call --- pylsp_ruff/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From e5c097fbd2d166a359e26c0ffbdca2450bde3fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Ho=C3=9Fbach?= Date: Fri, 12 Jan 2024 09:55:40 +0100 Subject: [PATCH 2/2] bump pyproject to v2.0.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"