mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +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
|
@ -241,13 +241,11 @@ pub struct Options {
|
|||
/// included here not for configuration but because we lint whether e.g. the
|
||||
/// `[project]` matches the schema.
|
||||
///
|
||||
/// If [preview](https://docs.astral.sh/ruff/preview/) is enabled, the default
|
||||
/// includes notebook files (`.ipynb` extension). You can exclude them by adding
|
||||
/// `*.ipynb` to [`extend-exclude`](#extend-exclude).
|
||||
/// Notebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.
|
||||
///
|
||||
/// For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).
|
||||
#[option(
|
||||
default = r#"["*.py", "*.pyi", "**/pyproject.toml"]"#,
|
||||
default = r#"["*.py", "*.pyi", "*.ipynb", "**/pyproject.toml"]"#,
|
||||
value_type = "list[str]",
|
||||
example = r#"
|
||||
include = ["*.py"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue