mirror of
https://github.com/astral-sh/ty.git
synced 2025-12-23 08:48:09 +00:00
Use a "warning" admonition for expensive prefix includes (#1903)
This commit is contained in:
parent
d4da39ad62
commit
e67a51fad7
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ Both `include` and `exclude` support gitignore like glob patterns:
|
|||
|
||||
All patterns are anchored: The pattern `src` only includes `<project_root>/src` but not something like `<project_root>/test/src`. To include any directory named `src`, use the prefix match `**/src`. The same applies for exclude patterns where `src` only excludes `<project_root>/src` but not something like `<project_root>/test/src`.
|
||||
|
||||
!!! note
|
||||
!!! warning
|
||||
|
||||
A prefix include pattern like `**/src` can notably slow down the Python file discovery.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue