April 3-9, 2022 in Darker: Enhancing Configuration and Improving Code Formatting #681
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 week, we focused on refining Darker's configuration options and improving code formatting capabilities. We addressed the issue of Darker's configuration in monorepo structures (#244) by exploring ways to revert changes to the
--config
argument handling or provide explicit configuration for the Darker config file path. This change aims to resolve unexpected behavior in complex repository layouts and will be included in the upcoming 1.5.0 release.We made significant progress in enhancing code formatting by merging a pull request (#300) that treats multi-line docstrings as complete chunks during formatting. This change prevents "reformat loops" where docstrings are repeatedly indented and unindented, addressing a long-standing issue (#240). Additionally, we implemented a feature to apply isort only when changes overlap with user modifications (#238), resolving the problem of unnecessary import sorting (#72).
In other developments, we added support for the
NO_COLOR
environment variable (#356) to disable syntax highlighting, complementing the previously addedPY_COLORS
option. We also renamed the--jobs
option to-W
/--workers
(#352) for consistency with Black. These improvements, along with various documentation updates and bug fixes, bring us closer to the 1.5.0 release.Beta Was this translation helpful? Give feedback.
All reactions