Update example from pdm-backend.#251
Conversation
The old example had a section which is no longer valid: ``` [tool.pdm] includes = ["pdm"] source-includes = ["tests"] ``` The new format is: ``` [tool.pdm.build] includes = ["src"] source-includes = ["tests"] ```
|
What about the other changes? Some look good, but I noticed the tool.towncrier stuff seems to be gone? |
I did not edit this example, I just copied it as is from pdm-backend. Aparently they stopped using towncrier a while ago. If you want, I can add the towncrier pyproject in another PR. |
henryiii
left a comment
There was a problem hiding this comment.
I just thought having a list in an example was probably a good idea, it might not be covered elsewhere. It doesn't need to be in a pdm example, though.
|
I just enabled the pdm schema check for the pdm example. This explains why the previous pdm example was not failing validation. I wonder if all tools should be enabled for validations of all the examples. |
|
Probably; that didn't exist when they were originally added. |
The old example for pyproject.toml from pdm-backend had a section which is no longer valid:
The new format is:
For some context, I am prototyping a TOML schema. For testing, I converted the full pyproject JSON schema to a TOML schema, and I am using your test examples for testing the TOML schema. This is how I noticed this issue.