Skip to content

Commit

Permalink
Add support for PEP 735 dependency-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 25, 2024
1 parent 4ef42f2 commit 571de0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject-fmt/rust/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub fn reorder_tables(root_ast: &SyntaxNode<Lang>, tables: &Tables) {
"",
"build-system",
"project",
"dependency-groups",
// Build backends
"tool.poetry",
"tool.poetry-dynamic-versioning",
Expand Down
12 changes: 12 additions & 0 deletions pyproject-fmt/rust/src/tests/global_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ use common::table::Tables;
[build-system]
build-backend="backend"
requires=["c", "d"]
[dependency-groups]
docs=["s"]
test=["p", "q"]
[tool.mypy]
mk="mv"
[tool.ruff.test]
Expand Down Expand Up @@ -57,6 +60,15 @@ use common::table::Tables;
"e",
]
[dependency-groups]
docs = [
"s",
]
test = [
"p",
"q",
]
[tool.ruff]
mr = "vr"
[tool.ruff.test]
Expand Down

0 comments on commit 571de0c

Please sign in to comment.