You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This is something we explicitly don't support. Incremental style changes are against PEP 8's philosophy of staying consistent within a file. They also mix formatting changes with semantic changes, making review harder than it needs to be. See #134 for a longer explanation.
Reformat your entire project in one go. Then there is a single commit that is trivial to omit using git hyper-blame or simply by using git blame $BLACK_COMMIT^ -- $FILE. It's a cleaner approach than trying to smear adoption over time.
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.
The text was updated successfully, but these errors were encountered: