Skip to content

ENH: incremental changes to modify only code neighboring already changed lines #370

@mattip

Description

@mattip

Idea: allow running black with a -n --dry-run=filename option and store the resulting changeset. Then allow using this in a subsequent run to only update newly found changes.

Rational: In a workflow on an established managed repository, this would allow running black incrementally, reformatting only parts of the code that have been changed, minimizing git churn and blame lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions