March 13-19, 2022 in Darker: Addressing monorepo configurations and enhancing docstring handling #678
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 resolving configuration issues for monorepo layouts and improving docstring formatting. We addressed the problem of Darker's configuration in monorepo structures (#244), which was causing difficulties for users with complex repository layouts. The change in how Darker handles the
--config
argument led to unexpected behavior. We're now exploring options to either revert this change or provide a way to configure the path to the Darker config file, which will be included in the upcoming 1.5.0 release.We made significant progress on improving the handling of multi-line docstrings by merging a pull request (#300) that treats them as complete chunks during formatting. This change aims to prevent "reformat loops" where docstrings are repeatedly indented and unindented. The implementation uses AST parsing to identify multi-line strings, addressing a long-standing issue (#240). Additionally, we discussed potential improvements to our GitHub Action, including the possibility of adding syntax highlighting to the output (#263) and supporting alternative formatters like Blue (#251). However, we've deprioritized the latter based on community feedback.
Beta Was this translation helpful? Give feedback.
All reactions