Add a note about the leading ! for negative exclusions (#1942)

This commit is contained in:
Zanie Blue 2025-12-16 09:40:01 -06:00 committed by GitHub
parent c117081ced
commit 74fd3dca49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]