Skip to content

Commit faa07d9

Browse files
authored
Merge pull request #7 from gav451/disable-mccabe-too
Disable mccabe per default
2 parents f7d1be1 + 2cff587 commit faa07d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ There also exists an [AUR package](https://aur.archlinux.org/packages/python-lsp
1818

1919
# Usage
2020

21-
This plugin will disable `flake8` and `pycodestyle` by default.
21+
This plugin will disable `flake8`, `pycodestyle` and `mccabe` by default.
2222
When enabled, all linting diagnostics will be provided by `ruff`.
2323

2424
# Configuration

pylsp_ruff/ruff_lint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@hookimpl
2222
def pylsp_settings():
23-
# flake8 and pycodestyle disabled by default with this plugin
23+
# this plugin disables flake8, mccabe, and pycodestyle by default
2424
return {
2525
"plugins": {
2626
"ruff": {
@@ -34,6 +34,7 @@ def pylsp_settings():
3434
"select": None,
3535
},
3636
"flake8": {"enabled": False},
37+
"mccabe": {"enabled": False},
3738
"pycodestyle": {"enabled": False},
3839
}
3940
}

0 commit comments

Comments
 (0)