Black: Support diff output

Created on 29 Mar 2018  路  3Comments  路  Source: psf/black

Over on Microsoft/vscode-python#1153 people are asking for support of Black in VS Code. Having diff output from black itself would make this a bit easier for someone to do.

enhancement

Most helpful comment

Alright, convinced. Will add this in the next release.

All 3 comments

Black doesn't support partial reformatting. How does diff output help compared to stdout?

From what I've measured, unless your files are hilariously big, piping everything back is also faster than computing a diff and then applying the patch on the other end.

Not saying no, just need to understand why this is superior to simple stdio piping.

The diffs let VS Code, e.g. keep breakpoints working after a reformat.

Alright, convinced. Will add this in the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigmac picture craigmac  路  3Comments

decibyte picture decibyte  路  3Comments

madig picture madig  路  3Comments

Curly-Mo picture Curly-Mo  路  3Comments

kissgyorgy picture kissgyorgy  路  3Comments