[ty] Anchor all exclude patterns (#18685)

Co-authored-by: Andrew Gallant <andrew@astral.sh>
This commit is contained in:
Micha Reiser 2025-06-18 10:57:36 +02:00 committed by GitHub
parent 8184dae287
commit 37fdece72f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 134 additions and 194 deletions

View file

@ -283,7 +283,7 @@ fn exclude_precedence_over_include() -> anyhow::Result<()> {
r#"
[src]
include = ["src"]
exclude = ["test_*.py"]
exclude = ["**/test_*.py"]
"#,
)?;
@ -404,7 +404,7 @@ fn remove_default_exclude() -> anyhow::Result<()> {
"ty.toml",
r#"
[src]
exclude = ["!dist"]
exclude = ["!**/dist/"]
"#,
)?;