From 478cf9a081648aeedfe697cf9a2b4e5e0a57a53c Mon Sep 17 00:00:00 2001 From: Giulio Mazzanti Date: Sat, 28 Oct 2023 09:32:16 +0000 Subject: [PATCH] Remove `exclude` suggestion to use `extend-exclude` in `tool.ruff.format` config docs --- crates/ruff_workspace/src/options.rs | 3 --- ruff.schema.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index 4adaf5fd87ae2..b065f22b39e38 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -2613,9 +2613,6 @@ pub struct FormatOptions { /// (e.g., the directory containing your `pyproject.toml`). /// /// For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax). - /// - /// Note that you'll typically want to use - /// [`extend-exclude`](#extend-exclude) to modify the excluded paths. #[option( default = r#"[]"#, value_type = "list[str]", diff --git a/ruff.schema.json b/ruff.schema.json index 51efee721f652..2c3d3fcf1476c 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -1242,7 +1242,7 @@ "type": "object", "properties": { "exclude": { - "description": "A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.", + "description": "A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).", "type": [ "array", "null"