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

This commit is contained in:
jgirardet 2018-10-09 22:11:47 +02:00 committed by Zsolt Dollenstein
parent f1ac6fe109
commit 44e9cd4a03

View File

@ -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.