Commit 44e9cd4a authored by jgirardet's avatar jgirardet Committed by Zsolt Dollenstein
Browse files

Explicit # fmt: on/off indentation level (#554)

parent f1ac6fe1
Loading
Loading
Loading
Loading
+2 −1
Changes for README.md: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -143,7 +143,8 @@ original. This slows it down. If you're feeling confident, use

*Black* reformats entire files in place.  It is not configurable.  It
doesn't take previous formatting into account.  It doesn't reformat
blocks that start with `# fmt: off` and end with `# fmt: on`.  It also
blocks that start with `# fmt: off` and end with `# fmt: on`. `# fmt: on/off`
have to be on the same level of indentation. It also
recognizes [YAPF](https://github.com/google/yapf)'s block comments to
the same effect, as a courtesy for straddling code.