-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add schema and validate-pyproject support #1622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really cool, I didn't know about this. Getting auto-complete in vscode would be amazing.
0297018
to
a5db7f8
Compare
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
a5db7f8
to
62ec642
Compare
Also added a mechanism to test all the docs examples. Several fixes of the schema came from that. :) |
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Testing with the docs samples is a very cool idea.
Adding a json schema. This supports validate-pyproject, allowing it to check a
tool.cibuildwheel
section. I wrote a Python 3.10+bin/generate_schema.py
to make the schema as I didn't see a good way to do the OS sections and overrides by hand. I mostly tried to replicate the current behavior, though we technically could be more strict with a schema than in reality, since it's optional to validate it.Testing by validating the defaults toml, a few manual examples, and running all the docs examples though.
Once we have this, we could also contribute it to SchemaStore, which would make it work in vscode, etc.