8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44a123 commit fdf2b22Copy full SHA for fdf2b22
pylsp/plugins/flake8_lint.py
@@ -173,6 +173,9 @@ def parse_stdout(document, stdout):
173
character = int(character) - 1
174
# show also the code in message
175
msg = code + ' ' + msg
176
+ severity = lsp.DiagnosticSeverity.Warning
177
+ if code[0] == "E":
178
+ severity = lsp.DiagnosticSeverity.Error
179
diagnostics.append(
180
{
181
'source': 'flake8',
@@ -189,7 +192,7 @@ def parse_stdout(document, stdout):
189
192
}
190
193
},
191
194
'message': msg,
- 'severity': lsp.DiagnosticSeverity.Warning,
195
+ 'severity': severity,
196
197
)
198
0 commit comments