Skip to content

Commit 8d98dc3

Browse files
committed
update deprecated e999 check
1 parent 34acd6e commit 8d98dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp_ruff/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def create_diagnostic(check: RuffCheck, settings: PluginSettings) -> Diagnostic:
210210
# Ruff intends to implement severity codes in the future,
211211
# see https://github.com/charliermarsh/ruff/issues/645.
212212
severity = DiagnosticSeverity.Warning
213-
if check.code == "E999" or check.code[0] == "F":
213+
if check.code == "None" or check.code[0] == "F":
214214
severity = DiagnosticSeverity.Error
215215

216216
# Check if check.code starts contained in given severities

0 commit comments

Comments
 (0)