February-May 2020 in darker: Pre-commit hook support and Black CLI args #616
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
-
During this period, darker saw significant improvements in its functionality and usability. The project focused on enhancing its integration capabilities and allowing more customization options for users.
A major feature addition was the ability to use darker as a pre-commit hook (#2). This improvement, implemented by Filip Kucharczyk, allows developers to automatically run darker before committing their code, ensuring consistent formatting across their projects. In parallel, Correy Lim contributed support for important Black command-line arguments (#3). Specifically, the
--line-length
(-l) and--skip-string-normalization
(-S) options were added, giving users more control over their code formatting. These additions were carefully implemented to maintain compatibility with Black's default behavior while providing the flexibility many teams require.The README was also updated to reflect these new capabilities, ensuring users are aware of the newly supported Black command-line arguments. These enhancements make darker more versatile and align it more closely with Black's functionality, potentially broadening its appeal to Python developers looking for a targeted formatting tool.
Beta Was this translation helpful? Give feedback.
All reactions