Skip to content

Version 1.2.3

Compare
Choose a tag to compare
@akaihola akaihola released this 02 May 19:24
· 1458 commits to master since this release
c3ef954

Added

  • A unified TextDocument class to represent source code file contents
  • Move help texts into the separate darker.help module
  • If AST differs with zero context lines, search for the lowest successful number of
    context lines using a binary search to improve performance
  • Return an exit value of 1 also if there are failures from any of the linters on
    modified lines
  • Run GitHub Actions for the test build also on Windows and macOS

Fixed

  • Compatibility with MyPy 0.812
  • Keep newline character sequence and text encoding intact when modifying files
  • Installation now works on Windows
  • Improve compatibility with pre-commit. Fallback to compare against HEAD if
    --revision :PRE-COMMIT: is set, but PRE_COMMIT_FROM_REF or
    PRE_COMMIT_TO_REF are not set.