From d4da39ad6256e13b9f8b69fd9b02da76d558e628 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 15 Dec 2025 15:23:02 -0600 Subject: [PATCH] Add some headings to the exclusions documentation (#1902) --- docs/exclusions.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/exclusions.md b/docs/exclusions.md index 75e98b3..50aa5e2 100644 --- a/docs/exclusions.md +++ b/docs/exclusions.md @@ -10,6 +10,8 @@ include = ["src", "tests"] exclude = ["src/generated"] ``` +## Default exclusions + By default, ty excludes a [variety of commonly ignored directories](./reference/configuration.md#exclude). If you want to include one of these directories, you can do so by adding a negative `exclude`: ```toml @@ -20,7 +22,9 @@ exclude = ["!**/build/"] By default, ty ignores files listed in an `.ignore` or `.gitignore` file. To disable this functionality, set [`respect-ignore-files`](./reference/configuration.md#respect-ignore-files) to `false`. -You may also explicitly pass the paths that ty should check, e.g.: +## Explicit targets + +You may explicitly pass the paths that ty should check, e.g.: ```shell ty check src scripts/benchmark.py