From 017558069aff42961cfe9b65820029bba7ee8abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Ho=C3=9Fbach?= Date: Fri, 9 Feb 2024 10:46:16 +0100 Subject: [PATCH 1/3] Move to ruff as formatter in CI --- .pre-commit-config.yaml | 10 ++++------ pyproject.toml | 4 ---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4fe1958..9cb029a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,4 @@ repos: - - repo: https://github.com/psf/black - rev: 22.8.0 - hooks: - - id: black - - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.991 hooks: @@ -11,9 +6,12 @@ repos: args: [--ignore-missing-imports] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.158 + rev: v0.2.1 hooks: + # Run the linter. - id: ruff + # Run the formatter. + - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 diff --git a/pyproject.toml b/pyproject.toml index 835c60e..54f0f4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,3 @@ ruff = "pylsp_ruff.plugin" [tool.pytest.ini_options] pythonpath = ["."] - -[tool.black] -target-version = ['py36', 'py37', 'py38', 'py39', 'py310', 'py311'] -line-length = 88 From aa7c1247cfc692e16b398c0a8a0304484e03a389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Ho=C3=9Fbach?= Date: Fri, 9 Feb 2024 10:53:55 +0100 Subject: [PATCH 2/3] Bump lsprotocol version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54f0f4a..8376b87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ "ruff>=0.2.0, <0.3.0", "python-lsp-server", "cattrs!=23.2.1", - "lsprotocol>=2022.0.0a1", + "lsprotocol>=2023.0.1", "tomli>=1.1.0; python_version < '3.11'", ] From 9048155787ca622d0af89c4f8d72e3b7a8e5acfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Ho=C3=9Fbach?= Date: Fri, 9 Feb 2024 10:54:16 +0100 Subject: [PATCH 3/3] Bump to v2.1.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8376b87..ba3f091 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.2" +version = "2.1.0" description = "Ruff linting plugin for pylsp" readme = "README.md" requires-python = ">=3.8"