# Week of May 28 - June 3, 2023 in Darker: Python 3.12 compatibility and Mypy improvements #706
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 improving Darker's compatibility with Python 3.12 and addressing issues related to Mypy. We merged several pull requests to fix compatibility issues and enhance our testing infrastructure.
We addressed Python 3.12 compatibility in our GitHub Action (PR #497) by replacing the use of
pkg_resources
withpip-requirements-parser
. This change was necessary due tosetuptools
being dropped in Python 3.12. We also fixed multi-line string scanning to work with Python 3.12's new tokenization of f-strings (PR #496). These changes resolve part of the issues reported in #495.In response to a user-reported issue (#498), we improved Darker's handling of repositories with an
__init__.py
file in the root directory. The fix (PR #499) ensures that Mypy doesn't produce errors when analyzing such repositories. We also added Mypy as a testing dependency to catch similar issues in the future.These improvements demonstrate our ongoing commitment to maintaining Darker's compatibility with the latest Python versions and popular development tools. As always, we appreciate the community's involvement in identifying issues and contributing to solutions.
Beta Was this translation helpful? Give feedback.
All reactions