Skip to content

Commit

Permalink
Add globbing to isort sections docs (#11311)
Browse files Browse the repository at this point in the history
Closes #11310.
  • Loading branch information
charliermarsh authored May 6, 2024
1 parent 2f1983e commit a73b8c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 6 additions & 5 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
doc-valid-idents = [
"StackOverflow",
"..",
"CodeQL",
"FastAPI",
"IPython",
"NumPy",
"LangChain",
"LibCST",
"McCabe",
"NumPy",
"SCREAMING_SNAKE_CASE",
"SQLAlchemy",
"McCabe",
"FastAPI",
"..",
"StackOverflow",
]
6 changes: 6 additions & 0 deletions crates/ruff_workspace/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ruff.schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a73b8c8

Please sign in to comment.