8000 Allow ruff 0.2.x; disable default enabled formatters (#80) · python-lsp/python-lsp-ruff@f9824d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9824d2

Browse files
magnuslarsenMagnus Larsenccordoba12
authored
Allow ruff 0.2.x; disable default enabled formatters (#80)
* Allow ruff 3.x; disable default enabled formatters * bump minimum version to 0.2.0 Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com> * remove isort from disable list --------- Co-authored-by: Magnus Larsen <mlar@novozymes.com> Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
1 parent 2dd4568 commit f9824d2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Python](https://github.com/python-lsp/python-lsp-ruff/actions/workflows/python.yml/badge.svg)](https://github.com/python-lsp/python-lsp-ruff/actions/workflows/python.yml)
66

77
`python-lsp-ruff` is a plugin for `python-lsp-server` that adds linting, code action and formatting capabilities that are provided by [ruff](https://github.com/charliermarsh/ruff),
8-
an extremely fast Python linter written in Rust.
8+
an extremely fast Python linter and formatter written in Rust.
99

1010
## Install
1111

@@ -26,8 +26,8 @@ pip install "ruff<0.1.0" "python-lsp-ruff==1.5.3"
2626

2727
## Usage
2828

29-
This plugin will disable `pycodestyle`, `pyflakes`, `mccabe` and `pyls_isort` by default, unless they are explicitly enabled in the client configuration.
30-
When enabled, all linting diagnostics will be provided by `ruff`.
29+
This plugin will disable `pycodestyle`, `pyflakes`, `mccabe`, `autopep8`, and `yapf` by default, unless they are explicitly enabled in the client configuration.
30+
When `python-lsp-ruff` is enabled, all linting diagnostics and formatting capabilities will be provided by `ruff`.
3131

3232
Any codes given in the `format` option will only be marked as `fixable` for ruff during the formatting operation, the user has to make sure that these codes are also in the list of codes that ruff checks!
3333

@@ -38,7 +38,7 @@ Configuration options can be passed to the python-language-server. If a `pyproje
3838
file is present in the project, `python-lsp-ruff` will ignore specific options (see below).
3939

4040
The plugin follows [python-lsp-server's configuration](https://github.com/python-lsp/python-lsp-server/#configuration).
41-
This example configuration using for `neovim` shows the possible optionsL
41+
This example configuration using for `neovim` shows the possible options:
4242

4343
```lua
4444
pylsp = {

pylsp_ruff/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def pylsp_settings():
9797
"pyflakes": {"enabled": False},
9898
"mccabe": {"enabled": False},
9999
"pycodestyle": {"enabled": False},
100-
"pyls_isort": {"enabled": False},
100+
"yapf": {"enabled": False},
101+
"autopep8": {"enabled": False},
101102
}
102103
}
103104
return converter.unstructure(settings)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readme = "README.md"
1313
requires-python = ">=3.8"
1414
license = {text = "MIT"}
1515
dependencies = [
16-
"ruff>=0.1.5, <0.2.0",
16+
"ruff>=0.2.0, <0.3.0",
1717
"python-lsp-server",
1818
"cattrs!=23.2.1",
1919
"lsprotocol>=2022.0.0a1",

0 commit comments

Comments
 (0)
0