From 389f7fb453fe7ecef03253424ce56da5eec5b0c2 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 14 Apr 2024 22:26:47 +0200 Subject: [PATCH] fix(pylsp): fix configuration --- lua/lsp/config/pylsp.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/lsp/config/pylsp.lua b/lua/lsp/config/pylsp.lua index 36b119e..a4c425b 100644 --- a/lua/lsp/config/pylsp.lua +++ b/lua/lsp/config/pylsp.lua @@ -1,3 +1,5 @@ +-- spec: https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md + --- @type ServerConfig return { enable = true, @@ -52,13 +54,13 @@ return { -- F - flake8 https://flake8.pycqa.org/en/latest/user/error-codes.html -- W - pycodestyle https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes select = { - "B", "B902", "B903", "B904", "C", "E", "E999", "E501", "F", "W", + "B", "B902", "B903", "B904", "C", "E", "F", "W", }, ignore = { "B950", "D201", "D203", "D205", "D301", "D400", "E133", "E203", "W503", }, - max_line_length = 100, - max_doc_length = 100, + maxLineLength = 100, + maxDocLength = 100, }, isort = { enabled = true,