mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +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
|
@ -241,6 +241,10 @@ 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).
|
||||
///
|
||||
/// 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"]"#,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue