mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Add [format|lint].exclude
options (#8000)
This commit is contained in:
parent
d685107638
commit
fe485d791c
22 changed files with 772 additions and 294 deletions
|
@ -22,7 +22,7 @@ use ruff_python_trivia::CommentRanges;
|
|||
use ruff_source_file::{Locator, SourceLocation};
|
||||
use ruff_text_size::Ranged;
|
||||
use ruff_workspace::configuration::Configuration;
|
||||
use ruff_workspace::options::{FormatOptions, LintOptions, Options};
|
||||
use ruff_workspace::options::{FormatOptions, LintCommonOptions, LintOptions, Options};
|
||||
use ruff_workspace::Settings;
|
||||
|
||||
#[wasm_bindgen(typescript_custom_section)]
|
||||
|
@ -130,13 +130,16 @@ impl Workspace {
|
|||
target_version: Some(PythonVersion::default()),
|
||||
|
||||
lint: Some(LintOptions {
|
||||
allowed_confusables: Some(Vec::default()),
|
||||
dummy_variable_rgx: Some(DUMMY_VARIABLE_RGX.as_str().to_string()),
|
||||
ignore: Some(Vec::default()),
|
||||
select: Some(DEFAULT_SELECTORS.to_vec()),
|
||||
extend_fixable: Some(Vec::default()),
|
||||
extend_select: Some(Vec::default()),
|
||||
external: Some(Vec::default()),
|
||||
common: LintCommonOptions {
|
||||
allowed_confusables: Some(Vec::default()),
|
||||
dummy_variable_rgx: Some(DUMMY_VARIABLE_RGX.as_str().to_string()),
|
||||
ignore: Some(Vec::default()),
|
||||
select: Some(DEFAULT_SELECTORS.to_vec()),
|
||||
extend_fixable: Some(Vec::default()),
|
||||
extend_select: Some(Vec::default()),
|
||||
external: Some(Vec::default()),
|
||||
..LintCommonOptions::default()
|
||||
},
|
||||
|
||||
..LintOptions::default()
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue