Disabling ruff `--preview` during
Hi there,
Thanks for this great project!
Currently when using the native ruff server, it reports errors in my python files that are only available in preview mode (ruff check --preview). I would like to disable this behavior.
I have set the following lines in my coc-settings.json:
"ruff.enableExperimentalFormatter": false,
"ruff.lint.preview": false,
"ruff.format.preview": false,
"ruff.nativeServer": true,
However they don't seem to have an effect since :CocCommand ruff.debugInformation still shows the lint_preview and format_preview fields as set to true:
global_client_settings = ResolvedClientSettings {
fix_all: true,
organize_imports: true,
lint_enable: true,
disable_rule_comment_enable: true,
fix_violation_enable: true,
show_syntax_errors: true,
editor_settings: ResolvedEditorSettings {
configuration: None,
lint_preview: Some(
true,
),
format_preview: Some(
true,
),
select: None,
extend_select: None,
ignore: None,
exclude: None,
line_length: Some(
LineLength(
33,
),
),
configuration_preference: EditorFirst,
},
}
I have verified that editing other options, for example the line length from the coc-settings does have an effect in the ruff debug information, for example adding a "ruff.lineLength": 33, line in coc-settings.json leads to setting the line length in the debug information as well (part of above output):
line_length: Some(
LineLength(
33,
),
),
Any hints? Is ruff.lint.preview not the right key? I've also tried other keys like ruff.args, and ruff.lint.args but to no avail.