mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Stabilize support for Jupyter Notebooks (#12878)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com> Closes: #12456 Closes: https://github.com/astral-sh/ruff-vscode/issues/546
This commit is contained in:
parent
15aa5a6d57
commit
73160dc8b6
13 changed files with 72 additions and 164 deletions
|
@ -230,15 +230,9 @@ 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(|| {
|
||||
let mut include = INCLUDE.to_vec();
|
||||
|
||||
if global_preview.is_enabled() {
|
||||
include.push(FilePattern::Builtin("*.ipynb"));
|
||||
}
|
||||
|
||||
include
|
||||
}))?,
|
||||
include: FilePatternSet::try_from_iter(
|
||||
self.include.unwrap_or_else(|| INCLUDE.to_vec()),
|
||||
)?,
|
||||
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