mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:44:51 +00:00
Restore quick fixes for playground
This commit is contained in:
parent
f735660801
commit
bde12c3bb3
1 changed files with 2 additions and 2 deletions
|
@ -83,12 +83,10 @@ pub fn defaultSettings() -> Result<JsValue, JsValue> {
|
||||||
extend_ignore: Some(Vec::default()),
|
extend_ignore: Some(Vec::default()),
|
||||||
extend_select: Some(Vec::default()),
|
extend_select: Some(Vec::default()),
|
||||||
external: Some(Vec::default()),
|
external: Some(Vec::default()),
|
||||||
fixable: Some(Vec::default()),
|
|
||||||
ignore: Some(Vec::default()),
|
ignore: Some(Vec::default()),
|
||||||
line_length: Some(88),
|
line_length: Some(88),
|
||||||
select: Some(vec![CheckCodePrefix::E, CheckCodePrefix::F]),
|
select: Some(vec![CheckCodePrefix::E, CheckCodePrefix::F]),
|
||||||
target_version: Some(PythonVersion::default()),
|
target_version: Some(PythonVersion::default()),
|
||||||
unfixable: Some(Vec::default()),
|
|
||||||
// Ignore a bunch of options that don't make sense in a single-file editor.
|
// Ignore a bunch of options that don't make sense in a single-file editor.
|
||||||
cache_dir: None,
|
cache_dir: None,
|
||||||
exclude: None,
|
exclude: None,
|
||||||
|
@ -96,6 +94,7 @@ pub fn defaultSettings() -> Result<JsValue, JsValue> {
|
||||||
extend_exclude: None,
|
extend_exclude: None,
|
||||||
fix: None,
|
fix: None,
|
||||||
fix_only: None,
|
fix_only: None,
|
||||||
|
fixable: None,
|
||||||
force_exclude: None,
|
force_exclude: None,
|
||||||
format: None,
|
format: None,
|
||||||
ignore_init_module_imports: None,
|
ignore_init_module_imports: None,
|
||||||
|
@ -104,6 +103,7 @@ pub fn defaultSettings() -> Result<JsValue, JsValue> {
|
||||||
respect_gitignore: None,
|
respect_gitignore: None,
|
||||||
show_source: None,
|
show_source: None,
|
||||||
src: None,
|
src: None,
|
||||||
|
unfixable: None,
|
||||||
update_check: None,
|
update_check: None,
|
||||||
// Use default options for all plugins.
|
// Use default options for all plugins.
|
||||||
flake8_annotations: Some(flake8_annotations::settings::Settings::default().into()),
|
flake8_annotations: Some(flake8_annotations::settings::Settings::default().into()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue