Fall 2022 in Darker: Enhancing Linter Integration and Debugging Environment Issues #688
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 period saw significant improvements in Darker's linter integration capabilities. A major pull request (#393) was merged, addressing longstanding issues (#383 and #380) by implementing a new approach to handling linter messages. This update runs linters twice - once for the baseline and once for the current state - displaying only new messages. It also tracks unmodified code blocks that have moved due to other changes, ensuring linter messages are matched correctly even when line numbers shift. This enhancement greatly improves Darker's ability to provide relevant and accurate linter feedback.
We also investigated an interesting bug report (#394) where Darker failed with a TypeError on macOS Monterey 12.5.1. Upon closer examination, it was discovered that the issue stemmed from running an outdated version of Darker (1.2.x) in the pre-commit environment, rather than the reported 1.5.0 version.
Beta Was this translation helpful? Give feedback.
All reactions