mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Add globbing to isort sections docs (#11311)
Closes https://github.com/astral-sh/ruff/issues/11310.
This commit is contained in:
parent
2f1983e4ad
commit
a73b8c82a8
3 changed files with 13 additions and 6 deletions
|
@ -2267,6 +2267,12 @@ pub struct IsortOptions {
|
|||
/// testing = ["pytest", "hypothesis"]
|
||||
/// ```
|
||||
///
|
||||
/// The values in the list are treated as glob patterns. For example, to match all packages in
|
||||
/// the LangChain ecosystem (`langchain-core`, `langchain-openai`, etc.):
|
||||
/// ```toml
|
||||
/// langchain = ["langchain-*"]
|
||||
/// ```
|
||||
///
|
||||
/// Custom sections should typically be inserted into the `section-order` list to ensure that
|
||||
/// they're displayed as a standalone group and in the intended order, as in:
|
||||
/// ```toml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue