Add PEP 735 dependency groups to pyproject.toml's schema#4139
Conversation
|
Thanks for the PR! This section of the codebase is owned by @madskristensen and |
|
Thanks for adding this! I was going to make the change myself, thinking there were one or two people who might also pick it up, but then somebody else got it done! Open source is so cool sometimes. ❤️ cc @henryiii, this looks good to me. I would probably have declared it with |
|
I've had issues with |
|
FWIW, since this is based on a pattern, I think patternProperties is actually a little nicer (with additionalProperties set to false). |
|
If anyone needs the link to PEP 735, the one in the description has a typo, it's actually https://peps.python.org/pep-0735/. |
Fixed. |
|
Awesome, thanks! |
PEP 735 has just been accepted. As I understand it, the PEP introduces a new top-level
dependency-groupstable whose:include-group, and this property's value must be another group's name.In Python's typing system:
Most tests were copied from the PEP itself.