darker

Apply Black formatting only to code regions changed since last commit

brewmacoslinux
Try with needOr install directly
Source

About

Apply Black formatting only in regions changed since last commit

Commands

darker

Examples

Format only changed lines in the current directory$ darker .
Format changed lines in specific Python files$ darker src/main.py src/utils.py
Show what would be formatted without making changes$ darker --check .