feat(LSP): Correct Ruff config section to mimic covered linters

In order to make Ruff report, the best way possible, mimicking the
reports provided by both Flake8 and Pylint, disable some of the checks
that the latter linters don't have turned on by default.
This commit is contained in:
Dionisio E Alonso 2024-02-23 17:59:03 -03:00
parent 11a1962f09
commit 773acf8ec4
1 changed files with 5 additions and 1 deletions

View File

@ -2,9 +2,13 @@
line-length = 120
[tool.ruff.lint]
extend-select = [
"E", "W", "F", "C90", # Pycodestyle + Pyflakes + McCabe = Flake8
"E", "W", "F", # Pycodestyle + Pyflakes - McCabe (C90) = Flake8
"PL", # Pylint
]
extend-ignore = [
"PLW2901", "PLR2004", # From Pylint plugin, not enabled by default
"PLR0912", # Already covered: mccabe (C90)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]