Jan 15-22, 2023 in Darker: F-string conversion and linter configuration improvements #696
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 made significant progress on several fronts, particularly in enhancing our code formatting capabilities and improving documentation. We merged the long-awaited f-string conversion feature using
flynt
(PR #308), addressing issue #266. This addition allows Darker to automatically convert old string literal formatting to f-strings, expanding our toolkit for modernizing Python code.We also focused on improving our documentation and configuration options. PR #432 was merged, providing clearer explanations for configuring reformatter and linter tools in both the README and
--help
output. This addresses issue #399, clarifying that the-c
option is used only for Black and isort, while linter configurations are handled separately. In our own repository, we added docstring linting using darglint and flake8-docstrings (PR #459), improving the quality of our codebase's documentation.On the technical side, we made adjustments to support the
cov_to_lint.py
script (PR #445) by passing necessary information for baseline linting in temporary repository clones. We also configuredcoverage
to use relative paths in the Darker repository (PR #461), further enhancing our development workflow. Lastly, we updated our code to use!r
for quotes in format strings as suggested by recent Flake8 versions (PR #458).Beta Was this translation helpful? Give feedback.
All reactions