diff --git a/README.md b/README.md index aa1c2c3..2b393b5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ There also exists an [AUR package](https://aur.archlinux.org/packages/python-lsp # Usage -This plugin will disable `flake8`, `pycodestyle`, `pyflakes`, `mccabe` and `pyls_isort` by default. +This plugin will disable `pycodestyle`, `pyflakes`, `mccabe` and `pyls_isort` by default, unless they are explicitly enabled in the client configuration. When enabled, all linting diagnostics will be provided by `ruff`. Sorting of the imports through `ruff` when formatting is enabled by default. The list of code fixes can be changed via the `pylsp.plugins.ruff.format` option. diff --git a/pylsp_ruff/plugin.py b/pylsp_ruff/plugin.py index c9c62e1..2342b99 100644 --- a/pylsp_ruff/plugin.py +++ b/pylsp_ruff/plugin.py @@ -64,12 +64,12 @@ @hookimpl def pylsp_settings(): log.debug("Initializing pylsp_ruff") - # this plugin disables flake8, mccabe, and pycodestyle by default + # This plugin disables some enabled-by-default plugins that duplicate Ruff + # functionality settings = { "plugins": { "ruff": PluginSettings(), "pyflakes": {"enabled": False}, - "flake8": {"enabled": False}, "mccabe": {"enabled": False}, "pycodestyle": {"enabled": False}, "pyls_isort": {"enabled": False},