Skip to content

Commit

Permalink
chore: bump python-lsp-ruff from 2.0.2 to 2.2.2 (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rafal Chlodnicki <[email protected]>
  • Loading branch information
dependabot[bot] and rchl authored Aug 22, 2024
1 parent 19ae8b0 commit 31a7082
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 5 additions & 4 deletions LSP-pylsp.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"pylsp.plugins.pyflakes.enabled": false,
"pylsp.plugins.pylint.enabled": false,
"pylsp.plugins.pylsp_mypy.enabled": false,
// When enabling, it's recommended to disable `flake8`, `pycodestyle`, `pyflakes`, `mccabe` and `pyls_isort` plugins.
// When enabling, it's recommended to disable `flake8`, `pycodestyle`, `pyflakes`, `mccabe`, `autopep8` and `yapf` plugins.
"pylsp.plugins.ruff.enabled": false,

// --- flake8 settings ---
Expand Down Expand Up @@ -225,8 +225,8 @@
// are ignored if the project has a pyproject.toml.
// See also ruff documenation https://docs.astral.sh/ruff/configuration/
//
// Custom config for `ruff` to use.
"pylsp.plugins.ruff.path": null,
// Path to a custom config for `ruff` to use.
"pylsp.plugins.ruff.config": null,
// Custom path to `ruff`.
"pylsp.plugins.ruff.executable": null,
// A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like F841),
Expand Down Expand Up @@ -276,9 +276,10 @@
// --- Formatters -----------------------------------------------------
// By default, autopep8 is enabled
"pylsp.plugins.autopep8.enabled": true,
"pylsp.plugins.ruff.formatEnabled": false,
"pylsp.plugins.yapf.enabled": false,
"pylsp.plugins.pyls_isort.enabled": false,
// When enabling black, make sure that autopep8 and yapf are disabled.
// When enabling black, make sure that autopep8, ruff formatter and yapf are disabled.
"pylsp.plugins.black.enabled": false,
"pylsp.plugins.black.cache_config": false,
"pylsp.plugins.black.line_length": 88,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ mypy==1.8.0
pyls-isort==0.2.2
pylsp-mypy==0.6.8
python-lsp-black==2.0.0
python-lsp-ruff==2.0.2
python-lsp-ruff==2.2.2
python-lsp-server[all]==1.10.0
11 changes: 8 additions & 3 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -607,15 +607,20 @@
"pylsp.plugins.ruff.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "When enabling, it's recommended to disable `flake8`, `pycodestyle`, `pyflakes`, `mccabe` and `pyls_isort` plugins."
"markdownDescription": "When enabling, it's recommended to disable `flake8`, `pycodestyle`, `pyflakes`, `mccabe`, `autopep8` and `yapf` plugins."
},
"pylsp.plugins.ruff.path": {
"pylsp.plugins.ruff.formatEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable formatting using ruff's formatter."
},
"pylsp.plugins.ruff.config": {
"type": [
"string",
"null"
],
"default": null,
"markdownDescription": "Custom config for `ruff` to use."
"markdownDescription": "Path to a custom config for `ruff` to use."
},
"pylsp.plugins.ruff.executable": {
"type": [
Expand Down

0 comments on commit 31a7082

Please sign in to comment.