It could be made to be either a list of dependencies or a mapping like how optional-dependencies
accepts, so either of these could be accepted:
[project]
dev-dependencies = [
"foo",
"bar"
]
[project.dev-dependencies]
docs = ["foo", "bar"]
tests = ["bar", "baz"]
Supporting both I feel will be the best solution to allow both simple and advance uses of dev dependencies.