From 4ae76b1cab5633ab4bd7142601c2052e3ba24e45 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 1 Feb 2024 14:53:46 -0600 Subject: [PATCH] Remove upper bounds from Ruff requirement (#375) Required for https://github.com/astral-sh/ruff/pull/9762 --- ruff_lsp/server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruff_lsp/server.py b/ruff_lsp/server.py index 6f99414..5177df2 100755 --- a/ruff_lsp/server.py +++ b/ruff_lsp/server.py @@ -139,12 +139,12 @@ class VersionModified(NamedTuple): TOOL_DISPLAY = "Ruff" # Require at least Ruff v0.0.291 for formatting, but allow older versions for linting. -VERSION_REQUIREMENT_FORMATTER = SpecifierSet(">=0.0.291,<0.2.0") -VERSION_REQUIREMENT_LINTER = SpecifierSet(">=0.0.189,<0.2.0") +VERSION_REQUIREMENT_FORMATTER = SpecifierSet(">=0.0.291") +VERSION_REQUIREMENT_LINTER = SpecifierSet(">=0.0.189") # Version requirement for use of the `--output-format` option -VERSION_REQUIREMENT_OUTPUT_FORMAT = SpecifierSet(">=0.0.291,<0.2.0") +VERSION_REQUIREMENT_OUTPUT_FORMAT = SpecifierSet(">=0.0.291") # Version requirement after which Ruff avoids writing empty output for excluded files. -VERSION_REQUIREMENT_EMPTY_OUTPUT = SpecifierSet(">=0.1.6,<0.2.0") +VERSION_REQUIREMENT_EMPTY_OUTPUT = SpecifierSet(">=0.1.6") # Arguments provided to every Ruff invocation. CHECK_ARGS = [