darker
« Back to VersTracker
Description:
Apply Black formatting only in regions changed since last commit
Type: Formula  |  Latest Version: 3.0.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: formatter python black git pre-commit linting
Install: brew install darker
About:
Darker is a wrapper for the Black code formatter that formats only the lines changed since your last Git commit. This approach minimizes diffs and prevents unrelated formatting changes from cluttering code reviews. It integrates seamlessly with pre-commit hooks to enforce consistent formatting on modified code.
Key Features:
  • Formats only changed code regions
  • Integrates with Git and pre-commit hooks
  • Uses Black as the underlying formatter
  • Reduces noise in version control diffs
Use Cases:
  • Enforcing code style in legacy projects without massive reformatting
  • Maintaining clean pull requests with minimal diffs
  • CI/CD pipelines for incremental code quality checks
Alternatives:
  • Black – Formats entire files, which can create large diffs in legacy codebases
  • autopep8 – General-purpose formatter without Git-aware incremental formatting
License: BSD-3-Clause
Dependencies: python@3.14
Bottles available for: all
Version History
Detected Version Rev Change Commit