Skip to content

Commit e46a242

Browse files
authored
Fix types of maxComplexity and line_length (#703)
1 parent bc1095f commit e46a242

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CONFIGURATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ This server can be configured using the `workspace/didChangeConfiguration` metho
7878
| `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` |
7979
| `pylsp.signature.formatter` | `string` (one of: `'black'`, `'ruff'`, `None`) | Formatter to use for reformatting signatures in docstrings. | `"black"` |
8080
| `pylsp.signature.include_docstring` | `boolean` | Include signature docstring. | `true` |
81-
| `pylsp.signature.line_length` | `number` | Maximum line length in signatures. | `88` |
81+
| `pylsp.signature.line_length` | `integer` | Maximum line length in signatures. | `88` |
8282

8383
This documentation was generated from `pylsp/config/schema.json`. Please do not edit this file directly.

pylsp/config/schema.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@
9191
"description": "List of errors and warnings to ignore (or skip)."
9292
},
9393
"pylsp.plugins.flake8.maxComplexity": {
94-
"type": "integer",
94+
"type": [
95+
"integer",
96+
"null"
97+
],
9598
"default": null,
9699
"description": "Maximum allowed complexity threshold."
97100
},
@@ -536,7 +539,7 @@
536539
"description": "Include signature docstring."
537540
},
538541
"pylsp.signature.line_length": {
539-
"type": "number",
542+
"type": "integer",
540543
"default": 88,
541544
"description": "Maximum line length in signatures."
542545
}

0 commit comments

Comments
 (0)