mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Enable notebooks by default in preview mode (#12621)
This commit is contained in:
parent
fbab04fbe1
commit
012198a1b0
5 changed files with 142 additions and 4 deletions
|
@ -230,9 +230,15 @@ impl Configuration {
|
|||
extend_exclude: FilePatternSet::try_from_iter(self.extend_exclude)?,
|
||||
extend_include: FilePatternSet::try_from_iter(self.extend_include)?,
|
||||
force_exclude: self.force_exclude.unwrap_or(false),
|
||||
include: FilePatternSet::try_from_iter(
|
||||
self.include.unwrap_or_else(|| INCLUDE.to_vec()),
|
||||
)?,
|
||||
include: FilePatternSet::try_from_iter(self.include.unwrap_or_else(|| {
|
||||
let mut include = INCLUDE.to_vec();
|
||||
|
||||
if global_preview.is_enabled() {
|
||||
include.push(FilePattern::Builtin("*.ipynb"));
|
||||
}
|
||||
|
||||
include
|
||||
}))?,
|
||||
respect_gitignore: self.respect_gitignore.unwrap_or(true),
|
||||
project_root: project_root.to_path_buf(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue