June 11 - July 2, 2023 in Darker: Fixing configuration parsing and improving debug output #708
akaihola
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This period saw significant improvements in Darker's handling of configuration options. We addressed an issue where options in
pyproject.toml
with hyphens were being ignored (issue #502). The problem was particularly noticeable with theline-length
setting, which wasn't being honored when specified with a hyphen instead of an underscore.In response, we implemented a fix that converts hyphens to underscores when parsing
pyproject.toml
(PR #503). This approach aligns Darker's behavior with that of Black. As an added improvement, the debug log configuration dump now normalizes option keys to use hyphens consistently, enhancing readability. These changes ensure that users can use either hyphens or underscores in their configuration files without unexpected behavior.Beta Was this translation helpful? Give feedback.
All reactions