From 64eb9ad23c312bc8ca017e721d44c318c21af36b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 25 Jan 2024 00:47:24 -0500 Subject: [PATCH] Bump version to v0.0.50 --- README.md | 18 ++++++++++-------- requirements-dev.txt | 6 +++--- requirements.txt | 6 +++--- ruff_lsp/__init__.py | 2 +- ruff_lsp/settings.py | 2 +- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 94b6970..5895a1b 100644 --- a/README.md +++ b/README.md @@ -244,17 +244,19 @@ The exact mechanism by which settings will be passed to `ruff-lsp` will vary by the following settings are supported: | Settings | Default | Description | -|--------------------------------------| -------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| lint.args | `[]` | Additional command-line arguments to pass to `ruff check`, e.g., `"args": ["--config=/path/to/pyproject.toml"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`. | -| lint.run | `onType` | Run Ruff on every keystroke (`onType`) or on save (`onSave`). | +|--------------------------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| codeAction.disableRuleComment.enable | `true` | Whether to display Quick Fix actions to disable rules via `noqa` suppression comments. | +| codeAction.fixViolation.enable | `true` | Whether to display Quick Fix actions to autofix violations. | +| fixAll | `true` | Whether to register Ruff as capable of handling `source.fixAll` actions. | | format.args | `[]` | Additional command-line arguments to pass to `ruff format`, e.g., `"args": ["--config=/path/to/pyproject.toml"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`. | -| path | `[]` | Path to a custom `ruff` executable, e.g., `["/path/to/ruff"]`. | +| ignoreStandardLibrary | `true` | Whether to ignore files that are inferred to be part of the Python standard library. | | interpreter | `[]` | Path to a Python interpreter to use to run the linter server. | -| organizeImports | `true` | Whether to register Ruff as capable of handling `source.organizeImports` actions. | -| fixAll | `true` | Whether to register Ruff as capable of handling `source.fixAll` actions. | -| codeAction.fixViolation.enable | `true` | Whether to display Quick Fix actions to autofix violations. | +| line.enable | `true` | Whether to enable linting. Set to `false` to use Ruff exclusively as a formatter. | +| lint.args | `[]` | Additional command-line arguments to pass to `ruff check`, e.g., `"args": ["--config=/path/to/pyproject.toml"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`. | +| lint.run | `onType` | Run Ruff on every keystroke (`onType`) or on save (`onSave`). | | logLevel | `error` | Sets the tracing level for the extension: `error`, `warn`, `info`, or `debug`. | -| codeAction.disableRuleComment.enable | `true` | Whether to display Quick Fix actions to disable rules via `noqa` suppression comments. | +| organizeImports | `true` | Whether to register Ruff as capable of handling `source.organizeImports` actions. | +| path | `[]` | Path to a custom `ruff` executable, e.g., `["/path/to/ruff"]`. | ## Development diff --git a/requirements-dev.txt b/requirements-dev.txt index c01c248..2476ed1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -41,9 +41,9 @@ iniconfig==2.0.0 \ --hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \ --hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374 # via pytest -lsprotocol==2023.0.1 \ - --hash=sha256:c75223c9e4af2f24272b14c6375787438279369236cd568f596d4951052a60f2 \ - --hash=sha256:cc5c15130d2403c18b734304339e51242d3018a05c4f7d0f198ad6e0cd21861d +lsprotocol==2023.0.0 \ + --hash=sha256:c9d92e12a3f4ed9317d3068226592860aab5357d93cf5b2451dc244eee8f35f2 \ + --hash=sha256:e85fc87ee26c816adca9eb497bb3db1a7c79c477a11563626e712eaccf926a05 # via # pygls # ruff-lsp (pyproject.toml) diff --git a/requirements.txt b/requirements.txt index e9b4084..a51e9e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,9 +22,9 @@ importlib-metadata==6.7.0 \ --hash=sha256:1aaf550d4f73e5d6783e7acb77aec43d49da8017410afae93822cc9cca98c4d4 \ --hash=sha256:cb52082e659e97afc5dac71e79de97d8681de3aa07ff18578330904a9d18e5b5 # via attrs -lsprotocol==2023.0.1 \ - --hash=sha256:c75223c9e4af2f24272b14c6375787438279369236cd568f596d4951052a60f2 \ - --hash=sha256:cc5c15130d2403c18b734304339e51242d3018a05c4f7d0f198ad6e0cd21861d +lsprotocol==2023.0.0 \ + --hash=sha256:c9d92e12a3f4ed9317d3068226592860aab5357d93cf5b2451dc244eee8f35f2 \ + --hash=sha256:e85fc87ee26c816adca9eb497bb3db1a7c79c477a11563626e712eaccf926a05 # via # pygls # ruff-lsp (pyproject.toml) diff --git a/ruff_lsp/__init__.py b/ruff_lsp/__init__.py index 38c28ff..bf41adb 100644 --- a/ruff_lsp/__init__.py +++ b/ruff_lsp/__init__.py @@ -1 +1 @@ -__version__ = "0.0.49" +__version__ = "0.0.50" diff --git a/ruff_lsp/settings.py b/ruff_lsp/settings.py index 98422f8..9ed8007 100644 --- a/ruff_lsp/settings.py +++ b/ruff_lsp/settings.py @@ -47,7 +47,7 @@ class UserSettings(TypedDict, total=False): """Settings specific to format capabilities.""" ignoreStandardLibrary: bool - """Whether to ignore files in the standard library when running Ruff.""" + """Whether to ignore files that are inferred to be part of the standard library.""" # Deprecated: use `lint.args` instead. args: list[str]