From 74fd3dca492f5b272e1aba5f4ce4457bfee64fb2 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 16 Dec 2025 09:40:01 -0600 Subject: [PATCH] Add a note about the leading `!` for negative exclusions (#1942) --- docs/exclusions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/exclusions.md b/docs/exclusions.md index 12cc317..d58b3d7 100644 --- a/docs/exclusions.md +++ b/docs/exclusions.md @@ -12,7 +12,7 @@ exclude = ["src/generated"] ## Default exclusions -By default, ty excludes a [variety of commonly ignored directories](./reference/configuration.md#exclude_1). If you want to include one of these directories, you can do so by adding a negative `exclude`: +By default, ty excludes a [variety of commonly ignored directories](./reference/configuration.md#exclude_1). If you want to include one of these directories, you can do so by adding a negative `exclude` using a leading `!`: ```toml title="pyproject.toml" [tool.ty.src]