You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ The plugin follows [python-lsp-server's
68
68
configuration](https://github.com/python-lsp/python-lsp-server/#configuration). These are
69
69
the valid configuration keys:
70
70
71
-
-`pylsp.plugins.ruff.enabled`: boolean to enable/disable the plugin. `true` by default.
71
+
-`pylsp.plugins.ruff.enabled`: Boolean to enable/disable the plugin. `true` by default.
72
72
-`pylsp.plugins.ruff.config`: Path to optional `pyproject.toml` file.
73
73
-`pylsp.plugins.ruff.exclude`: Exclude files from being checked by `ruff`.
74
74
-`pylsp.plugins.ruff.executable`: Path to the `ruff` executable. Uses `os.executable -m "ruff"` by default.
@@ -79,7 +79,8 @@ the valid configuration keys:
79
79
-`pylsp.plugins.ruff.select`: List of error codes to enable.
80
80
-`pylsp.plugins.ruff.extendSelect`: Same as select, but append to existing error codes.
81
81
-`pylsp.plugins.ruff.format`: List of error codes to fix during formatting. Empty by default, use `["I"]` here to get import sorting as part of formatting.
82
-
-`pylsp.plugins.ruff.unsafeFixes`: boolean that enables/disables fixes that are marked "unsafe" by `ruff`. `false` by default.
82
+
-`pylsp.plugins.ruff.unsafeFixes`: Boolean that enables/disables fixes that are marked "unsafe" by `ruff`. `false` by default.
83
+
-`pylsp.plugins.ruff.preview`: Boolean that enables/disables rules & fixes that are marked "preview" by `ruff`. `false` by default.
83
84
-`pylsp.plugins.ruff.severities`: Dictionary of custom severity levels for specific codes, see [below](#custom-severities).
84
85
-`pylsp.plugins.ruff.targetVersion`: The minimum Python version to target.
0 commit comments