January 8-15, 2023 in Darker: Baseline Linting and Command Line Improvements #695
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 the baseline linting feature (PR #393), which addresses issues #383 and #380. The implementation allows Darker to run linters twice: once for the baseline and once for the current state, showing only new messages. This enhancement helps users focus on relevant changes by hiding linter messages that were already present in the baseline. We also added functionality to track unmodified blocks of code that move due to other changes, ensuring accurate matching of linter messages even when line numbers change.
We improved our command line handling by integrating the
shlex
module from the Python standard library for splitting and joining command lines (PR #455). This change ensures correct quoting and parsing of linter command lines, especially those containing spaces. We also made some adjustments to accommodate Windows-specific issues, including skipping ashlex
-related failing test on that platform. In other improvements, we merged PR #458, which updates our code to use!r
for quotes in format strings as suggested by recent Flake8 versions.Beta Was this translation helpful? Give feedback.
All reactions