-
Notifications
You must be signed in to change notification settings - Fork 56
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
Allow hyphens for option keys in pyproject.toml
#503
Conversation
Hey @dwt would you be able to review this pull request? Can I invite you as a project collaborater and assign reviewing to you? |
fdb96fb
to
5a32119
Compare
These are the helpers functions for converting between hyphens and underscores, and for validating option keys.
5a32119
to
508eec1
Compare
Sure! Sorry, I was away on holidays for a few weeks, but now I'm back and I'd like to help. |
LGTM, you do the validation step (which is new afaik) and the conversion first, which should generate maximum backwards compatibility, while still generating strict errors. I like. :) To be frank, I'm not sure I understand the tests completely, but there seems to be a test that checks this scenario. So: LGTM? |
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.
Sorry, should have written this here, instead of in the comment. Yes, LGTM.
Fixes #502.
Also normalizes the
pyproject.toml
dump seen in debug log level to always use hyphens instead of underscores in option keys.