Skip to content
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

Merged
merged 6 commits into from
Aug 5, 2023
Merged

Conversation

akaihola
Copy link
Owner

Fixes #502.

Also normalizes the pyproject.toml dump seen in debug log level to always use hyphens instead of underscores in option keys.

@akaihola akaihola added the bug Something isn't working label Jun 30, 2023
@akaihola akaihola added this to the Darker 1.7.2 milestone Jun 30, 2023
@akaihola akaihola self-assigned this Jun 30, 2023
@akaihola
Copy link
Owner Author

akaihola commented Jul 7, 2023

Hey @dwt would you be able to review this pull request? Can I invite you as a project collaborater and assign reviewing to you?

@akaihola akaihola force-pushed the pyproject-hyphens branch 3 times, most recently from fdb96fb to 5a32119 Compare July 9, 2023 19:18
@dwt
Copy link
Collaborator

dwt commented Jul 24, 2023

Sure!

Sorry, I was away on holidays for a few weeks, but now I'm back and I'd like to help.

@dwt
Copy link
Collaborator

dwt commented Jul 24, 2023

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?

Copy link
Collaborator

@dwt dwt left a 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.

@akaihola akaihola merged commit e96018f into master Aug 5, 2023
39 checks passed
@akaihola akaihola deleted the pyproject-hyphens branch August 5, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

pyproject.toml options with hyphens are ignored
2 participants