Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruff: Treat most results as warning instead of error
ruff doesn't really implement severities by itself [1], and one could argue it doesn't make any sense that all diagnostics are warnings. The official lsp implmentation for ruff, ruff-lsp implements a basic mapping from codes to severity [2], so at the very least we should feel comfortable migrating that mapping for our use. 1. astral-sh/ruff#1256 2. https://github.com/astral-sh/ruff-lsp/blob/6a1a7b18711cf65b058492d5800e606f14556861/ruff_lsp/server.py#L346-L354
- Loading branch information