From 85c288b98260c58e5ef1fca4f5412d31f18e1ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Sun, 29 Mar 2026 14:55:25 +0100 Subject: [PATCH 1/3] Fix of `maxComplexity` and `line_length` fields --- pylsp/config/schema.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pylsp/config/schema.json b/pylsp/config/schema.json index 67289d96..e14daa20 100644 --- a/pylsp/config/schema.json +++ b/pylsp/config/schema.json @@ -91,7 +91,10 @@ "description": "List of errors and warnings to ignore (or skip)." }, "pylsp.plugins.flake8.maxComplexity": { - "type": "integer", + "type": [ + "integer", + "null" + ], "default": null, "description": "Maximum allowed complexity threshold." }, @@ -536,7 +539,7 @@ "description": "Include signature docstring." }, "pylsp.signature.line_length": { - "type": "number", + "type": "integer", "default": 88, "description": "Maximum line length in signatures." } From ce484d8e7d52676faadc6d3dd8a2ef27d36d3709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Sun, 29 Mar 2026 14:57:47 +0100 Subject: [PATCH 2/3] Update `CONFIGURATION.md` --- CONFIGURATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 53d3b2f1..1b6b1cc0 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -78,6 +78,6 @@ This server can be configured using the `workspace/didChangeConfiguration` metho | `pylsp.rope.ropeFolder` | `array` of unique `string` items | The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all. | `null` | | `pylsp.signature.formatter` | `string` (one of: `'black'`, `'ruff'`, `None`) | Formatter to use for reformatting signatures in docstrings. | `"black"` | | `pylsp.signature.include_docstring` | `boolean` | Include signature docstring. | `true` | -| `pylsp.signature.line_length` | `number` | Maximum line length in signatures. | `88` | +| `pylsp.signature.line_length` | `integer` | Maximum line length in signatures. | `88` | This documentation was generated from `pylsp/config/schema.json`. Please do not edit this file directly. From f82524a91ad67bcfa6f996fbf8ecd1d75063937e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Sun, 29 Mar 2026 15:04:53 +0100 Subject: [PATCH 3/3] Fix space --- CONFIGURATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 1b6b1cc0..5a5a228d 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -78,6 +78,6 @@ This server can be configured using the `workspace/didChangeConfiguration` metho | `pylsp.rope.ropeFolder` | `array` of unique `string` items | The name of the folder in which rope stores project configurations and data. Pass `null` for not using such a folder at all. | `null` | | `pylsp.signature.formatter` | `string` (one of: `'black'`, `'ruff'`, `None`) | Formatter to use for reformatting signatures in docstrings. | `"black"` | | `pylsp.signature.include_docstring` | `boolean` | Include signature docstring. | `true` | -| `pylsp.signature.line_length` | `integer` | Maximum line length in signatures. | `88` | +| `pylsp.signature.line_length` | `integer` | Maximum line length in signatures. | `88` | This documentation was generated from `pylsp/config/schema.json`. Please do not edit this file directly.