mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 21:24:29 +00:00
[ty] Anchor all exclude patterns (#18685)
Co-authored-by: Andrew Gallant <andrew@astral.sh>
This commit is contained in:
parent
8184dae287
commit
37fdece72f
10 changed files with 134 additions and 194 deletions
|
|
@ -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/"]
|
||||
"#,
|
||||
)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue