Use a "warning" admonition for expensive prefix includes (#1903)

This commit is contained in:
Zanie Blue 2025-12-15 15:23:08 -06:00 committed by GitHub
parent d4da39ad62
commit e67a51fad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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