mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +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
|
@ -111,6 +111,7 @@ impl FileResolverSettings {
|
|||
|
||||
#[derive(CacheKey, Clone, Debug)]
|
||||
pub struct FormatterSettings {
|
||||
pub exclude: FilePatternSet,
|
||||
pub preview: PreviewMode,
|
||||
|
||||
pub line_width: LineWidth,
|
||||
|
@ -162,6 +163,7 @@ impl Default for FormatterSettings {
|
|||
let default_options = PyFormatOptions::default();
|
||||
|
||||
Self {
|
||||
exclude: FilePatternSet::default(),
|
||||
preview: ruff_python_formatter::PreviewMode::Disabled,
|
||||
line_width: default_options.line_width(),
|
||||
line_ending: LineEnding::Lf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue