How to force reformat file with black code formatter

3.5k views Asked by At

I have a file in a git repo that is not reformatted for reason wasn't modified on disk since last run. But eventually, a change is made in the file e.g new line. And a whole lot of major reformatting is done by black. The file seems to have pending reformatting work which is not detected because it hasn't been modified.

How do I force black to reformat/check a file regardless of whether it has been modified since last run?

0

There are 0 answers