mirror of https://gitlab.com/baco/dotconf.git
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:
parent
11a1962f09
commit
773acf8ec4
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue