"INTERNAL ERROR" on minimal python file #2771
Labels
F: fmtoff
fmt: off implementation
R: duplicate
This issue or pull request already exists
T: bug
Something isn't working
Describe the bug
I created a file with "# fmt: off" and no matching "# fmt: on" and black suffered an internal error.
To Reproduce
Run black on this file:
Example run on my computer:
Expected behavior
I believe the correct behaviour is for black to not format the rest of the file after the marker.
Environment
Additional context
I discovered this accidentally while applying black to the codebase I am working on. Thanks for including a link to where to report the bug.
The text was updated successfully, but these errors were encountered: